-
Notifications
You must be signed in to change notification settings - Fork 83
Only report windows on current desktop as "visible" #13
Conversation
Prior to this change, on my Linux machine (XUbuntu + XMonad), Thyme would report all open windows as visible, even windows on other virtual desktops. Reporting those windows as "visible" doesn't match the colloquial definition, and also seems to go against the intended use case. This checks the current desktop via `wmctrl -d` and then filters out windows on other desktops from the visible list.
|
This is not working for me on AwesomeWM. It still lists all the windows as being visible. |
|
I've opened #24, works for me in |
|
My solution doesn't work in Unity, probably a mix of both would be best |
|
@exekias FWIW, I tried compiling from your branch, and your |
|
Good to know @samstokes, will check Unity to see if I can get something there |
|
This doesn't seem to work on herbstluftwm either. I have a gedit window on workspace 9 which isn't visible. It's shown as visible by
And |
|
Given that different windowing systems appear to have different criteria for determining "visible" (at least as far as the output from This way we don't have to worry about breaking Thyme for people using other Linux windowing systems. Also, thanks for all of these attempts at fixing this bug! |
|
I agree it could make sense to add WM-specific code. Looks like you can detect the name reported by the window manager via (N.B. it's possible for the WM to lie, for example with XMonad it's common to set the WM name to "LG3D" as above to trick some Java-based applications into rendering correctly.) However, from @The-Compiler's report I'm not sure why my patch doesn't work for them. All I do is parse I'm not very familiar with Go so it's entirely possible I made a silly mistake in the implementation. Would anyone be able to sanity-check my code? |
|
This works on Unity and on second look, it seems like it would not break any functionality on currently supported window managers. So merging. Thanks for submitting this! |
|
I just tried the latest |
Prior to this change, on my Linux machine (XUbuntu + XMonad), Thyme would report all open windows as visible, even windows on other virtual desktops. Reporting those windows as "visible" doesn't match the colloquial definition, and also seems to go against the intended use case.
This checks the current desktop via
wmctrl -dand then filters out windows on other desktops from the visible list.