summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-25 16:34:26 +0000
committerDana Jansens <danakj@orodu.net>2007-03-25 16:34:26 +0000
commite6c82786ff65e7681c980c8adebe082656c16438 (patch)
tree819cc769062b7e3f893fac9708dc01c5f149e7c1 /openbox/event.c
parent2db6cf513020179130bdf7b0ed570e3b962e5ad5 (diff)
don't menu menus jump around at all anymore. open them on screen in the first place
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 7e66cc28..75cf5d2e 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -1263,10 +1263,11 @@ static void event_handle_menu(XEvent *ev)
case MotionNotify:
if ((f = menu_frame_under(ev->xmotion.x_root,
ev->xmotion.y_root))) {
- menu_frame_move_on_screen(f);
if ((e = menu_entry_frame_under(ev->xmotion.x_root,
- ev->xmotion.y_root)))
+ ev->xmotion.y_root))) {
+ /* XXX menu_frame_entry_move_on_screen(f); */
menu_frame_select(f, e);
+ }
}
{
ObMenuFrame *a;