mathematicalcoffee / Gnome-Shell-Window-Buttons-Extension

Window buttons for the gnome shell panel
5 stars 4 forks source link

Hiding all windows in 'any window maximized' does not cause buttons to hide. #16

Open mathematicalcoffee opened 11 years ago

mathematicalcoffee commented 11 years ago

[m.c: confirmed. CtrlSuperD doesn't seem to send a minimize signal]

Your extension, "Window Buttons" has received an error report from j0k:

I love your extension. Couldn't live without this and Maximus. I think I've found a minor bug though.

What's wrong?

If my button display settings are on "Any window maximized" then if click the desktop icon in, say, TaskBar extension (or use the Settings>Keyboard>Shortcuts>Hide all normal windows shortcut) then the window closing buttons will still be there, although there's no maximized window on screen (or any window, for that matter). Same happens if I manually minimize a one-and-only maximized window. The buttons will stay there and affect the active, albeit unmaximized window.

What have you tried?

I tried lots of combinations and my findings are that if you MINIMIZE the LAST MAXIMIZED window, the buttons won't go away under "Any window maximized" settings although they should.

mathematicalcoffee commented 11 years ago

More digging:

Using this shortcut calls core/screen.c's meta_screen_show_desktop function, calling focus on the DESKTOP window (rather than minimizing other windows).

So IF I have 'let file manager handle desktop' set to yes (i.e. I can detect the DESKTOP window in global.get_window_actors), then I might be able to connect to its 'focus' sigal.

Otherwise, I can't detect a DESKTOP window (though the keybinding works still), and I have no idea what to do.