handle shape events
This commit is contained in:
parent
66dc14754b
commit
7567e3d781
1 changed files with 13 additions and 4 deletions
|
@ -135,16 +135,17 @@ void event_process(XEvent *e)
|
||||||
window = e->xconfigurerequest.window;
|
window = e->xconfigurerequest.window;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* XKB events */
|
#ifdef XKB
|
||||||
if (e->type == extensions_xkb_event_basep) {
|
if (extensions_xkb && e->type == extensions_xkb_event_basep) {
|
||||||
switch (((XkbAnyEvent*)&e)->xkb_type) {
|
switch (((XkbAnyEvent*)&e)->xkb_type) {
|
||||||
case XkbBellNotify:
|
case XkbBellNotify:
|
||||||
window = ((XkbBellNotifyEvent*)&e)->window;
|
window = ((XkbBellNotifyEvent*)&e)->window;
|
||||||
default:
|
default:
|
||||||
window = None;
|
window = None;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
window = e->xany.window;
|
#endif
|
||||||
|
window = e->xany.window;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* grab the lasttime and hack up the state */
|
/* grab the lasttime and hack up the state */
|
||||||
|
@ -560,5 +561,13 @@ static void event_handle_client(Client *client, XEvent *e)
|
||||||
client_update_icons(client);
|
client_update_icons(client);
|
||||||
else if (msgtype == prop_atoms.kwm_win_icon)
|
else if (msgtype == prop_atoms.kwm_win_icon)
|
||||||
client_update_kwm_icon(client);
|
client_update_kwm_icon(client);
|
||||||
|
default:
|
||||||
|
;
|
||||||
|
#ifdef SHAPE
|
||||||
|
if (extensions_shape && e->type == extensions_shape_event_basep) {
|
||||||
|
client->shaped = ((XShapeEvent*)&e)->shaped;
|
||||||
|
engine_frame_adjust_shape(client->frame);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue