Lines Matching refs:state
162 CARD32 state;
164 } *state = NULL;
169 (unsigned char**) &state) >= 2)
171 result = state->state;
174 if (state)
175 XFree(state);
198 event->xproperty.state == PropertyNewValue &&
209 event->xproperty.state == PropertyNewValue &&
214 // Translates an X event modifier state mask
216 static int translateState(int state)
220 if (state & ShiftMask)
222 if (state & ControlMask)
224 if (state & Mod1Mask)
226 if (state & Mod4Mask)
228 if (state & LockMask)
230 if (state & Mod2Mask)
1172 (((XkbEvent*) event)->state.changed & XkbGroupStateMask))
1174 _glfw.x11.xkb.group = ((XkbEvent*) event)->state.group;
1246 const int mods = translateState(event->xkey.state);
1318 const int mods = translateState(event->xkey.state);
1358 const int mods = translateState(event->xbutton.state);
1392 const int mods = translateState(event->xbutton.state);
1794 if (event->xproperty.state != PropertyNewValue)
1799 const int state = getWindowState(window);
1800 if (state != IconicState && state != NormalState)
1803 const GLFWbool iconified = (state == IconicState);
2529 int state;
2531 XGetInputFocus(_glfw.x11.display, &focused, &state);