Changeset View
Changeset View
Standalone View
Standalone View
utils.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | |||||
79 | event with timestamp, and extra PropertyNotify is generated in order to make | 79 | event with timestamp, and extra PropertyNotify is generated in order to make | ||
80 | sure such event is found. | 80 | sure such event is found. | ||
81 | */ | 81 | */ | ||
82 | void updateXTime() | 82 | void updateXTime() | ||
83 | { | 83 | { | ||
84 | // NOTE: QX11Info::getTimestamp does not yet search the event queue as the old | 84 | // NOTE: QX11Info::getTimestamp does not yet search the event queue as the old | ||
85 | // solution did. This means there might be regressions currently. See the | 85 | // solution did. This means there might be regressions currently. See the | ||
86 | // documentation above on how it should be done properly. | 86 | // documentation above on how it should be done properly. | ||
87 | kwinApp()->setX11Time(QX11Info::getTimestamp()); | 87 | kwinApp()->setX11Time(QX11Info::getTimestamp(), Application::TimestampUpdate::Always); | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | static int server_grab_count = 0; | 90 | static int server_grab_count = 0; | ||
91 | 91 | | |||
92 | void grabXServer() | 92 | void grabXServer() | ||
93 | { | 93 | { | ||
94 | if (++server_grab_count == 1) | 94 | if (++server_grab_count == 1) | ||
95 | xcb_grab_server(connection()); | 95 | xcb_grab_server(connection()); | ||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |