Enable map request event handling in Client

This commit is contained in:
Martin Gräßlin 2013-07-26 13:46:06 +02:00
parent 7acfb339b1
commit 58c7617928
2 changed files with 5 additions and 5 deletions

View file

@ -672,7 +672,7 @@ private:
void updateCursor(); void updateCursor();
// Handlers for X11 events // Handlers for X11 events
bool mapRequestEvent(XMapRequestEvent* e); bool mapRequestEvent(xcb_map_request_event_t *e);
void unmapNotifyEvent(xcb_unmap_notify_event_t *e); void unmapNotifyEvent(xcb_unmap_notify_event_t *e);
void destroyNotifyEvent(xcb_destroy_notify_event_t *e); void destroyNotifyEvent(xcb_destroy_notify_event_t *e);
void configureRequestEvent(XConfigureRequestEvent* e); void configureRequestEvent(XConfigureRequestEvent* e);

View file

@ -500,10 +500,10 @@ bool Client::windowEvent(xcb_generic_event_t *e)
case XCB_DESTROY_NOTIFY: case XCB_DESTROY_NOTIFY:
destroyNotifyEvent(reinterpret_cast<xcb_destroy_notify_event_t*>(e)); destroyNotifyEvent(reinterpret_cast<xcb_destroy_notify_event_t*>(e));
break; break;
#if KWIN_QT5_PORTING case XCB_MAP_REQUEST:
case MapRequest:
// this one may pass the event to workspace // this one may pass the event to workspace
return mapRequestEvent(&e->xmaprequest); return mapRequestEvent(reinterpret_cast<xcb_map_request_event_t*>(e));
#if KWIN_QT5_PORTING
case ConfigureRequest: case ConfigureRequest:
configureRequestEvent(&e->xconfigurerequest); configureRequestEvent(&e->xconfigurerequest);
break; break;
@ -588,7 +588,7 @@ bool Client::windowEvent(xcb_generic_event_t *e)
/*! /*!
Handles map requests of the client window Handles map requests of the client window
*/ */
bool Client::mapRequestEvent(XMapRequestEvent* e) bool Client::mapRequestEvent(xcb_map_request_event_t *e)
{ {
if (e->window != window()) { if (e->window != window()) {
// Special support for the save-set feature, which is a bit broken. // Special support for the save-set feature, which is a bit broken.