X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Ffocus_cycle_popup.c;h=096f5c6375077ce4591a034d7c964a07d0da9b8c;hb=9a4ce94579bc7161d4ed55b20f00b3f76deff3e2;hp=755414c1598aae437ed2404855f831d3852e5553;hpb=73c9a0e06b0248d430aac1c2c91f44a6a9dbac04;p=chaz%2Fopenbox diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index 755414c1..096f5c63 100644 --- a/openbox/focus_cycle_popup.c +++ b/openbox/focus_cycle_popup.c @@ -98,7 +98,7 @@ void focus_cycle_popup_startup(gboolean reconfig) single_popup = icon_popup_new(); - popup.obwin.type = OB_WINDOW_CLASS_INTERNALWINDOW; + popup.obwin.type = OB_WINDOW_CLASS_INTERNAL; popup.a_bg = RrAppearanceCopy(ob_rr_theme->osd_hilite_bg); popup.a_text = RrAppearanceCopy(ob_rr_theme->osd_hilite_label); popup.a_icon = RrAppearanceCopy(ob_rr_theme->a_clear_tex); @@ -126,8 +126,8 @@ void focus_cycle_popup_startup(gboolean reconfig) XMapWindow(obt_display, popup.text); - stacking_add(INTERNALWINDOW_AS_WINDOW(&popup)); - window_add(&popup.bg, INTERNALWINDOW_AS_WINDOW(&popup)); + stacking_add(INTERNAL_AS_WINDOW(&popup)); + window_add(&popup.bg, INTERNAL_AS_WINDOW(&popup)); } void focus_cycle_popup_shutdown(gboolean reconfig) @@ -135,7 +135,7 @@ void focus_cycle_popup_shutdown(gboolean reconfig) icon_popup_free(single_popup); window_remove(popup.bg); - stacking_remove(INTERNALWINDOW_AS_WINDOW(&popup)); + stacking_remove(INTERNAL_AS_WINDOW(&popup)); while(popup.targets) { ObFocusCyclePopupTarget *t = popup.targets->data; @@ -480,6 +480,7 @@ void focus_cycle_popup_hide(void) g_free(t->text); XDestroyWindow(obt_display, t->win); + g_free(t); popup.targets = g_list_delete_link(popup.targets, popup.targets); }