From 9dedd247e56e7d4bb622bcc93d20d29f10301858 Mon Sep 17 00:00:00 2001 From: Gustavo Lewin Date: Tue, 10 Oct 2023 17:20:49 -0300 Subject: [PATCH] Resource and class name --- xwinwrap.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xwinwrap.c b/xwinwrap.c index b801cf3..5a36ce6 100644 --- a/xwinwrap.c +++ b/xwinwrap.c @@ -496,6 +496,10 @@ int main(int argc, char **argv) { window.window = XCreateWindow(display, window.root, window.x, window.y, window.width, window.height, 0, depth, InputOutput, visual, flags, &attrs); + XClassHint classHint; + classHint.res_name = "Xwinwrap"; + classHint.res_class = "Xwinwrap"; + XSetClassHint(display, window.window, &classHint); XLowerWindow(display, window.window); xa = ATOM(_NET_WM_WINDOW_TYPE); @@ -539,6 +543,10 @@ int main(int argc, char **argv) { window.window = XCreateWindow(display, window.desktop, window.x, window.y, window.width, window.height, 0, depth, InputOutput, visual, flags, &attrs); + XClassHint classHint; + classHint.res_name = "Xwinwrap"; + classHint.res_class = "Xwinwrap"; + XSetClassHint(display, window.window, &classHint); XLowerWindow(display, window.window); fprintf(stderr, NAME ": window type - override\n"); @@ -573,6 +581,10 @@ int main(int argc, char **argv) { window.window = XCreateWindow(display, window.root, window.x, window.y, window.width, window.height, 0, depth, InputOutput, visual, flags, &attrs); + XClassHint classHint; + classHint.res_name = "Xwinwrap"; + classHint.res_class = "Xwinwrap"; + XSetClassHint(display, window.window, &classHint); wmHint.flags = InputHint | StateHint; // wmHint.input = undecorated ? False : True;