From 3f4956eea2594c14f70362f5e30d17b39faba073 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 29 May 2003 03:27:33 +0000 Subject: [PATCH] set the shit before mapping ktnx --- glft/test.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); -- 2.34.1