]> Dogcows Code - chaz/openbox/commitdiff
watch for multiple map requests on the same window. ignore after the first.
authorDana Jansens <danakj@orodu.net>
Fri, 24 Jan 2003 00:08:55 +0000 (00:08 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 24 Jan 2003 00:08:55 +0000 (00:08 +0000)
src/screen.cc

index d82464dca16b9ab3154a98a3c841d38054fe0c2d..2a7711dee78f09293a2f585cce55c7b95f3cb585 100644 (file)
@@ -589,7 +589,7 @@ void Screen::unmanageWindow(Client *client)
   client->unfocus();
 
 #ifdef DEBUG
-  printf("Unmanaged window 0x%lx frame %lx\n", client->window(), framewin);
+  printf("Unmanaged window 0x%lx frame 0x%lx\n", client->window(), framewin);
 #endif
   
   delete client;
@@ -775,7 +775,13 @@ void Screen::mapRequestHandler(const XMapRequestEvent &e)
   printf("MapRequest for 0x%lx\n", e.window);
 #endif // DEBUG
 
-  manageWindow(e.window);
+  Client *c = openbox->findClient(e.window);
+  if (c) {
+#ifdef DEBUG
+    printf("DEBUG: MAP REQUEST CAUGHT IN SCREEN. IGNORED.\n");
+#endif
+  } else
+    manageWindow(e.window);
 }
 
 }
This page took 0.025072 seconds and 4 git commands to generate.