Enable destroy notify event handling in Client
This commit is contained in:
parent
958e47b36c
commit
7acfb339b1
2 changed files with 5 additions and 5 deletions
2
client.h
2
client.h
|
@ -674,7 +674,7 @@ private:
|
|||
// Handlers for X11 events
|
||||
bool mapRequestEvent(XMapRequestEvent* 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);
|
||||
virtual void propertyNotifyEvent(xcb_property_notify_event_t *e) override;
|
||||
void clientMessageEvent(XClientMessageEvent* e);
|
||||
|
|
|
@ -497,10 +497,10 @@ bool Client::windowEvent(xcb_generic_event_t *e)
|
|||
case XCB_UNMAP_NOTIFY:
|
||||
unmapNotifyEvent(reinterpret_cast<xcb_unmap_notify_event_t*>(e));
|
||||
break;
|
||||
#if KWIN_QT5_PORTING
|
||||
case DestroyNotify:
|
||||
destroyNotifyEvent(&e->xdestroywindow);
|
||||
case XCB_DESTROY_NOTIFY:
|
||||
destroyNotifyEvent(reinterpret_cast<xcb_destroy_notify_event_t*>(e));
|
||||
break;
|
||||
#if KWIN_QT5_PORTING
|
||||
case MapRequest:
|
||||
// this one may pass the event to workspace
|
||||
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())
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue