]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus_cycle_popup.c
if windows on screen are going to be moved, then do the ReplayPointer before that...
[chaz/openbox] / openbox / focus_cycle_popup.c
index 8ce2c161058afe8890987af5af001c04d4450df0..f0cf25e2e3cd9e908c13bb89f1eff91c53c94d4b 100644 (file)
@@ -128,12 +128,14 @@ void focus_cycle_popup_startup(gboolean reconfig)
     XMapWindow(ob_display, popup.text);
 
     stacking_add(INTERNAL_AS_WINDOW(&popup));
+    g_hash_table_insert(window_map, &popup.bg, &popup);
 }
 
 void focus_cycle_popup_shutdown(gboolean reconfig)
 {
     icon_popup_free(single_popup);
 
+    g_hash_table_remove(window_map, &popup.bg);
     stacking_remove(INTERNAL_AS_WINDOW(&popup));
 
     while(popup.targets) {
@@ -146,6 +148,7 @@ void focus_cycle_popup_shutdown(gboolean reconfig)
     }
 
     g_free(popup.hilite_rgba);
+    popup.hilite_rgba = NULL;
 
     XDestroyWindow(ob_display, popup.text);
     XDestroyWindow(ob_display, popup.bg);
@@ -460,7 +463,7 @@ void focus_cycle_popup_show(ObClient *c, gboolean iconic_windows,
     }
 }
 
-void focus_cycle_popup_hide()
+void focus_cycle_popup_hide(void)
 {
     gulong ignore_start;
 
@@ -478,6 +481,7 @@ void focus_cycle_popup_hide()
 
         g_free(t->text);
         XDestroyWindow(ob_display, t->win);
+        g_free(t);
 
         popup.targets = g_list_delete_link(popup.targets, popup.targets);
     }
@@ -523,7 +527,7 @@ void focus_cycle_popup_single_show(struct _ObClient *c,
     screen_hide_desktop_popup();
 }
 
-void focus_cycle_popup_single_hide()
+void focus_cycle_popup_single_hide(void)
 {
     icon_popup_hide(single_popup);
 }
This page took 0.025078 seconds and 4 git commands to generate.