KDE_NET_SYSTEM_TRAY_WINDOWS root window property

Hi, I'm writing a standalone tray app (stalonetray) and recently I got an e-mail from the user asking why stalonetray does not support KDE icons under Xmonad WM. After grepping through the sources I have found that Xmonad does not keep list of KDE icons in KDE_NET_SYSTEM_TRAY_WINDOWS root window property as expected by stalonetray. As a fallback method (in case this property does not exist), stalonetray tries to react on MapNotify events from root window to track KDE icons. However, under Xmonad, stalonetray never receives such notifies. So, I have two questions: 1. I have no Haskel experience, so could someone clarify: is it possible to change Configure.hs so that KDE icons list is kept in KDE_NET_SYSTEM_TRAY_WINDOWS root window property? 2. Why does not my app receive MapNotifies from root window? Is there a error at my end? Thanks, Roman

On Thursday 01 November 2007 01:17:25 Roman Dubtsov wrote:
Hi,
I'm writing a standalone tray app (stalonetray) and recently I got an e-mail from the user asking why stalonetray does not support KDE icons under Xmonad WM.
After grepping through the sources I have found that Xmonad does not keep list of KDE icons in KDE_NET_SYSTEM_TRAY_WINDOWS root window property as expected by stalonetray. As a fallback method (in case this property does not exist), stalonetray tries to react on MapNotify events from root window to track KDE icons. However, under Xmonad, stalonetray never receives such notifies.
So, I have two questions: 1. I have no Haskel experience, so could someone clarify: is it possible to change Configure.hs so that KDE icons list is kept in KDE_NET_SYSTEM_TRAY_WINDOWS root window property?
Yes, this seems possible. We have a thing called 'manageHook' that is executed for every new window. We just need an interested user/hacker to write the code :).
2. Why does not my app receive MapNotifies from root window? Is there a error at my end?
I'm not sure what might be going wrong. Due to its minimalism, xmonad does things quite differently from most mainstream window managers. Do you have a list of window managers that support this fallback method (ion3, wmii, or dwm especially)? Cheers, Spencer Janssen

On Thu, Nov 01, 2007 at 12:17:25PM +0600, Roman Dubtsov wrote:
2. Why does not my app receive MapNotifies from root window? Is there a error at my end?
This is an interesting question, indeed: XMonad sets both the StructureNotifyMask and the SubstructureNotifyMask of the root window's event mask attribute. By the way, I tried with kmix and korganizer and I was not able to intercept any MapNotify event. Can you give, as Spencer was asking, a list of WMs with which this fall back method works? Regards, Andrea
participants (3)
-
Andrea Rossato
-
Roman Dubtsov
-
Spencer Janssen