Changeset View
Changeset View
Standalone View
Standalone View
tabbox/x11_filter.cpp
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Line(s) | 78 | { | |||
---|---|---|---|---|---|
96 | return false; | 96 | return false; | ||
97 | } | 97 | } | ||
98 | 98 | | |||
99 | void X11Filter::motion(xcb_generic_event_t *event) | 99 | void X11Filter::motion(xcb_generic_event_t *event) | ||
100 | { | 100 | { | ||
101 | auto *mouseEvent = reinterpret_cast<xcb_motion_notify_event_t*>(event); | 101 | auto *mouseEvent = reinterpret_cast<xcb_motion_notify_event_t*>(event); | ||
102 | const QPoint rootPos(mouseEvent->root_x, mouseEvent->root_y); | 102 | const QPoint rootPos(mouseEvent->root_x, mouseEvent->root_y); | ||
103 | // TODO: this should be in ScreenEdges directly | 103 | // TODO: this should be in ScreenEdges directly | ||
104 | ScreenEdges::self()->check(rootPos, QDateTime::fromMSecsSinceEpoch(xTime()), true); | 104 | ScreenEdges::self()->check(rootPos, QDateTime::fromMSecsSinceEpoch(xTime(), Qt::UTC), true); | ||
105 | xcb_allow_events(connection(), XCB_ALLOW_ASYNC_POINTER, XCB_CURRENT_TIME); | 105 | xcb_allow_events(connection(), XCB_ALLOW_ASYNC_POINTER, XCB_CURRENT_TIME); | ||
106 | } | 106 | } | ||
107 | 107 | | |||
108 | void X11Filter::keyPress(xcb_generic_event_t *event) | 108 | void X11Filter::keyPress(xcb_generic_event_t *event) | ||
109 | { | 109 | { | ||
110 | int keyQt; | 110 | int keyQt; | ||
111 | xcb_key_press_event_t *keyEvent = reinterpret_cast<xcb_key_press_event_t*>(event); | 111 | xcb_key_press_event_t *keyEvent = reinterpret_cast<xcb_key_press_event_t*>(event); | ||
112 | KKeyServer::xcbKeyPressEventToQt(keyEvent, &keyQt); | 112 | KKeyServer::xcbKeyPressEventToQt(keyEvent, &keyQt); | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |