• Home
  • Raw
  • Download

Lines Matching refs:_glfw

49     if (_glfw.x11.xkb.available)  in translateKeyCode()
55 keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 1); in translateKeyCode()
77 keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); in translateKeyCode()
84 keySyms = XGetKeyboardMapping(_glfw.x11.display, scancode, 1, &dummy); in translateKeyCode()
235 memset(_glfw.x11.publicKeys, -1, sizeof(_glfw.x11.publicKeys)); in createKeyTables()
236 memset(_glfw.x11.nativeKeys, -1, sizeof(_glfw.x11.nativeKeys)); in createKeyTables()
238 if (_glfw.x11.xkb.available) in createKeyTables()
244 XkbDescPtr desc = XkbGetMap(_glfw.x11.display, 0, XkbUseCoreKbd); in createKeyTables()
245 XkbGetNames(_glfw.x11.display, XkbKeyNamesMask, desc); in createKeyTables()
308 _glfw.x11.publicKeys[scancode] = key; in createKeyTables()
319 if (_glfw.x11.publicKeys[scancode] < 0) in createKeyTables()
320 _glfw.x11.publicKeys[scancode] = translateKeyCode(scancode); in createKeyTables()
323 if (_glfw.x11.publicKeys[scancode] > 0) in createKeyTables()
324 _glfw.x11.nativeKeys[_glfw.x11.publicKeys[scancode]] = scancode; in createKeyTables()
336 if (XGetIMValues(_glfw.x11.im, XNQueryInputStyle, &styles, NULL) != NULL) in hasUsableInputMethodStyle()
359 const Atom atom = XInternAtom(_glfw.x11.display, atomName, False); in getSupportedAtom()
379 XInternAtom(_glfw.x11.display, "_NET_SUPPORTING_WM_CHECK", False); in detectEWMH()
381 XInternAtom(_glfw.x11.display, "_NET_SUPPORTED", False); in detectEWMH()
384 if (_glfwGetWindowPropertyX11(_glfw.x11.root, in detectEWMH()
429 atomCount = _glfwGetWindowPropertyX11(_glfw.x11.root, in detectEWMH()
435 _glfw.x11.NET_WM_STATE = in detectEWMH()
437 _glfw.x11.NET_WM_STATE_ABOVE = in detectEWMH()
439 _glfw.x11.NET_WM_STATE_FULLSCREEN = in detectEWMH()
441 _glfw.x11.NET_WM_STATE_MAXIMIZED_VERT = in detectEWMH()
443 _glfw.x11.NET_WM_STATE_MAXIMIZED_HORZ = in detectEWMH()
445 _glfw.x11.NET_WM_FULLSCREEN_MONITORS = in detectEWMH()
447 _glfw.x11.NET_WM_WINDOW_TYPE = in detectEWMH()
449 _glfw.x11.NET_WM_WINDOW_TYPE_NORMAL = in detectEWMH()
451 _glfw.x11.NET_ACTIVE_WINDOW = in detectEWMH()
453 _glfw.x11.NET_FRAME_EXTENTS = in detectEWMH()
455 _glfw.x11.NET_REQUEST_FRAME_EXTENTS = in detectEWMH()
467 _glfw.x11.vidmode.available = in initExtensions()
468 XF86VidModeQueryExtension(_glfw.x11.display, in initExtensions()
469 &_glfw.x11.vidmode.eventBase, in initExtensions()
470 &_glfw.x11.vidmode.errorBase); in initExtensions()
474 if (XRRQueryExtension(_glfw.x11.display, in initExtensions()
475 &_glfw.x11.randr.eventBase, in initExtensions()
476 &_glfw.x11.randr.errorBase)) in initExtensions()
478 if (XRRQueryVersion(_glfw.x11.display, in initExtensions()
479 &_glfw.x11.randr.major, in initExtensions()
480 &_glfw.x11.randr.minor)) in initExtensions()
483 if (_glfw.x11.randr.major > 1 || _glfw.x11.randr.minor >= 3) in initExtensions()
484 _glfw.x11.randr.available = GLFW_TRUE; in initExtensions()
493 if (_glfw.x11.randr.available) in initExtensions()
495 XRRScreenResources* sr = XRRGetScreenResources(_glfw.x11.display, in initExtensions()
496 _glfw.x11.root); in initExtensions()
498 if (!sr->ncrtc || !XRRGetCrtcGammaSize(_glfw.x11.display, sr->crtcs[0])) in initExtensions()
506 _glfw.x11.randr.gammaBroken = GLFW_TRUE; in initExtensions()
511 XRRSelectInput(_glfw.x11.display, _glfw.x11.root, in initExtensions()
515 if (XineramaQueryExtension(_glfw.x11.display, in initExtensions()
516 &_glfw.x11.xinerama.major, in initExtensions()
517 &_glfw.x11.xinerama.minor)) in initExtensions()
519 if (XineramaIsActive(_glfw.x11.display)) in initExtensions()
520 _glfw.x11.xinerama.available = GLFW_TRUE; in initExtensions()
524 _glfw.x11.xkb.major = 1; in initExtensions()
525 _glfw.x11.xkb.minor = 0; in initExtensions()
526 _glfw.x11.xkb.available = in initExtensions()
527 XkbQueryExtension(_glfw.x11.display, in initExtensions()
528 &_glfw.x11.xkb.majorOpcode, in initExtensions()
529 &_glfw.x11.xkb.eventBase, in initExtensions()
530 &_glfw.x11.xkb.errorBase, in initExtensions()
531 &_glfw.x11.xkb.major, in initExtensions()
532 &_glfw.x11.xkb.minor); in initExtensions()
534 if (_glfw.x11.xkb.available) in initExtensions()
538 if (XkbSetDetectableAutoRepeat(_glfw.x11.display, True, &supported)) in initExtensions()
541 _glfw.x11.xkb.detectable = GLFW_TRUE; in initExtensions()
545 _glfw.x11.x11xcb.handle = dlopen("libX11-xcb.so", RTLD_LAZY | RTLD_GLOBAL); in initExtensions()
546 if (_glfw.x11.x11xcb.handle) in initExtensions()
548 _glfw.x11.x11xcb.XGetXCBConnection = (XGETXCBCONNECTION_T) in initExtensions()
549 dlsym(_glfw.x11.x11xcb.handle, "XGetXCBConnection"); in initExtensions()
561 _glfw.x11.NULL_ = XInternAtom(_glfw.x11.display, "NULL", False); in initExtensions()
562 _glfw.x11.UTF8_STRING = in initExtensions()
563 XInternAtom(_glfw.x11.display, "UTF8_STRING", False); in initExtensions()
564 _glfw.x11.COMPOUND_STRING = in initExtensions()
565 XInternAtom(_glfw.x11.display, "COMPOUND_STRING", False); in initExtensions()
566 _glfw.x11.ATOM_PAIR = XInternAtom(_glfw.x11.display, "ATOM_PAIR", False); in initExtensions()
569 _glfw.x11.GLFW_SELECTION = in initExtensions()
570 XInternAtom(_glfw.x11.display, "GLFW_SELECTION", False); in initExtensions()
573 _glfw.x11.TARGETS = XInternAtom(_glfw.x11.display, "TARGETS", False); in initExtensions()
574 _glfw.x11.MULTIPLE = XInternAtom(_glfw.x11.display, "MULTIPLE", False); in initExtensions()
575 _glfw.x11.CLIPBOARD = XInternAtom(_glfw.x11.display, "CLIPBOARD", False); in initExtensions()
578 _glfw.x11.CLIPBOARD_MANAGER = in initExtensions()
579 XInternAtom(_glfw.x11.display, "CLIPBOARD_MANAGER", False); in initExtensions()
580 _glfw.x11.SAVE_TARGETS = in initExtensions()
581 XInternAtom(_glfw.x11.display, "SAVE_TARGETS", False); in initExtensions()
584 _glfw.x11.XdndAware = XInternAtom(_glfw.x11.display, "XdndAware", False); in initExtensions()
585 _glfw.x11.XdndEnter = XInternAtom(_glfw.x11.display, "XdndEnter", False); in initExtensions()
586 _glfw.x11.XdndPosition = XInternAtom(_glfw.x11.display, "XdndPosition", False); in initExtensions()
587 _glfw.x11.XdndStatus = XInternAtom(_glfw.x11.display, "XdndStatus", False); in initExtensions()
588 _glfw.x11.XdndActionCopy = XInternAtom(_glfw.x11.display, "XdndActionCopy", False); in initExtensions()
589 _glfw.x11.XdndDrop = XInternAtom(_glfw.x11.display, "XdndDrop", False); in initExtensions()
590 _glfw.x11.XdndLeave = XInternAtom(_glfw.x11.display, "XdndLeave", False); in initExtensions()
591 _glfw.x11.XdndFinished = XInternAtom(_glfw.x11.display, "XdndFinished", False); in initExtensions()
592 _glfw.x11.XdndSelection = XInternAtom(_glfw.x11.display, "XdndSelection", False); in initExtensions()
597 _glfw.x11.WM_PROTOCOLS = in initExtensions()
598 XInternAtom(_glfw.x11.display, "WM_PROTOCOLS", False); in initExtensions()
599 _glfw.x11.WM_STATE = in initExtensions()
600 XInternAtom(_glfw.x11.display, "WM_STATE", False); in initExtensions()
601 _glfw.x11.WM_DELETE_WINDOW = in initExtensions()
602 XInternAtom(_glfw.x11.display, "WM_DELETE_WINDOW", False); in initExtensions()
603 _glfw.x11.NET_WM_ICON = in initExtensions()
604 XInternAtom(_glfw.x11.display, "_NET_WM_ICON", False); in initExtensions()
605 _glfw.x11.NET_WM_PING = in initExtensions()
606 XInternAtom(_glfw.x11.display, "_NET_WM_PING", False); in initExtensions()
607 _glfw.x11.NET_WM_PID = in initExtensions()
608 XInternAtom(_glfw.x11.display, "_NET_WM_PID", False); in initExtensions()
609 _glfw.x11.NET_WM_NAME = in initExtensions()
610 XInternAtom(_glfw.x11.display, "_NET_WM_NAME", False); in initExtensions()
611 _glfw.x11.NET_WM_ICON_NAME = in initExtensions()
612 XInternAtom(_glfw.x11.display, "_NET_WM_ICON_NAME", False); in initExtensions()
613 _glfw.x11.NET_WM_BYPASS_COMPOSITOR = in initExtensions()
614 XInternAtom(_glfw.x11.display, "_NET_WM_BYPASS_COMPOSITOR", False); in initExtensions()
615 _glfw.x11.MOTIF_WM_HINTS = in initExtensions()
616 XInternAtom(_glfw.x11.display, "_MOTIF_WM_HINTS", False); in initExtensions()
637 _glfw.x11.errorCode = event->error_code; in errorHandler()
650 _glfw.x11.errorCode = Success; in _glfwGrabErrorHandlerX11()
659 XSync(_glfw.x11.display, False); in _glfwReleaseErrorHandlerX11()
668 XGetErrorText(_glfw.x11.display, _glfw.x11.errorCode, in _glfwInputErrorX11()
701 cursor = XcursorImageLoadCursor(_glfw.x11.display, native); in _glfwCreateCursorX11()
723 _glfw.x11.display = XOpenDisplay(NULL); in _glfwPlatformInit()
724 if (!_glfw.x11.display) in _glfwPlatformInit()
741 _glfw.x11.screen = DefaultScreen(_glfw.x11.display); in _glfwPlatformInit()
742 _glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen); in _glfwPlatformInit()
743 _glfw.x11.context = XUniqueContext(); in _glfwPlatformInit()
748 _glfw.x11.cursor = createHiddenCursor(); in _glfwPlatformInit()
754 _glfw.x11.im = XOpenIM(_glfw.x11.display, 0, NULL, NULL); in _glfwPlatformInit()
755 if (_glfw.x11.im) in _glfwPlatformInit()
759 XCloseIM(_glfw.x11.im); in _glfwPlatformInit()
760 _glfw.x11.im = NULL; in _glfwPlatformInit()
778 if (_glfw.x11.x11xcb.handle) in _glfwPlatformTerminate()
780 dlclose(_glfw.x11.x11xcb.handle); in _glfwPlatformTerminate()
781 _glfw.x11.x11xcb.handle = NULL; in _glfwPlatformTerminate()
784 if (_glfw.x11.cursor) in _glfwPlatformTerminate()
786 XFreeCursor(_glfw.x11.display, _glfw.x11.cursor); in _glfwPlatformTerminate()
787 _glfw.x11.cursor = (Cursor) 0; in _glfwPlatformTerminate()
790 free(_glfw.x11.clipboardString); in _glfwPlatformTerminate()
792 if (_glfw.x11.im) in _glfwPlatformTerminate()
794 XCloseIM(_glfw.x11.im); in _glfwPlatformTerminate()
795 _glfw.x11.im = NULL; in _glfwPlatformTerminate()
800 if (_glfw.x11.display) in _glfwPlatformTerminate()
802 XCloseDisplay(_glfw.x11.display); in _glfwPlatformTerminate()
803 _glfw.x11.display = NULL; in _glfwPlatformTerminate()