]> Dogcows Code - chaz/openbox/blobdiff - openbox/popup.c
1) translate all of openbox's output
[chaz/openbox] / openbox / popup.c
index 6b118792835852b744adfdac991f489b817baade..9af23be0d88bfe291139cfec9b4bf6794daf338b 100644 (file)
@@ -2,7 +2,7 @@
 
    popup.c for the Openbox window manager
    Copyright (c) 2006        Mikael Magnusson
-   Copyright (c) 2003        Ben Jansens
+   Copyright (c) 2003-2007   Dana Jansens
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -23,6 +23,7 @@
 #include "frame.h"
 #include "client.h"
 #include "stacking.h"
+#include "event.h"
 #include "screen.h"
 #include "render/render.h"
 #include "render/theme.h"
@@ -205,7 +206,7 @@ void popup_show(ObPopup *self, gchar *text)
 
     if (!self->mapped) {
         XMapWindow(ob_display, self->bg);
-        stacking_raise(INTERNAL_AS_WINDOW(self), FALSE);
+        stacking_raise(INTERNAL_AS_WINDOW(self));
         self->mapped = TRUE;
     }
 }
@@ -215,6 +216,9 @@ void popup_hide(ObPopup *self)
     if (self->mapped) {
         XUnmapWindow(ob_display, self->bg);
         self->mapped = FALSE;
+
+        /* kill enter events cause by this unmapping */
+        event_ignore_queued_enters();
     }
 }
 
This page took 0.021231 seconds and 4 git commands to generate.