summaryrefslogtreecommitdiff
path: root/openbox/menuframe.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2004-03-20 22:53:16 +0000
committerMikael Magnusson <mikachu@comhem.se>2004-03-20 22:53:16 +0000
commitbc0440851789c9626bc9f9d3a13a7164915bdcfa (patch)
tree99c49502e609a64cfedc72b677d2ba32bec49a8b /openbox/menuframe.c
parentcd0204d6269634cad3085130dc78aed2dd9b1d55 (diff)
some nice options for the menus, warpPointer, xorStyle (better name wanted for this :), hilightFirst and hideDelay (this was hardcoded to .25 secs earlier)
Diffstat (limited to 'openbox/menuframe.c')
-rw-r--r--openbox/menuframe.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index 03e61621..a0547935 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -217,11 +217,15 @@ void menu_frame_move_on_screen(ObMenuFrame *self)
if (dx || dy) {
ObMenuFrame *f;
- for (f = self; f; f = f->parent)
+ menu_frame_move(self, self->area.x + dx, self->area.y + dy);
+ if (!config_menu_xorstyle)
+ dy = 0;
+ for (f = self->parent; f; f = f->parent)
menu_frame_move(f, f->area.x + dx, f->area.y + dy);
for (f = self->child; f; f = f->child)
menu_frame_move(f, f->area.x + dx, f->area.y + dy);
- XWarpPointer(ob_display, None, None, 0, 0, 0, 0, dx, dy);
+ if (config_menu_warppointer)
+ XWarpPointer(ob_display, None, None, 0, 0, 0, 0, dx, dy);
}
}