codehenry / xmonad

Automatically exported from code.google.com/p/xmonad
0 stars 0 forks source link

The _NET_ACTIVE_WINDOW property is not set #520

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello!
I am writing the program that must grab screenshot from a focused window. I am 
using the screenGetActiveWindow (gtk2hs) which uses the _NET_ACTIVE_WINDOW 
property to determine the active window.
My program works fine everywhere except xmonad. Please, add the 
_NET_ACTIVE_WINDOW property to the root window.

Original issue reported on code.google.com by brainstream@yandex.ru on 29 Nov 2012 at 8:21

GoogleCodeExporter commented 8 years ago
xmonad sets _NET_ACTIVE_WINDOW if XMonad.Hooks.EwmhDesktops is used as part of 
the config.  I don't know if there is any interest in merging EwmhDesktops into 
the core.

Note that your program should already be checking for EWMH support 
(_NET_WM_SUPPORTING_CHECK) instead of blindly assuming the user isn't running 
twm or something.

Original comment by allber...@gmail.com on 29 Nov 2012 at 8:30