From: Dana Jansens Date: Thu, 29 May 2003 03:27:33 +0000 (+0000) Subject: set the shit before mapping ktnx X-Git-Tag: gl2~35 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=3f4956eea2594c14f70362f5e30d17b39faba073;p=dana%2Fopenbox.git set the shit before mapping ktnx --- diff --git a/glft/test.c b/glft/test.c index 296d8bc6..21156475 100644 --- a/glft/test.c +++ b/glft/test.c @@ -64,6 +64,9 @@ int main(int argc, char **argv) CopyFromParent, /* visual */ 0, /* valuemask */ 0); /* attributes */ + chint.res_name = "glfttest"; + chint.res_class = "Glfttest"; + XSetClassHint(display, win, &chint); XSelectInput(display, win, ExposureMask | StructureNotifyMask); XMapWindow(display, win); @@ -75,12 +78,6 @@ int main(int argc, char **argv) printf("context creation failed\n"); glXMakeCurrent(display, win, cont); - - - chint.res_name = "glfttest"; - chint.res_class = "Glfttest"; - XSetClassHint(display, win, &chint); - delete_win = XInternAtom(display, "WM_DELETE_WINDOW", False); protocols = XInternAtom(display, "WM_PROTOCOLS", False); XSetWMProtocols(display, win, &delete_win, 1);