Changeset View
Changeset View
Standalone View
Standalone View
events.cpp
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Line(s) | 309 | case XCB_UNMAP_NOTIFY: { | |||
---|---|---|---|---|---|
310 | const auto *event = reinterpret_cast<xcb_unmap_notify_event_t*>(e); | 310 | const auto *event = reinterpret_cast<xcb_unmap_notify_event_t*>(e); | ||
311 | return (event->event != event->window); // hide wm typical event from Qt | 311 | return (event->event != event->window); // hide wm typical event from Qt | ||
312 | } | 312 | } | ||
313 | case XCB_REPARENT_NOTIFY: { | 313 | case XCB_REPARENT_NOTIFY: { | ||
314 | //do not confuse Qt with these events. After all, _we_ are the | 314 | //do not confuse Qt with these events. After all, _we_ are the | ||
315 | //window manager who does the reparenting. | 315 | //window manager who does the reparenting. | ||
316 | return true; | 316 | return true; | ||
317 | } | 317 | } | ||
318 | case XCB_DESTROY_NOTIFY: { | | |||
319 | return false; | | |||
320 | } | | |||
321 | case XCB_MAP_REQUEST: { | 318 | case XCB_MAP_REQUEST: { | ||
322 | updateXTime(); | 319 | updateXTime(); | ||
323 | 320 | | |||
324 | const auto *event = reinterpret_cast<xcb_map_request_event_t*>(e); | 321 | const auto *event = reinterpret_cast<xcb_map_request_event_t*>(e); | ||
325 | if (Client* c = findClient(Predicate::WindowMatch, event->window)) { | 322 | if (Client* c = findClient(Predicate::WindowMatch, event->window)) { | ||
326 | // e->xmaprequest.window is different from e->xany.window | 323 | // e->xmaprequest.window is different from e->xany.window | ||
327 | // TODO this shouldn't be necessary now | 324 | // TODO this shouldn't be necessary now | ||
328 | c->windowEvent(e); | 325 | c->windowEvent(e); | ||
▲ Show 20 Lines • Show All 1064 Lines • Show Last 20 Lines |