]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus_cycle_popup.c
Merge branch 'backport'
[chaz/openbox] / openbox / focus_cycle_popup.c
index 488ecce12172491d2e30ee0d8a4756b0c3052e75..9a6f2420e7cb17928650e2e0f452f044236eb6db 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);
This page took 0.025878 seconds and 4 git commands to generate.