aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-09 17:05:28 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-09 17:05:28 +0100
commit9b8c6cabcd2d6a15e644f6e0a7baf649715f5f5c (patch)
tree7de75a7f9d800e5989d02f21b69a2b1de64fb822 /src
parent34ca6fdc39ede4570cfdf81ce45a9723f590b00a (diff)
Fix freeze on startup on hyprland because of hack workaround, requires window to be visible
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 8c30508..25cb72a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -171,7 +171,8 @@ static const mgl_monitor* find_monitor_at_position(mgl::Window &window, mgl::vec
static mgl::vec2i create_window_get_center_position(Display *display) {
XSetWindowAttributes window_attr;
window_attr.event_mask = StructureNotifyMask;
- const Window window = XCreateWindow(display, DefaultRootWindow(display), 0, 0, 32, 32, 0, CopyFromParent, InputOutput, CopyFromParent, CWEventMask, &window_attr);
+ window_attr.background_pixel = 0;
+ const Window window = XCreateWindow(display, DefaultRootWindow(display), 0, 0, 16, 16, 0, CopyFromParent, InputOutput, CopyFromParent, CWBackPixel | CWEventMask, &window_attr);
if(!window)
return {0, 0};