systray: fix scan() and stop managing XEMBED

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-24 17:39:22 +02:00
parent 38c48cf374
commit f8f882d948
1 changed files with 3 additions and 7 deletions

View File

@ -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);