awesomeWM / awesome

awesome window manager
https://awesomewm.org/
GNU General Public License v2.0
6.37k stars 598 forks source link

awesome not support _NET_WM_STATE_FOCUSED #783

Open akhilman opened 8 years ago

akhilman commented 8 years ago

awesome v3.5.6 (For Those About To Rock) • Build: Jun 5 2015 06:28:50 for x86_64 by gcc version 4.9.2 (root@minjo) • Compiled against Lua 5.1.5 (running with Lua 5.1) • D-Bus support: ✔

Run any gtk3 app with client side decoration like Nautilus or Evince. Make window floating, Move focus in/out of this window. Window decoration stays like window is focused but decoration should change appearance depending of is window focused.

Xfwm4 patch https://bugzilla.xfce.org/show_bug.cgi?id=11067 Gnome bug https://bugzilla.gnome.org/show_bug.cgi?id=734159

psychon commented 8 years ago

...sigh. And of course the spec doesn't really explain what the difference to _NET_ACTIVE_WINDOW should be / why this needs to be a new window state. EWMH is quite a moving target.

psychon commented 8 years ago

On the question "what's the difference to _NET_ACTIVE_WINDOW" I found http://sources.debian.net/src/mutter/3.18.3-2/src/core/window.c/?hl=6710#L6710 which says

/**
 * meta_window_appears_focused:
 * @window: a #MetaWindow
 *
 * Determines if the window should be drawn with a focused appearance. This is
 * true for focused windows but also true for windows with a focused modal
 * dialog attached.
 *
 * Return value: %TRUE if the window should be drawn with a focused frame
 */

I'm still not really convinced that this property is a good idea, but at least this is a hint on what it should be used like.