diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-04 01:42:09 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-04 01:42:09 +0100 |
commit | 6b66eebb6896b768f1b7cd5f37caa01fbf4b7e28 (patch) | |
tree | cddffdfb2c1f66e143c7c4445ce205b16b3abf83 /src | |
parent | aec27724950c4ccad69299c0b2080d19a5adb443 (diff) |
Diffstat (limited to 'src')
-rw-r--r-- | src/Overlay.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Overlay.cpp b/src/Overlay.cpp index 5a2783b..9806561 100644 --- a/src/Overlay.cpp +++ b/src/Overlay.cpp @@ -297,10 +297,9 @@ namespace gsr { } static mgl::vec2i create_window_get_center_position(Display *display) { - const int screen = DefaultScreen(display); XSetWindowAttributes window_attr; window_attr.event_mask = StructureNotifyMask; - const Window window = XCreateWindow(display, DefaultRootWindow(display), 0, 0, 32, 32, 0, DefaultDepth(display, screen), InputOutput, DefaultVisual(display, screen), CWEventMask, &window_attr); + const Window window = XCreateWindow(display, DefaultRootWindow(display), 0, 0, 32, 32, 0, CopyFromParent, InputOutput, CopyFromParent, CWEventMask, &window_attr); if(!window) return {0, 0}; |