From 6b66eebb6896b768f1b7cd5f37caa01fbf4b7e28 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 4 Dec 2024 01:42:09 +0100 Subject: CopyFromParent --- src/Overlay.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Overlay.cpp') 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}; -- cgit v1.2.3