summaryrefslogtreecommitdiff
path: root/openbox/focus_cycle_popup.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-07 15:07:50 +0000
committerDana Jansens <danakj@orodu.net>2007-06-07 15:07:50 +0000
commit5579b28481a54d9df451e40854d86b927a64a2f4 (patch)
tree1bd07d2a6affe49e6a9fa892243473c3c149fffc /openbox/focus_cycle_popup.c
parent2b135c53565547779719348ec3164311be8191fe (diff)
make popup dialogs appear on the active monitor with xinerama
Diffstat (limited to 'openbox/focus_cycle_popup.c')
-rw-r--r--openbox/focus_cycle_popup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c
index b827e524..071ffc16 100644
--- a/openbox/focus_cycle_popup.c
+++ b/openbox/focus_cycle_popup.c
@@ -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);