Thanks for your help, it works great now! 
Last night(in my country) I tried to set XCB_CW_OVERRIDE_REDIRECT to true, and 
this fix it in awesome. But after trying this out in other WM such as Ubuntu 
Unity, the icon is reconfigured by the WM to a 1x24 window in the system tray, 
and I felt really frustrated. 
After trying your explanation and patch, things work like a charm. 
Best regards. 

2015-03-14 


YUQING



Hi, 

Am 13.03.2015 um 10:55 schrieb 于清: 
> Hi, 
> This is a help request rather than a bug report, so if you are kind enough 
> and have some spare time, pls help me find out why my xcb client won't work. 
> All this xcb client trying to do is to create a system tray icon. I have read 
> the xembed and systemtray's freedesktop specification and followed their 
> instructions, but with awesome wm the tray icon is a seperate window on a 
> ridiculous position(It seems to work in KDE somehow). 
> I have tried to read awesome's source, but still can't understand why my code 
> fails. 

First of, your code fails here when trying to figure out the systray's depth. 
However, the result of that calculation isn't used anyway, so an "#if 0" fixes 
this. 

The next problem is that awesome registers your systray window as both a 
regular 
client and as a systray window. Skipping the MapWindow request fixes this as 
well. 

Patch is attached. 

Cheers, 
Uli 
--  
"Why make things difficult, when it is possible to make them cryptic 
and totally illogical, with just a little bit more effort?" -- A. P. J. 

Reply via email to