Handle _NET_WM_DESKTOP client message

This commit is contained in:
Bastien Dejean 2013-06-30 14:47:54 +02:00
parent e8b5ca6de8
commit 0561e9075a

View file

@ -218,6 +218,10 @@ void client_message(xcb_generic_event_t *evt)
arrange(loc.monitor, loc.desktop);
}
focus_node(loc.monitor, loc.desktop, loc.node);
} else if (e->type == ewmh->_NET_WM_DESKTOP) {
desktop_location_t dloc;
if (ewmh_locate_desktop(e->data.data32[0], &dloc))
transfer_node(loc.monitor, loc.desktop, dloc.monitor, dloc.desktop, loc.node);
}
}