Changeset View
Changeset View
Standalone View
Standalone View
events.cpp
Show First 20 Lines • Show All 253 Lines • ▼ Show 20 Line(s) | 250 | if (eventType == XCB_PROPERTY_NOTIFY || eventType == XCB_CLIENT_MESSAGE) { | |||
---|---|---|---|---|---|
254 | if (dirtyProtocols & NET::DesktopNames) | 254 | if (dirtyProtocols & NET::DesktopNames) | ||
255 | VirtualDesktopManager::self()->save(); | 255 | VirtualDesktopManager::self()->save(); | ||
256 | if (dirtyProtocols2 & NET::WM2DesktopLayout) | 256 | if (dirtyProtocols2 & NET::WM2DesktopLayout) | ||
257 | VirtualDesktopManager::self()->updateLayout(); | 257 | VirtualDesktopManager::self()->updateLayout(); | ||
258 | } | 258 | } | ||
259 | 259 | | |||
260 | // events that should be handled before Clients can get them | 260 | // events that should be handled before Clients can get them | ||
261 | switch (eventType) { | 261 | switch (eventType) { | ||
262 | case XCB_BUTTON_PRESS: | | |||
263 | case XCB_BUTTON_RELEASE: { | | |||
264 | auto *mouseEvent = reinterpret_cast<xcb_button_press_event_t*>(e); | | |||
265 | if (effects && static_cast<EffectsHandlerImpl*>(effects)->checkInputWindowEvent(mouseEvent)) { | | |||
266 | return true; | | |||
267 | } | | |||
268 | break; | | |||
269 | } | | |||
270 | case XCB_MOTION_NOTIFY: { | | |||
271 | if (kwinApp()->operationMode() != Application::OperationModeX11) { | | |||
272 | // ignore X11 pointer events generated on X windows if we are not on X | | |||
273 | return true; | | |||
274 | } | | |||
275 | auto *mouseEvent = reinterpret_cast<xcb_motion_notify_event_t*>(e); | | |||
276 | if (effects && static_cast<EffectsHandlerImpl*>(effects)->checkInputWindowEvent(mouseEvent)) { | | |||
277 | return true; | | |||
278 | } | | |||
279 | break; | | |||
280 | } | | |||
281 | case XCB_CONFIGURE_NOTIFY: | 262 | case XCB_CONFIGURE_NOTIFY: | ||
282 | if (reinterpret_cast<xcb_configure_notify_event_t*>(e)->event == rootWindow()) | 263 | if (reinterpret_cast<xcb_configure_notify_event_t*>(e)->event == rootWindow()) | ||
283 | markXStackingOrderAsDirty(); | 264 | markXStackingOrderAsDirty(); | ||
284 | break; | 265 | break; | ||
285 | }; | 266 | }; | ||
286 | 267 | | |||
287 | const xcb_window_t eventWindow = findEventWindow(e); | 268 | const xcb_window_t eventWindow = findEventWindow(e); | ||
288 | if (eventWindow != XCB_WINDOW_NONE) { | 269 | if (eventWindow != XCB_WINDOW_NONE) { | ||
▲ Show 20 Lines • Show All 1123 Lines • Show Last 20 Lines |