commit 833ac23
Devine Lu Linvega
·
2025-06-24 23:26:06 +0000 UTC
parent 26eb799
Use actual screen size for initial window
1 files changed,
+1,
-1
+1,
-1
1@@ -1162,7 +1162,7 @@ display_init(void)
2 /* center */
3 screen = ScreenOfDisplay(display, 0);
4 screen_width = screen->width, screen_height = screen->height;
5- window = XCreateSimpleWindow(display, RootWindow(display, 0), screen_width / 2 - uxn_screen.width / 2, screen_height / 2 - uxn_screen.height / 2, WIDTH, HEIGHT, 1, 0, 0);
6+ window = XCreateSimpleWindow(display, RootWindow(display, 0), screen_width / 2 - uxn_screen.width / 2, screen_height / 2 - uxn_screen.height / 2, uxn_screen.width, uxn_screen.height, 1, 0, 0);
7 display_hidecursor();
8 display_floating(display, window);
9 XSelectInput(display, window, ButtonPressMask | ButtonReleaseMask | PointerMotionMask | ExposureMask | KeyPressMask | KeyReleaseMask | LeaveWindowMask);