Here I tried to prevent the menu of windows to be displayed
in the other side of the screen if the window is half present
in the screen horizontally (ie x < 0)
a worse problem with menu is that it disappears when
the window is half present in the window vertically
ie y < 0, that makes it not usable.
Samir.
diff -r 5a2507602c48 src/menu.c
--- a/src/menu.c Sun Dec 14 19:59:05 2008 -0800
+++ b/src/menu.c Sun May 24 00:07:51 2009 +0200
@@ -1165,8 +1165,8 @@
}
XMoveWindow(dpy, menu->frame->core->window, x, y);
- menu->frame_x = x;
- menu->frame_y = y;
+ menu->frame_x = (x<0) ? 0 : x;
+ menu->frame_y = (y<0) ? 0 : y;
XMapWindow(dpy, menu->frame->core->window);
wRaiseFrame(menu->frame->core);
menu->flags.mapped = 1;