Commit Graph

8 Commits (master)

Author SHA1 Message Date
Tianhao Chai 29058a09bb nvctrl: call XDefaultScreen for screen id (#1152)
Calling nvctrl XNVCTRLIsNvScreen with X display ID used for screen id is
a programmer error. For most common use cases, Gnome on X11 may launch
user sessions on X display ":1" but still uses screen 0. Current code
will always fail to find a correct display in this case, as both
`IsNvScreen(":0", 0)` and `IsNvScreen(":1", 1)` returns false.

Call XDefaultScreen with `struct Display *` to obtain the correct screen
id, then use this id for `IsNvScreen()`.
8 months ago
jackun 5fde8749af
Use a "get" function to initialize X11 loader...
...so static init doesn't spam log before we got that set up properly.
1 year ago
jackun a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time 3 years ago
jackun 2f807a4c0d
Add `spdlog` wrap and logging 3 years ago
jackun 1f81889d1b
Show bitness in library loaders 4 years ago
jackun f3f04f3f78
Print dlerror() in lib loaders 4 years ago
jackun 8cd3172335
[OpenGL] Separate GLX out from shareable code so wayland sessions can just use EGL, hopefully 4 years ago
jackun 329b5d66c2
Add X11 loader 4 years ago