MCPcopy Create free account
hub / github.com/deskflow/deskflow / pollActiveModifiers

Method pollActiveModifiers

src/lib/platform/XWindowsKeyState.cpp:156–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156KeyModifierMask XWindowsKeyState::pollActiveModifiers() const
157{
158 Window root = DefaultRootWindow(m_display);
159 Window window;
160 int xRoot;
161 int yRoot;
162 int xWindow;
163 int yWindow;
164 unsigned int state = 0;
165 if (XQueryPointer(m_display, root, &root, &window, &xRoot, &yRoot, &xWindow, &yWindow, &state) == False) {
166 state = 0;
167 }
168 return mapModifiersFromX(state);
169}
170
171int32_t XWindowsKeyState::pollActiveGroup() const
172{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected