summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2005-09-14 17:05:53 +0000
committerMikael Magnusson <mikachu@comhem.se>2005-09-14 17:05:53 +0000
commitfa32adf16ce190fd20fc75cbe37551fc1cc3f89f (patch)
treedf321eb5b831eb8eae71621aeb5e07aaf3fda2ef /openbox/menuframe.c
parent9df57ff1b5c6f2bc631253cc8a51ec3af7d24d7e (diff)
fix menus to show on the screen the mouse cursor spawned them from
Diffstat (limited to 'openbox/menuframe.c')
-rw-r--r--openbox/menuframe.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index 04cf7ebe..43d40585 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -191,12 +191,7 @@ void menu_frame_move_on_screen(ObMenuFrame *self)
gint dx = 0, dy = 0;
gint pos, half;
- for (i = 0; i < screen_num_monitors; ++i) {
- a = screen_physical_area_monitor(i);
- if (RECT_INTERSECTS_RECT(*a, self->area))
- break;
- }
- if (!a) a = screen_physical_area_monitor(0);
+ a = screen_physical_area_monitor(self->monitor);
half = g_list_length(self->entries) / 2;
pos = g_list_index(self->entries, self->selected);