On Wed, 16 Mar 2011 22:31:06 +0200 Sviatoslav Chagaev <[email protected]> wrote:
> [calmwm.h, conf.c, mousefunc.c, parse.y] > When a window is being moved with the mouse, if the window comes within > SNAPDIST pixels of the screen's edge -- snap the window to the screen's > edge. > > [kbfunc.c] > Suppose moveamount=1, then bigmoveamount=10. The window is 3 pixels > away from the screen's edge. If the window is moved by bigmoveamount > toward the screen edge, then it will align itself perfectly along the > screen's edge, i.e. travel only 3 pixels, instead of 10. Subsequent > moves don't have any special behaviour. Works both ways: when moving a > window from beyond the screen to within and vice versa. > > [menu.c] > Bugfix: the menu code ignores the fact that it might be on a multi-head > configuration, where screens are configured to be atop of each other, > e.g. xrandr --output LVDS --primary --auto xrandr --output TMDS-1 > --above LVDS --auto In this case when a menu containing a lot of > entries is opened, it will span both screens, which is quite annoying > and contradicts cwm's behaviour regarding placing new windows and > window maximization. > > [menu.c] > Don't move the pointer when resizing the menu. Reasoning: I already > have my pointer right where I want it to be, thank you very much. For > example, hovering above a certain control of a program that I'm about > to launch. > > [screen.c] > Fix screen_find_xinerama(). For example, pixel (0,0) belongs to the > top-left-most screen. > Forgot about the manpage. Index: cwmrc.5 =================================================================== RCS file: /OpenBSD/xenocara/app/cwm/cwmrc.5,v retrieving revision 1.34 diff -u -r1.34 cwmrc.5 --- cwmrc.5 25 Sep 2010 21:48:08 -0000 1.34 +++ cwmrc.5 16 Mar 2011 20:41:25 -0000 @@ -185,6 +185,12 @@ in pixels. The default is 1. .Pp +.It Ic snapdist Ic Ar pixels +When moving a window using the mouse, if the window comes within +.Ar pixels +of the screen's edge, then the window will be snapped to that edge. +The default is 12. +.Pp .It Ic sticky Ic yes Ns \&| Ns Ic no Toggle sticky group mode. The default behavior for new windows is to not assign any group.
