Enable destroy notify event handling in Client

This commit is contained in:
Martin Gräßlin 2013-07-26 13:40:43 +02:00
parent 958e47b36c
commit 7acfb339b1
2 changed files with 5 additions and 5 deletions

View file

@ -674,7 +674,7 @@ private:
// Handlers for X11 events // Handlers for X11 events
bool mapRequestEvent(XMapRequestEvent* e); bool mapRequestEvent(XMapRequestEvent* e);
void unmapNotifyEvent(xcb_unmap_notify_event_t *e); void unmapNotifyEvent(xcb_unmap_notify_event_t *e);
void destroyNotifyEvent(XDestroyWindowEvent* e); void destroyNotifyEvent(xcb_destroy_notify_event_t *e);
void configureRequestEvent(XConfigureRequestEvent* e); void configureRequestEvent(XConfigureRequestEvent* e);
virtual void propertyNotifyEvent(xcb_property_notify_event_t *e) override; virtual void propertyNotifyEvent(xcb_property_notify_event_t *e) override;
void clientMessageEvent(XClientMessageEvent* e); void clientMessageEvent(XClientMessageEvent* e);

View file

@ -497,10 +497,10 @@ bool Client::windowEvent(xcb_generic_event_t *e)
case XCB_UNMAP_NOTIFY: case XCB_UNMAP_NOTIFY:
unmapNotifyEvent(reinterpret_cast<xcb_unmap_notify_event_t*>(e)); unmapNotifyEvent(reinterpret_cast<xcb_unmap_notify_event_t*>(e));
break; break;
#if KWIN_QT5_PORTING case XCB_DESTROY_NOTIFY:
case DestroyNotify: destroyNotifyEvent(reinterpret_cast<xcb_destroy_notify_event_t*>(e));
destroyNotifyEvent(&e->xdestroywindow);
break; break;
#if KWIN_QT5_PORTING
case MapRequest: case MapRequest:
// this one may pass the event to workspace // this one may pass the event to workspace
return mapRequestEvent(&e->xmaprequest); return mapRequestEvent(&e->xmaprequest);
@ -652,7 +652,7 @@ void Client::unmapNotifyEvent(xcb_unmap_notify_event_t *e)
} }
} }
void Client::destroyNotifyEvent(XDestroyWindowEvent* e) void Client::destroyNotifyEvent(xcb_destroy_notify_event_t *e)
{ {
if (e->window != window()) if (e->window != window())
return; return;