commit 36dd15a
Lobo Torres
·
2024-08-28 15:47:14 +0000 UTC
parent 67b06c3
(uxn11) Add WM_CLASS hint to application window This allows for programs like `xprop` and window managers to recognize Uxn11 windows.
1 files changed,
+2,
-0
+2,
-0
1@@ -200,6 +200,7 @@ display_init(void)
2 char empty[] = {0};
3 Pixmap bitmap;
4 Cursor blank;
5+ XClassHint class = { "uxn11", "Uxn" };
6 display = XOpenDisplay(NULL);
7 if(!display)
8 return system_error("init", "Display failed");
9@@ -213,6 +214,7 @@ display_init(void)
10 wmDelete = XInternAtom(display, "WM_DELETE_WINDOW", True);
11 XSetWMProtocols(display, window, &wmDelete, 1);
12 XStoreName(display, window, boot_rom);
13+ XSetClassHint(display, window, &class);
14 XMapWindow(display, window);
15 ximage = XCreateImage(display, visual, DefaultDepth(display, DefaultScreen(display)), ZPixmap, 0, (char *)uxn_screen.pixels, uxn_screen.width, uxn_screen.height, 32, 0);
16 /* hide cursor */