-
-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows are not resized after insert (from fullscreen mode) #1481
Comments
When you say
Do you switch focus back to the old window before toggling fullscreen mode? Also, does the new window end up in fullscreen at this point?
|
When I create a new window, the old fullscreen window (not native fullscreen) loses fullscreen. The layout isn't chaning |
Sorry, I'm a bit confused about what you're saying. Could I clarify whether the following steps match what you are doing? In the steps, I make reference to an attached screen recording of me going through the same steps.
CleanShot.2022-10-13.at.12.47.32-converted.2.mp4If I am doing the same steps as you, could you explain how the behaviour on your system differs from the recording? |
screen.mp4
|
I am also seeing the same behaviour that @nikita-orca recorded after upgrading from 4.x.x (don't remember which one exactly, sorry) to 5.0.0 edit: macos monterey 12.6, yabai-v5.0.0, M1 Pro |
@nikita-orca Could I check what's the behaviour you're expecting instead in your recording? Is it one of the following?
@dimitarvdimitrov In 4.0.4 opening a new window when there's a window currently in fullscreen would cause the fullscreen window to revert back to normal. In 5.0.0, the behaviour has changed to keeping the fullscreen window in fullscreen and placing the new window on top. #864 looks like the specific change in 5.0.0 responsible. |
so it looks like it's working as intended. What do you think about making this un-fullscreen behaviour a config option - e.g. |
@occludedpixel I would like yabai to turn off fullscreen when a new window is added So it would be nice to fix the bug at least |
@koekeishiya could you do this fix, please? |
I looked into this
a bit more and realised that the change I suggested here
would also cause unexpected behaviour: if you had two windows open and It looks like the underlying cause is that whenever it comes to a situation where there are two windows in a space, Maybe there needs to be a separate boolean field in |
@nikita-orca As for this
The following signal should be able to do it if an
I've been using this signal to automatically unzoom windows even when switching window focus (in yabai v4.x.x the unzooming would happen when adding windows but not switching). However, this
still needs to be addressed before the signal is able to achieve the behaviour you desire in your screen recording
|
up |
thanks @occludedpixel, this signal works well as a workaround for me |
It's not working for me :( |
The signal kind of works but it's janky. It takes a moment for it to realise something's changed and then everything kind of rejiggles into the right place. |
Made zoom persistence configurable; |
Open any window in fullscreen mode
yabai -m window --toggle zoom-fullscreen
Create another window and exit fullscreen mode
The new window is placed on top, old window hasn't been resized
The text was updated successfully, but these errors were encountered: