THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#1293 - Systray won't show with margin layout
User who did this - Carlos (memeplex)

----------
Well, I've found a cure. As the systray was never drawn it never got a chance 
to update and, by the same token, to emit update events. This is because of the 
way systray.c is implemented and the way capi.awesome.systray() is called. 
Notice that capi.awesome.systray() is called without arguments from 
systray.fit(), so systray_register() is not reached in luaA_systray(). The 
consequence of this is that the systray won't get any client and thus won't be 
updated. This implies systray.draw() is never called.

One fix is to call systray_register() before the if(lua_gettop(L) != 0) 
conditional:

int
luaA_systray(lua_State *L)
{
    // do this first
    if(globalconf.systray.parent == NULL)
        systray_register();

This way as soon as systray.fit() is called clients are able to register with 
the systray and update events get generated.
----------

More information can be found at the following URL:
https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1293#comment4120

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

--
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to