aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-04 01:42:09 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-04 01:42:09 +0100
commit6b66eebb6896b768f1b7cd5f37caa01fbf4b7e28 (patch)
treecddffdfb2c1f66e143c7c4445ce205b16b3abf83 /src
parentaec27724950c4ccad69299c0b2080d19a5adb443 (diff)
CopyFromParentHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/Overlay.cpp3
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};