Add debianisation code and automatic build script
[wmaker-crm.git] / contrib / yubn_moveres.diff
blob36789912a0e6a9a1ca4b6536d76ecb0a10a1590b
1 From: Tomoyasu Kihara ( habu@kmc.gr.jp )
3 This patch is improvement of keyboard operation.
5 - reisze/move a window diagonally. (This is very suitable for Roguelike Gamer ;))
6 - decide window place/size by not only enter key but space key.
8 ---8<---cut here------8<---cut here------8<---cut here---
9 diff -ur WindowMaker-0.70.0/src/moveres.c WindowMaker-0.70.0-yubn/src/moveres.c
10 --- WindowMaker-0.70.0/src/moveres.c Tue Jul 24 18:51:06 2001
11 +++ WindowMaker-0.70.0-yubn/src/moveres.c Wed Dec 19 03:20:53 2001
12 @@ -1322,6 +1322,7 @@
13 keysym = XLookupKeysym(&event.xkey, 0);
14 switch (keysym) {
15 case XK_Return:
16 + case XK_space:
17 done=2;
18 break;
19 case XK_Escape:
20 @@ -1380,6 +1381,50 @@
21 moment = RIGHT;
23 else off_x+=kspeed;
24 + break;
25 + case XK_y:
26 + if (ctrlmode) {
27 + if (moment != (UP|LEFT))
28 + h = wh, w = ww;
29 + h -= kspeed, w -= kspeed;
30 + if (h < 1) h = 1;
31 + if (w < 1) w = 1;
32 + moment = UP|LEFT;
33 + }
34 + else
35 + off_x -= kspeed, off_y -= kspeed;
36 + break;
37 + case XK_u:
38 + if (ctrlmode) {
39 + if (moment != (UP|RIGHT))
40 + h = wh, w = ww;
41 + h -= kspeed, w += kspeed;
42 + if (h < 1) h = 1;
43 + moment = UP|RIGHT;
44 + }
45 + else
46 + off_x += kspeed, off_y -= kspeed;
47 + break;
48 + case XK_b:
49 + if (ctrlmode) {
50 + if (moment != (DOWN|LEFT))
51 + h = wh, w = ww;
52 + h += kspeed, w -= kspeed;
53 + if (w < 1) w = 1;
54 + moment = DOWN|LEFT;
55 + }
56 + else
57 + off_x -= kspeed, off_y += kspeed;
58 + break;
59 + case XK_n:
60 + if (ctrlmode) {
61 + if (moment != (DOWN|RIGHT))
62 + h = wh, w = ww;
63 + h += kspeed, w += kspeed;
64 + moment = DOWN|RIGHT;
65 + }
66 + else
67 + off_x += kspeed, off_y += kspeed;
68 break;