Lines Matching refs:x11
89 _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen),
104 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
109 XRRScreenResources* sr = XRRGetScreenResourcesCurrent(_glfw.x11.display,
110 _glfw.x11.root);
111 RROutput primary = XRRGetOutputPrimary(_glfw.x11.display,
112 _glfw.x11.root);
114 if (_glfw.x11.xinerama.available)
115 screens = XineramaQueryScreens(_glfw.x11.display, &screenCount);
130 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, sr->outputs[i]);
140 disconnected[j]->x11.output == sr->outputs[i])
153 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, oi->crtc);
176 monitor->x11.output = sr->outputs[i];
177 monitor->x11.crtc = oi->crtc;
186 monitor->x11.index = j;
191 if (monitor->x11.output == primary)
217 const int widthMM = DisplayWidthMM(_glfw.x11.display, _glfw.x11.screen);
218 const int heightMM = DisplayHeightMM(_glfw.x11.display, _glfw.x11.screen);
230 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
241 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
242 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
243 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output);
261 if (monitor->x11.oldMode == None)
262 monitor->x11.oldMode = ci->mode;
264 XRRSetCrtcConfig(_glfw.x11.display,
265 sr, monitor->x11.crtc,
284 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
286 if (monitor->x11.oldMode == None)
290 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
291 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
293 XRRSetCrtcConfig(_glfw.x11.display,
294 sr, monitor->x11.crtc,
297 monitor->x11.oldMode,
305 monitor->x11.oldMode = None;
320 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
323 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
324 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
344 *xscale = _glfw.x11.contentScaleX;
346 *yscale = _glfw.x11.contentScaleY;
355 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
358 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
359 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
382 areaWidth = DisplayWidth(_glfw.x11.display, _glfw.x11.screen);
383 areaHeight = DisplayHeight(_glfw.x11.display, _glfw.x11.screen);
386 if (_glfw.x11.NET_WORKAREA && _glfw.x11.NET_CURRENT_DESKTOP)
391 _glfwGetWindowPropertyX11(_glfw.x11.root,
392 _glfw.x11.NET_WORKAREA,
396 if (_glfwGetWindowPropertyX11(_glfw.x11.root,
397 _glfw.x11.NET_CURRENT_DESKTOP,
449 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
452 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
453 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
454 XRROutputInfo* oi = XRRGetOutputInfo(_glfw.x11.display, sr, monitor->x11.output);
497 if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken)
500 XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root);
503 XRRCrtcInfo* ci = XRRGetCrtcInfo(_glfw.x11.display, sr, monitor->x11.crtc);
523 mode->width = DisplayWidth(_glfw.x11.display, _glfw.x11.screen);
524 mode->height = DisplayHeight(_glfw.x11.display, _glfw.x11.screen);
527 _glfwSplitBPP(DefaultDepth(_glfw.x11.display, _glfw.x11.screen),
536 if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken)
538 const size_t size = XRRGetCrtcGammaSize(_glfw.x11.display,
539 monitor->x11.crtc);
540 XRRCrtcGamma* gamma = XRRGetCrtcGamma(_glfw.x11.display,
541 monitor->x11.crtc);
552 else if (_glfw.x11.vidmode.available)
555 XF86VidModeGetGammaRampSize(_glfw.x11.display, _glfw.x11.screen, &size);
559 XF86VidModeGetGammaRamp(_glfw.x11.display,
560 _glfw.x11.screen,
574 if (_glfw.x11.randr.available && !_glfw.x11.randr.gammaBroken)
576 if (XRRGetCrtcGammaSize(_glfw.x11.display, monitor->x11.crtc) != ramp->size)
589 XRRSetCrtcGamma(_glfw.x11.display, monitor->x11.crtc, gamma);
592 else if (_glfw.x11.vidmode.available)
594 XF86VidModeSetGammaRamp(_glfw.x11.display,
595 _glfw.x11.screen,
626 return monitor->x11.crtc;
642 return monitor->x11.output;