Skip to content
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

Window is allocated a region/tile twice when created while application is hidden #233

Closed
koekeishiya opened this issue Sep 2, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@koekeishiya
Copy link
Owner

Originally by @alextes in #159

I found a way to reproduce my issue, but it seems unrelated, let me know if you'd like me to create a separate issue.

I have an app Kitty. Which I open using:

cmd - return : /Applications/Kitty.app/Contents/MacOS/kitty --single-instance -d ~

If I hide Kitty and trigger a new window to be created, the app unhides, and creates a new window. This results in two windows but three spaces, one of them being empty.
yabai -m query --windows --space

[{
        "id":10655,
        "pid":51886,
        "app":"kitty",
        "title":"alextes: yabai -m query --windows --space",
        "frame":{
                "x":1285.0000,
                "y":20.0000,
                "w":1255.0000,
                "h":1400.0000
        },
        "level":0,
        "role":"AXWindow",
        "subrole":"AXStandardWindow",
        "movable":1,
        "resizable":1,
        "display":1,
        "space":1,
        "visible":1,
        "focused":1,
        "split":"horizontal",
        "floating":0,
        "sticky":0,
        "border":0,
        "shadow":1,
        "zoom-parent":0,
        "zoom-fullscreen":0,
        "native-fullscreen":0
},{
        "id":3404,
        "pid":51886,
        "app":"kitty",
        "title":"sweetspot:2:api - \"api: nvim ~/.skhdrc\" 1#,3#,4#,5#",
        "frame":{
                "x":20.0000,
                "y":725.0000,
                "w":1255.0000,
                "h":695.0000
        },
        "level":0,
        "role":"AXWindow",
        "subrole":"AXStandardWindow",
        "movable":1,
        "resizable":1,
        "display":1,
        "space":1,
        "visible":1,
        "focused":0,
        "split":"horizontal",
        "floating":0,
        "sticky":0,
        "border":0,
        "shadow":1,
        "zoom-parent":0,
        "zoom-fullscreen":0,
        "native-fullscreen":0
}]

Screen Shot 2019-09-02 at 10 53 02

Restarting yabai makes the empty space disappear. Same as recreating the desktop.

@koekeishiya koekeishiya added the bug Something isn't working label Sep 2, 2019
@koekeishiya koekeishiya added the addressed on master; not released Fixed upstream, but not yet released label Sep 2, 2019
@alextes
Copy link

alextes commented Sep 2, 2019

Thanks for creating the issue and this awesome window manager @koekeishiya 🙏

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants