X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Ffocus_cycle_popup.c;h=cb1af4813b18a5e391329dffb3c594b7cf0be68d;hb=a0acc01f2ca1f4cff337f359d64136b754678b93;hp=e4cf5c10cf95459bebcee1a2593fd626e305d6f8;hpb=29637976e6aecf45bae84ba9ce3ecb26635012f7;p=chaz%2Fopenbox diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index e4cf5c10..cb1af481 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); @@ -113,8 +113,7 @@ void focus_cycle_popup_startup(gboolean reconfig) attrib.override_redirect = True; attrib.border_pixel=RrColorPixel(ob_rr_theme->osd_border_color); - popup.bg = create_window(RootWindow(obt_display, ob_screen), - ob_rr_theme->obwidth, + popup.bg = create_window(obt_root(ob_screen), ob_rr_theme->obwidth, CWOverrideRedirect | CWBorderPixel, &attrib); popup.text = create_window(popup.bg, 0, 0, NULL); @@ -127,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) @@ -136,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;