mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Wire up color scheme change notifications on X11 as well
This commit is contained in:
2
glfw/x11_init.c
vendored
2
glfw/x11_init.c
vendored
@@ -30,6 +30,7 @@
|
||||
#define _GNU_SOURCE
|
||||
#include "internal.h"
|
||||
#include "backend_utils.h"
|
||||
#include "linux_desktop_settings.h"
|
||||
|
||||
#include <X11/Xresource.h>
|
||||
|
||||
@@ -648,6 +649,7 @@ int _glfwPlatformInit(void)
|
||||
"X11: Failed to initialize event loop data");
|
||||
}
|
||||
glfw_dbus_init(&_glfw.x11.dbus, &_glfw.x11.eventLoopData);
|
||||
glfw_initialize_desktop_settings(); // needed for color scheme change notification
|
||||
|
||||
_glfw.x11.screen = DefaultScreen(_glfw.x11.display);
|
||||
_glfw.x11.root = RootWindow(_glfw.x11.display, _glfw.x11.screen);
|
||||
|
||||
Reference in New Issue
Block a user