• Home
  • Raw
  • Download

Lines Matching refs:_glfw

59     const int fd = ConnectionNumber(_glfw.x11.display);  in waitForEvent()
65 FD_SET(_glfw.linux_js.inotify, &fds); in waitForEvent()
67 if (fd < _glfw.linux_js.inotify) in waitForEvent()
68 count = _glfw.linux_js.inotify + 1; in waitForEvent()
103 while (!XCheckTypedWindowEvent(_glfw.x11.display, in waitForVisibilityNotify()
126 _glfw.x11.WM_STATE, in getWindowState()
127 _glfw.x11.WM_STATE, in getWindowState()
154 event->xproperty.atom == _glfw.x11.NET_FRAME_EXTENTS; in isFrameExtentsEvent()
206 return _glfw.x11.publicKeys[scancode]; in translateKey()
215 if (XFindContext(_glfw.x11.display, in findWindowByHandle()
217 _glfw.x11.context, in findWindowByHandle()
244 XSendEvent(_glfw.x11.display, _glfw.x11.root, in sendEventToWM()
295 XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); in updateNormalHints()
305 if (_glfw.x11.xinerama.available && in updateWindowMode()
306 _glfw.x11.NET_WM_FULLSCREEN_MONITORS) in updateWindowMode()
309 _glfw.x11.NET_WM_FULLSCREEN_MONITORS, in updateWindowMode()
317 if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_FULLSCREEN) in updateWindowMode()
320 _glfw.x11.NET_WM_STATE, in updateWindowMode()
322 _glfw.x11.NET_WM_STATE_FULLSCREEN, in updateWindowMode()
337 XChangeWindowAttributes(_glfw.x11.display, in updateWindowMode()
349 XChangeProperty(_glfw.x11.display, window->x11.handle, in updateWindowMode()
350 _glfw.x11.NET_WM_BYPASS_COMPOSITOR, XA_CARDINAL, 32, in updateWindowMode()
356 if (_glfw.x11.xinerama.available && in updateWindowMode()
357 _glfw.x11.NET_WM_FULLSCREEN_MONITORS) in updateWindowMode()
359 XDeleteProperty(_glfw.x11.display, window->x11.handle, in updateWindowMode()
360 _glfw.x11.NET_WM_FULLSCREEN_MONITORS); in updateWindowMode()
363 if (_glfw.x11.NET_WM_STATE && _glfw.x11.NET_WM_STATE_FULLSCREEN) in updateWindowMode()
366 _glfw.x11.NET_WM_STATE, in updateWindowMode()
368 _glfw.x11.NET_WM_STATE_FULLSCREEN, in updateWindowMode()
375 XChangeWindowAttributes(_glfw.x11.display, in updateWindowMode()
385 XDeleteProperty(_glfw.x11.display, window->x11.handle, in updateWindowMode()
386 _glfw.x11.NET_WM_BYPASS_COMPOSITOR); in updateWindowMode()
454 XDefineCursor(_glfw.x11.display, window->x11.handle, in updateCursorImage()
458 XUndefineCursor(_glfw.x11.display, window->x11.handle); in updateCursorImage()
461 XDefineCursor(_glfw.x11.display, window->x11.handle, _glfw.x11.cursor); in updateCursorImage()
471 window->x11.colormap = XCreateColormap(_glfw.x11.display, in createNativeWindow()
472 _glfw.x11.root, in createNativeWindow()
490 window->x11.handle = XCreateWindow(_glfw.x11.display, in createNativeWindow()
491 _glfw.x11.root, in createNativeWindow()
510 XSaveContext(_glfw.x11.display, in createNativeWindow()
512 _glfw.x11.context, in createNativeWindow()
530 XChangeProperty(_glfw.x11.display, window->x11.handle, in createNativeWindow()
531 _glfw.x11.MOTIF_WM_HINTS, in createNativeWindow()
532 _glfw.x11.MOTIF_WM_HINTS, 32, in createNativeWindow()
538 if (_glfw.x11.NET_WM_STATE && !window->monitor) in createNativeWindow()
545 if (_glfw.x11.NET_WM_STATE_ABOVE) in createNativeWindow()
546 states[count++] = _glfw.x11.NET_WM_STATE_ABOVE; in createNativeWindow()
551 if (_glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && in createNativeWindow()
552 _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) in createNativeWindow()
554 states[count++] = _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT; in createNativeWindow()
555 states[count++] = _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ; in createNativeWindow()
561 XChangeProperty(_glfw.x11.display, window->x11.handle, in createNativeWindow()
562 _glfw.x11.NET_WM_STATE, XA_ATOM, 32, in createNativeWindow()
571 _glfw.x11.WM_DELETE_WINDOW, in createNativeWindow()
572 _glfw.x11.NET_WM_PING in createNativeWindow()
575 XSetWMProtocols(_glfw.x11.display, window->x11.handle, in createNativeWindow()
583 XChangeProperty(_glfw.x11.display, window->x11.handle, in createNativeWindow()
584 _glfw.x11.NET_WM_PID, XA_CARDINAL, 32, in createNativeWindow()
589 if (_glfw.x11.NET_WM_WINDOW_TYPE && _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL) in createNativeWindow()
591 Atom type = _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL; in createNativeWindow()
592 XChangeProperty(_glfw.x11.display, window->x11.handle, in createNativeWindow()
593 _glfw.x11.NET_WM_WINDOW_TYPE, XA_ATOM, 32, in createNativeWindow()
610 XSetWMHints(_glfw.x11.display, window->x11.handle, hints); in createNativeWindow()
625 XSetClassHint(_glfw.x11.display, window->x11.handle, hint); in createNativeWindow()
629 if (_glfw.x11.XdndAware) in createNativeWindow()
633 XChangeProperty(_glfw.x11.display, window->x11.handle, in createNativeWindow()
634 _glfw.x11.XdndAware, XA_ATOM, 32, in createNativeWindow()
640 if (_glfw.x11.im) in createNativeWindow()
642 window->x11.ic = XCreateIC(_glfw.x11.im, in createNativeWindow()
663 const Atom formats[] = { _glfw.x11.UTF8_STRING, in writeTargetToProperty()
664 _glfw.x11.COMPOUND_STRING, in writeTargetToProperty()
675 if (request->target == _glfw.x11.TARGETS) in writeTargetToProperty()
679 const Atom targets[] = { _glfw.x11.TARGETS, in writeTargetToProperty()
680 _glfw.x11.MULTIPLE, in writeTargetToProperty()
681 _glfw.x11.UTF8_STRING, in writeTargetToProperty()
682 _glfw.x11.COMPOUND_STRING, in writeTargetToProperty()
685 XChangeProperty(_glfw.x11.display, in writeTargetToProperty()
697 if (request->target == _glfw.x11.MULTIPLE) in writeTargetToProperty()
706 _glfw.x11.ATOM_PAIR, in writeTargetToProperty()
721 XChangeProperty(_glfw.x11.display, in writeTargetToProperty()
727 (unsigned char*) _glfw.x11.clipboardString, in writeTargetToProperty()
728 strlen(_glfw.x11.clipboardString)); in writeTargetToProperty()
734 XChangeProperty(_glfw.x11.display, in writeTargetToProperty()
737 _glfw.x11.ATOM_PAIR, in writeTargetToProperty()
748 if (request->target == _glfw.x11.SAVE_TARGETS) in writeTargetToProperty()
753 XChangeProperty(_glfw.x11.display, in writeTargetToProperty()
756 _glfw.x11.NULL_, in writeTargetToProperty()
773 XChangeProperty(_glfw.x11.display, in writeTargetToProperty()
779 (unsigned char*) _glfw.x11.clipboardString, in writeTargetToProperty()
780 strlen(_glfw.x11.clipboardString)); in writeTargetToProperty()
793 free(_glfw.x11.clipboardString); in handleSelectionClear()
794 _glfw.x11.clipboardString = NULL; in handleSelectionClear()
812 XSendEvent(_glfw.x11.display, request->requestor, False, 0, &reply); in handleSelectionRequest()
817 XConvertSelection(_glfw.x11.display, in pushSelectionToManager()
818 _glfw.x11.CLIPBOARD_MANAGER, in pushSelectionToManager()
819 _glfw.x11.SAVE_TARGETS, in pushSelectionToManager()
828 while (XCheckIfEvent(_glfw.x11.display, &event, isSelectionEvent, NULL)) in pushSelectionToManager()
842 if (event.xselection.target == _glfw.x11.SAVE_TARGETS) in pushSelectionToManager()
866 if (_glfw.x11.saver.count == 0) in acquireMonitor()
869 XGetScreenSaver(_glfw.x11.display, in acquireMonitor()
870 &_glfw.x11.saver.timeout, in acquireMonitor()
871 &_glfw.x11.saver.interval, in acquireMonitor()
872 &_glfw.x11.saver.blanking, in acquireMonitor()
873 &_glfw.x11.saver.exposure); in acquireMonitor()
876 XSetScreenSaver(_glfw.x11.display, 0, 0, DontPreferBlanking, in acquireMonitor()
881 _glfw.x11.saver.count++; in acquireMonitor()
894 XMoveResizeWindow(_glfw.x11.display, window->x11.handle, in acquireMonitor()
912 _glfw.x11.saver.count--; in releaseMonitor()
914 if (_glfw.x11.saver.count == 0) in releaseMonitor()
917 XSetScreenSaver(_glfw.x11.display, in releaseMonitor()
918 _glfw.x11.saver.timeout, in releaseMonitor()
919 _glfw.x11.saver.interval, in releaseMonitor()
920 _glfw.x11.saver.blanking, in releaseMonitor()
921 _glfw.x11.saver.exposure); in releaseMonitor()
962 if (_glfw.x11.im) in processEvent()
965 if (_glfw.x11.randr.available) in processEvent()
967 if (event->type == _glfw.x11.randr.eventBase + RRNotify) in processEvent()
1087 if (!_glfw.x11.xkb.detectable) in processEvent()
1093 if (XEventsQueued(_glfw.x11.display, QueuedAfterReading)) in processEvent()
1096 XPeekEvent(_glfw.x11.display, &next); in processEvent()
1223 if (_glfw.x11.disabledCursorWindow != window) in processEvent()
1286 if (event->xclient.message_type == _glfw.x11.WM_PROTOCOLS) in processEvent()
1292 if (protocol == _glfw.x11.WM_DELETE_WINDOW) in processEvent()
1298 else if (protocol == _glfw.x11.NET_WM_PING) in processEvent()
1304 reply.xclient.window = _glfw.x11.root; in processEvent()
1306 XSendEvent(_glfw.x11.display, _glfw.x11.root, in processEvent()
1312 else if (event->xclient.message_type == _glfw.x11.XdndEnter) in processEvent()
1317 else if (event->xclient.message_type == _glfw.x11.XdndDrop) in processEvent()
1321 _glfw.x11.xdnd.source = event->xclient.data.l[0]; in processEvent()
1322 XConvertSelection(_glfw.x11.display, in processEvent()
1323 _glfw.x11.XdndSelection, in processEvent()
1324 _glfw.x11.UTF8_STRING, in processEvent()
1325 _glfw.x11.XdndSelection, in processEvent()
1328 else if (event->xclient.message_type == _glfw.x11.XdndPosition) in processEvent()
1344 reply.xclient.message_type = _glfw.x11.XdndStatus; in processEvent()
1350 reply.xclient.data.l[4] = _glfw.x11.XdndActionCopy; in processEvent()
1352 XSendEvent(_glfw.x11.display, event->xclient.data.l[0], in processEvent()
1354 XFlush(_glfw.x11.display); in processEvent()
1390 reply.xclient.window = _glfw.x11.xdnd.source; in processEvent()
1391 reply.xclient.message_type = _glfw.x11.XdndFinished; in processEvent()
1395 reply.xclient.data.l[2] = _glfw.x11.XdndActionCopy; in processEvent()
1398 XSendEvent(_glfw.x11.display, _glfw.x11.xdnd.source, in processEvent()
1400 XFlush(_glfw.x11.display); in processEvent()
1457 if (event->xproperty.atom == _glfw.x11.WM_STATE && in processEvent()
1514 XGetWindowProperty(_glfw.x11.display, in _glfwGetWindowPropertyX11()
1548 visual = DefaultVisual(_glfw.x11.display, _glfw.x11.screen); in _glfwPlatformCreateWindow()
1549 depth = DefaultDepth(_glfw.x11.display, _glfw.x11.screen); in _glfwPlatformCreateWindow()
1596 XFlush(_glfw.x11.display); in _glfwPlatformCreateWindow()
1602 if (_glfw.x11.disabledCursorWindow == window) in _glfwPlatformDestroyWindow()
1603 _glfw.x11.disabledCursorWindow = NULL; in _glfwPlatformDestroyWindow()
1619 if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) == in _glfwPlatformDestroyWindow()
1625 XDeleteContext(_glfw.x11.display, window->x11.handle, _glfw.x11.context); in _glfwPlatformDestroyWindow()
1626 XUnmapWindow(_glfw.x11.display, window->x11.handle); in _glfwPlatformDestroyWindow()
1627 XDestroyWindow(_glfw.x11.display, window->x11.handle); in _glfwPlatformDestroyWindow()
1633 XFreeColormap(_glfw.x11.display, window->x11.colormap); in _glfwPlatformDestroyWindow()
1637 XFlush(_glfw.x11.display); in _glfwPlatformDestroyWindow()
1643 Xutf8SetWMProperties(_glfw.x11.display, in _glfwPlatformSetWindowTitle()
1651 XmbSetWMProperties(_glfw.x11.display, in _glfwPlatformSetWindowTitle()
1658 XChangeProperty(_glfw.x11.display, window->x11.handle, in _glfwPlatformSetWindowTitle()
1659 _glfw.x11.NET_WM_NAME, _glfw.x11.UTF8_STRING, 8, in _glfwPlatformSetWindowTitle()
1663 XChangeProperty(_glfw.x11.display, window->x11.handle, in _glfwPlatformSetWindowTitle()
1664 _glfw.x11.NET_WM_ICON_NAME, _glfw.x11.UTF8_STRING, 8, in _glfwPlatformSetWindowTitle()
1668 XFlush(_glfw.x11.display); in _glfwPlatformSetWindowTitle()
1698 XChangeProperty(_glfw.x11.display, window->x11.handle, in _glfwPlatformSetWindowIcon()
1699 _glfw.x11.NET_WM_ICON, in _glfwPlatformSetWindowIcon()
1709 XDeleteProperty(_glfw.x11.display, window->x11.handle, in _glfwPlatformSetWindowIcon()
1710 _glfw.x11.NET_WM_ICON); in _glfwPlatformSetWindowIcon()
1713 XFlush(_glfw.x11.display); in _glfwPlatformSetWindowIcon()
1721 XTranslateCoordinates(_glfw.x11.display, window->x11.handle, _glfw.x11.root, in _glfwPlatformGetWindowPos()
1739 if (XGetWMNormalHints(_glfw.x11.display, window->x11.handle, hints, &supplied)) in _glfwPlatformSetWindowPos()
1744 XSetWMNormalHints(_glfw.x11.display, window->x11.handle, hints); in _glfwPlatformSetWindowPos()
1750 XMoveWindow(_glfw.x11.display, window->x11.handle, xpos, ypos); in _glfwPlatformSetWindowPos()
1751 XFlush(_glfw.x11.display); in _glfwPlatformSetWindowPos()
1757 XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &attribs); in _glfwPlatformGetWindowSize()
1777 XResizeWindow(_glfw.x11.display, window->x11.handle, width, height); in _glfwPlatformSetWindowSize()
1780 XFlush(_glfw.x11.display); in _glfwPlatformSetWindowSize()
1790 XFlush(_glfw.x11.display); in _glfwPlatformSetWindowSizeLimits()
1798 XFlush(_glfw.x11.display); in _glfwPlatformSetWindowAspectRatio()
1815 if (_glfw.x11.NET_FRAME_EXTENTS == None) in _glfwPlatformGetWindowFrameSize()
1819 _glfw.x11.NET_REQUEST_FRAME_EXTENTS) in _glfwPlatformGetWindowFrameSize()
1826 sendEventToWM(window, _glfw.x11.NET_REQUEST_FRAME_EXTENTS, in _glfwPlatformGetWindowFrameSize()
1834 while (!XCheckIfEvent(_glfw.x11.display, in _glfwPlatformGetWindowFrameSize()
1849 _glfw.x11.NET_FRAME_EXTENTS, in _glfwPlatformGetWindowFrameSize()
1878 XIconifyWindow(_glfw.x11.display, window->x11.handle, _glfw.x11.screen); in _glfwPlatformIconifyWindow()
1879 XFlush(_glfw.x11.display); in _glfwPlatformIconifyWindow()
1895 XMapWindow(_glfw.x11.display, window->x11.handle); in _glfwPlatformRestoreWindow()
1900 if (_glfw.x11.NET_WM_STATE && in _glfwPlatformRestoreWindow()
1901 _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && in _glfwPlatformRestoreWindow()
1902 _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) in _glfwPlatformRestoreWindow()
1905 _glfw.x11.NET_WM_STATE, in _glfwPlatformRestoreWindow()
1907 _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, in _glfwPlatformRestoreWindow()
1908 _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ, in _glfwPlatformRestoreWindow()
1913 XFlush(_glfw.x11.display); in _glfwPlatformRestoreWindow()
1918 if (_glfw.x11.NET_WM_STATE && in _glfwPlatformMaximizeWindow()
1919 _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT && in _glfwPlatformMaximizeWindow()
1920 _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) in _glfwPlatformMaximizeWindow()
1923 _glfw.x11.NET_WM_STATE, in _glfwPlatformMaximizeWindow()
1925 _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT, in _glfwPlatformMaximizeWindow()
1926 _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ, in _glfwPlatformMaximizeWindow()
1928 XFlush(_glfw.x11.display); in _glfwPlatformMaximizeWindow()
1937 XMapWindow(_glfw.x11.display, window->x11.handle); in _glfwPlatformShowWindow()
1943 XUnmapWindow(_glfw.x11.display, window->x11.handle); in _glfwPlatformHideWindow()
1944 XFlush(_glfw.x11.display); in _glfwPlatformHideWindow()
1949 if (_glfw.x11.NET_ACTIVE_WINDOW) in _glfwPlatformFocusWindow()
1950 sendEventToWM(window, _glfw.x11.NET_ACTIVE_WINDOW, 1, 0, 0, 0, 0); in _glfwPlatformFocusWindow()
1953 XRaiseWindow(_glfw.x11.display, window->x11.handle); in _glfwPlatformFocusWindow()
1954 XSetInputFocus(_glfw.x11.display, window->x11.handle, in _glfwPlatformFocusWindow()
1958 XFlush(_glfw.x11.display); in _glfwPlatformFocusWindow()
1976 XMoveResizeWindow(_glfw.x11.display, window->x11.handle, in _glfwPlatformSetWindowMonitor()
1992 XMapRaised(_glfw.x11.display, window->x11.handle); in _glfwPlatformSetWindowMonitor()
1998 XMoveResizeWindow(_glfw.x11.display, window->x11.handle, in _glfwPlatformSetWindowMonitor()
2002 XFlush(_glfw.x11.display); in _glfwPlatformSetWindowMonitor()
2010 XGetInputFocus(_glfw.x11.display, &focused, &state); in _glfwPlatformWindowFocused()
2022 XGetWindowAttributes(_glfw.x11.display, window->x11.handle, &wa); in _glfwPlatformWindowVisible()
2033 _glfw.x11.NET_WM_STATE, in _glfwPlatformWindowMaximized()
2039 if (states[i] == _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT || in _glfwPlatformWindowMaximized()
2040 states[i] == _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ) in _glfwPlatformWindowMaximized()
2055 int count = XPending(_glfw.x11.display); in _glfwPlatformPollEvents()
2059 XNextEvent(_glfw.x11.display, &event); in _glfwPlatformPollEvents()
2063 if (_glfw.x11.disabledCursorWindow) in _glfwPlatformPollEvents()
2064 centerCursor(_glfw.x11.disabledCursorWindow); in _glfwPlatformPollEvents()
2066 XFlush(_glfw.x11.display); in _glfwPlatformPollEvents()
2071 while (!XPending(_glfw.x11.display)) in _glfwPlatformWaitEvents()
2079 while (!XPending(_glfw.x11.display)) in _glfwPlatformWaitEventsTimeout()
2091 _GLFWwindow* window = _glfw.windowListHead; in _glfwPlatformPostEmptyEvent()
2097 event.xclient.message_type = _glfw.x11.NULL_; in _glfwPlatformPostEmptyEvent()
2099 XSendEvent(_glfw.x11.display, window->x11.handle, False, 0, &event); in _glfwPlatformPostEmptyEvent()
2100 XFlush(_glfw.x11.display); in _glfwPlatformPostEmptyEvent()
2109 XQueryPointer(_glfw.x11.display, window->x11.handle, in _glfwPlatformGetCursorPos()
2126 XWarpPointer(_glfw.x11.display, None, window->x11.handle, in _glfwPlatformSetCursorPos()
2128 XFlush(_glfw.x11.display); in _glfwPlatformSetCursorPos()
2135 _glfw.x11.disabledCursorWindow = window; in _glfwPlatformSetCursorMode()
2137 &_glfw.x11.restoreCursorPosX, in _glfwPlatformSetCursorMode()
2138 &_glfw.x11.restoreCursorPosY); in _glfwPlatformSetCursorMode()
2140 XGrabPointer(_glfw.x11.display, window->x11.handle, True, in _glfwPlatformSetCursorMode()
2143 window->x11.handle, _glfw.x11.cursor, CurrentTime); in _glfwPlatformSetCursorMode()
2145 else if (_glfw.x11.disabledCursorWindow == window) in _glfwPlatformSetCursorMode()
2147 _glfw.x11.disabledCursorWindow = NULL; in _glfwPlatformSetCursorMode()
2148 XUngrabPointer(_glfw.x11.display, CurrentTime); in _glfwPlatformSetCursorMode()
2150 _glfw.x11.restoreCursorPosX, in _glfwPlatformSetCursorMode()
2151 _glfw.x11.restoreCursorPosY); in _glfwPlatformSetCursorMode()
2155 XFlush(_glfw.x11.display); in _glfwPlatformSetCursorMode()
2163 if (!_glfw.x11.xkb.available) in _glfwPlatformGetKeyName()
2167 scancode = _glfw.x11.nativeKeys[key]; in _glfwPlatformGetKeyName()
2169 if (!_glfwIsPrintable(_glfw.x11.publicKeys[scancode])) in _glfwPlatformGetKeyName()
2172 keysym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); in _glfwPlatformGetKeyName()
2176 XkbTranslateKeySym(_glfw.x11.display, &keysym, 0, in _glfwPlatformGetKeyName()
2177 _glfw.x11.keyName, sizeof(_glfw.x11.keyName), in _glfwPlatformGetKeyName()
2180 if (!strlen(_glfw.x11.keyName)) in _glfwPlatformGetKeyName()
2183 return _glfw.x11.keyName; in _glfwPlatformGetKeyName()
2199 cursor->x11.handle = XCreateFontCursor(_glfw.x11.display, in _glfwPlatformCreateStandardCursor()
2214 XFreeCursor(_glfw.x11.display, cursor->x11.handle); in _glfwPlatformDestroyCursor()
2222 XFlush(_glfw.x11.display); in _glfwPlatformSetCursor()
2228 free(_glfw.x11.clipboardString); in _glfwPlatformSetClipboardString()
2229 _glfw.x11.clipboardString = strdup(string); in _glfwPlatformSetClipboardString()
2231 XSetSelectionOwner(_glfw.x11.display, in _glfwPlatformSetClipboardString()
2232 _glfw.x11.CLIPBOARD, in _glfwPlatformSetClipboardString()
2235 if (XGetSelectionOwner(_glfw.x11.display, _glfw.x11.CLIPBOARD) != in _glfwPlatformSetClipboardString()
2246 const Atom formats[] = { _glfw.x11.UTF8_STRING, in _glfwPlatformGetClipboardString()
2247 _glfw.x11.COMPOUND_STRING, in _glfwPlatformGetClipboardString()
2251 if (findWindowByHandle(XGetSelectionOwner(_glfw.x11.display, in _glfwPlatformGetClipboardString()
2252 _glfw.x11.CLIPBOARD))) in _glfwPlatformGetClipboardString()
2256 return _glfw.x11.clipboardString; in _glfwPlatformGetClipboardString()
2259 free(_glfw.x11.clipboardString); in _glfwPlatformGetClipboardString()
2260 _glfw.x11.clipboardString = NULL; in _glfwPlatformGetClipboardString()
2267 XConvertSelection(_glfw.x11.display, in _glfwPlatformGetClipboardString()
2268 _glfw.x11.CLIPBOARD, in _glfwPlatformGetClipboardString()
2270 _glfw.x11.GLFW_SELECTION, in _glfwPlatformGetClipboardString()
2273 while (!XCheckTypedEvent(_glfw.x11.display, SelectionNotify, &event)) in _glfwPlatformGetClipboardString()
2284 _glfw.x11.clipboardString = strdup(data); in _glfwPlatformGetClipboardString()
2289 XDeleteProperty(_glfw.x11.display, in _glfwPlatformGetClipboardString()
2293 if (_glfw.x11.clipboardString) in _glfwPlatformGetClipboardString()
2297 if (_glfw.x11.clipboardString == NULL) in _glfwPlatformGetClipboardString()
2303 return _glfw.x11.clipboardString; in _glfwPlatformGetClipboardString()
2312 if (!_glfw.vk.KHR_xcb_surface || !_glfw.x11.x11xcb.handle) in _glfwPlatformGetRequiredInstanceExtensions()
2314 if (!_glfw.vk.KHR_xlib_surface) in _glfwPlatformGetRequiredInstanceExtensions()
2321 if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) in _glfwPlatformGetRequiredInstanceExtensions()
2334 VisualID visualID = XVisualIDFromVisual(DefaultVisual(_glfw.x11.display, in _glfwPlatformGetPhysicalDevicePresentationSupport()
2335 _glfw.x11.screen)); in _glfwPlatformGetPhysicalDevicePresentationSupport()
2337 if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) in _glfwPlatformGetPhysicalDevicePresentationSupport()
2350 _glfw.x11.x11xcb.XGetXCBConnection(_glfw.x11.display); in _glfwPlatformGetPhysicalDevicePresentationSupport()
2377 _glfw.x11.display, in _glfwPlatformGetPhysicalDevicePresentationSupport()
2387 if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) in _glfwPlatformCreateWindowSurface()
2394 _glfw.x11.x11xcb.XGetXCBConnection(_glfw.x11.display); in _glfwPlatformCreateWindowSurface()
2443 sci.dpy = _glfw.x11.display; in _glfwPlatformCreateWindowSurface()
2466 return _glfw.x11.display; in glfwGetX11Display()