TimUntersberger / nog

A tiling window manager for Windows
MIT License
697 stars 20 forks source link

Close telegram window do not affect workspace layout #288

Closed TTTPOB closed 2 years ago

TTTPOB commented 3 years ago

Version (which release did you use?)

Describe the bug

Close telegram window do not affect workspace layout To Reproduce

Steps to reproduce the behavior:

  1. create a workspace
  2. open telegram and another window (b)
  3. they should be side by side
  4. close telegram window

Expected behavior

window b got maximized

Actual behavior

size of window b do not change

a gif would be large, if you want to see I will make one

TimUntersberger commented 3 years ago

@ramirezmike maybe we should just handle minimized applications the same as closed applications to prevent this kind of problem?

I guess if a user manually minimzes the application this is the expected behaviour anyways?

ramirezmike commented 3 years ago

I thought about this a bit and.. treating a minimize the same as unmanaging would be the simplest way to handle it.

An alternative to handle it is to track the layout of everything so that when you restore the window it pops back in where it was and everything returns to the size that it was... but that likely will introduce a bunch of weird edge cases to debate about.

My vote is to just treat minimize as if you're unmanaging the given window.

TimUntersberger commented 3 years ago

My vote is to just treat minimize as if you're unmanaging the given window.

👍

TimUntersberger commented 3 years ago

Should be fixed in latest version.