Fix for FS#1293
FS#1293 - Systray won't show with margin layout https://awesome.naquadah.org/bugs/index.php?do=details&task_id=1293&project=1&order=dateopened&sort=desc
This commit is contained in:
parent
19252f87fe
commit
aec8e2944a
|
@ -325,6 +325,10 @@ systray_update(int base_size, bool horizontal, bool reverse)
|
||||||
int
|
int
|
||||||
luaA_systray(lua_State *L)
|
luaA_systray(lua_State *L)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(globalconf.systray.parent == NULL)
|
||||||
|
systray_register();
|
||||||
|
|
||||||
if(lua_gettop(L) != 0)
|
if(lua_gettop(L) != 0)
|
||||||
{
|
{
|
||||||
size_t bg_len;
|
size_t bg_len;
|
||||||
|
@ -345,9 +349,6 @@ luaA_systray(lua_State *L)
|
||||||
XCB_CW_BACK_PIXEL, config_back);
|
XCB_CW_BACK_PIXEL, config_back);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(globalconf.systray.parent == NULL)
|
|
||||||
systray_register();
|
|
||||||
|
|
||||||
if(globalconf.systray.parent != w)
|
if(globalconf.systray.parent != w)
|
||||||
xcb_reparent_window(globalconf.connection,
|
xcb_reparent_window(globalconf.connection,
|
||||||
globalconf.systray.window,
|
globalconf.systray.window,
|
||||||
|
|
Loading…
Reference in New Issue