systray: fix scan() and stop managing XEMBED
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
38c48cf374
commit
f8f882d948
|
@ -117,9 +117,8 @@ scan(void)
|
||||||
state = window_getstate(wins[i]);
|
state = window_getstate(wins[i]);
|
||||||
|
|
||||||
if(!attr_r || attr_r->override_redirect
|
if(!attr_r || attr_r->override_redirect
|
||||||
|| !(attr_r->map_state == XCB_MAP_STATE_VIEWABLE
|
|| attr_r->map_state != XCB_MAP_STATE_VIEWABLE
|
||||||
|| state == XCB_WM_ICONIC_STATE
|
|| state == XCB_WM_WITHDRAWN_STATE)
|
||||||
|| state == XCB_WM_WITHDRAWN_STATE))
|
|
||||||
{
|
{
|
||||||
p_delete(&attr_r);
|
p_delete(&attr_r);
|
||||||
continue;
|
continue;
|
||||||
|
@ -146,9 +145,6 @@ scan(void)
|
||||||
real_screen = screen_get_bycoord(globalconf.screens_info, screen,
|
real_screen = screen_get_bycoord(globalconf.screens_info, screen,
|
||||||
geom_r->x, geom_r->y);
|
geom_r->x, geom_r->y);
|
||||||
|
|
||||||
if(xembed_info_get(globalconf.connection, wins[i], &eminfo))
|
|
||||||
systray_request_handle(wins[i], screen, &eminfo);
|
|
||||||
else
|
|
||||||
client_manage(wins[i], geom_r, real_screen);
|
client_manage(wins[i], geom_r, real_screen);
|
||||||
|
|
||||||
p_delete(&geom_r);
|
p_delete(&geom_r);
|
||||||
|
|
Loading…
Reference in New Issue