]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus_cycle_popup.c
make popup dialogs appear on the active monitor with xinerama
[chaz/openbox] / openbox / focus_cycle_popup.c
index b827e524ff7ff8b850b98f31e36d8e02fd0bacff..071ffc164bd19582c0abef156b89a53bfe2a2590 100644 (file)
@@ -240,7 +240,7 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
     gint ml, mt, mr, mb;
     gint l, t, r, b;
     gint x, y, w, h;
-    Rect *screen_area;
+    Rect *screen_area = NULL;
     gint icons_per_row;
     gint icon_rows;
     gint textx, texty, textw, texth;
@@ -252,8 +252,7 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
     const ObFocusCyclePopupTarget *newtarget;
     gint newtargetx, newtargety;
 
-    /* XXX find the middle monitor? */
-    screen_area = screen_physical_area_monitor(0);
+    screen_area = screen_physical_area_monitor_active();
 
     /* get the outside margins */
     RrMargins(p->a_bg, &ml, &mt, &mr, &mb);
This page took 0.020385 seconds and 4 git commands to generate.