projects
/
dana
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Special case for unusual monitor setup
[dana/openbox.git]
/
openbox
/
actions
/
showmenu.c
diff --git
a/openbox/actions/showmenu.c
b/openbox/actions/showmenu.c
index
0fdd8be
..
7411e98
100644
(file)
--- a/
openbox/actions/showmenu.c
+++ b/
openbox/actions/showmenu.c
@@
-109,9
+109,11
@@
static gboolean run_func(ObActionsData *data, gpointer options)
position = o->position;
} else {
position = o->position;
} else {
+ const Rect *allmon;
monitor = screen_num_monitors;
monitor = screen_num_monitors;
- position.x.pos = data->x;
- position.y.pos = data->y;
+ allmon = screen_physical_area_monitor(monitor);
+ position.x.pos = data->x - allmon->x;
+ position.y.pos = data->y - allmon->y;
}
/* you cannot call ShowMenu from inside a menu */
}
/* you cannot call ShowMenu from inside a menu */