summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/rotate.c
diff options
context:
space:
mode:
authorixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-31 02:58:52 +0000
committerixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-31 02:58:52 +0000
commitb61bf579a7e007f1e27a73ba25853f21189423f7 (patch)
tree2d144a3711421b506ddd1774d68e80ec04ac4140 /beryl-plugins/src/rotate.c
parentbf0b0a074d51f134032b397a2162350c6a0a8b69 (diff)
downloadmarex-dev-b61bf579a7e007f1e27a73ba25853f21189423f7.tar.gz
marex-dev-b61bf579a7e007f1e27a73ba25853f21189423f7.tar.bz2
* Simplify caps rotation configuration, and clean some defines in rotate plugin
git-svn-id: file:///beryl/trunk@915 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/rotate.c')
-rw-r--r--beryl-plugins/src/rotate.c87
1 files changed, 43 insertions, 44 deletions
diff --git a/beryl-plugins/src/rotate.c b/beryl-plugins/src/rotate.c
index d7cafbd..abb2415 100644
--- a/beryl-plugins/src/rotate.c
+++ b/beryl-plugins/src/rotate.c
@@ -125,26 +125,26 @@
static int displayPrivateIndex;
#define ROTATE_DISPLAY_OPTION_INITIATE 0
-#define ROTATE_DISPLAY_OPTION_LEFT 1
-#define ROTATE_DISPLAY_OPTION_RIGHT 2
-#define ROTATE_DISPLAY_OPTION_LEFT_WINDOW 3
+#define ROTATE_DISPLAY_OPTION_LEFT 1
+#define ROTATE_DISPLAY_OPTION_RIGHT 2
+#define ROTATE_DISPLAY_OPTION_LEFT_WINDOW 3
#define ROTATE_DISPLAY_OPTION_RIGHT_WINDOW 4
-#define ROTATE_DISPLAY_OPTION_EDGEFLIP_POINTER 5
-#define ROTATE_DISPLAY_OPTION_EDGEFLIP_WINDOW 6
+#define ROTATE_DISPLAY_OPTION_EDGEFLIP_POINTER 5
+#define ROTATE_DISPLAY_OPTION_EDGEFLIP_WINDOW 6
#define ROTATE_DISPLAY_OPTION_EDGEFLIP_DND 7
#define ROTATE_DISPLAY_OPTION_FLIPTIME 8
-#define ROTATE_DISPLAY_OPTION_TO_1 9
-#define ROTATE_DISPLAY_OPTION_TO_2 10
-#define ROTATE_DISPLAY_OPTION_TO_3 11
-#define ROTATE_DISPLAY_OPTION_TO_4 12
-#define ROTATE_DISPLAY_OPTION_TO_5 13
-#define ROTATE_DISPLAY_OPTION_TO_6 14
-#define ROTATE_DISPLAY_OPTION_TO_7 15
-#define ROTATE_DISPLAY_OPTION_TO_8 16
-#define ROTATE_DISPLAY_OPTION_TO_9 17
-#define ROTATE_DISPLAY_OPTION_TO_10 18
-#define ROTATE_DISPLAY_OPTION_TO_11 19
-#define ROTATE_DISPLAY_OPTION_TO_12 20
+#define ROTATE_DISPLAY_OPTION_TO_1 9
+#define ROTATE_DISPLAY_OPTION_TO_2 10
+#define ROTATE_DISPLAY_OPTION_TO_3 11
+#define ROTATE_DISPLAY_OPTION_TO_4 12
+#define ROTATE_DISPLAY_OPTION_TO_5 13
+#define ROTATE_DISPLAY_OPTION_TO_6 14
+#define ROTATE_DISPLAY_OPTION_TO_7 15
+#define ROTATE_DISPLAY_OPTION_TO_8 16
+#define ROTATE_DISPLAY_OPTION_TO_9 17
+#define ROTATE_DISPLAY_OPTION_TO_10 18
+#define ROTATE_DISPLAY_OPTION_TO_11 19
+#define ROTATE_DISPLAY_OPTION_TO_12 20
#define ROTATE_DISPLAY_OPTION_TO_1_WINDOW 21
#define ROTATE_DISPLAY_OPTION_TO_2_WINDOW 22
#define ROTATE_DISPLAY_OPTION_TO_3_WINDOW 23
@@ -154,20 +154,19 @@ static int displayPrivateIndex;
#define ROTATE_DISPLAY_OPTION_TO_7_WINDOW 27
#define ROTATE_DISPLAY_OPTION_TO_8_WINDOW 28
#define ROTATE_DISPLAY_OPTION_TO_9_WINDOW 29
-#define ROTATE_DISPLAY_OPTION_TO_10_WINDOW 30
-#define ROTATE_DISPLAY_OPTION_TO_11_WINDOW 31
-#define ROTATE_DISPLAY_OPTION_TO_12_WINDOW 32
-#define ROTATE_DISPLAY_OPTION_TO 33
-#define ROTATE_DISPLAY_OPTION_WINDOW 34
-#define ROTATE_DISPLAY_OPTION_WHEELINGS 35
-#define ROTATE_DISPLAY_OPTION_LEFT_WHEEL 36
+#define ROTATE_DISPLAY_OPTION_TO_10_WINDOW 30
+#define ROTATE_DISPLAY_OPTION_TO_11_WINDOW 31
+#define ROTATE_DISPLAY_OPTION_TO_12_WINDOW 32
+#define ROTATE_DISPLAY_OPTION_TO 33
+#define ROTATE_DISPLAY_OPTION_WINDOW 34
+#define ROTATE_DISPLAY_OPTION_WHEELINGS 35
+#define ROTATE_DISPLAY_OPTION_LEFT_WHEEL 36
#define ROTATE_DISPLAY_OPTION_RIGHT_WHEEL 37
-#define ROTATE_DISPLAY_OPTION_FLIP_LEFT 38
-#define ROTATE_DISPLAY_OPTION_FLIP_RIGHT 39
-#define ROTATE_DISPLAY_OPTION_UP 40
-#define ROTATE_DISPLAY_OPTION_DOWN 41
-#define ROTATE_DISPLAY_OPTION_NUM 42
-
+#define ROTATE_DISPLAY_OPTION_FLIP_LEFT 38
+#define ROTATE_DISPLAY_OPTION_FLIP_RIGHT 39
+#define ROTATE_DISPLAY_OPTION_UP 40
+#define ROTATE_DISPLAY_OPTION_DOWN 41
+#define ROTATE_DISPLAY_OPTION_NUM 42
typedef struct _RotateDisplay
{
@@ -181,20 +180,20 @@ typedef struct _RotateDisplay
unsigned int leftWheelings, rightWheelings;
} RotateDisplay;
-#define ROTATE_SCREEN_OPTION_POINTER_INVERT_Y 0
-#define ROTATE_SCREEN_OPTION_POINTER_SENSITIVITY 1
-#define ROTATE_SCREEN_OPTION_ACCELERATION 2
-#define ROTATE_SCREEN_OPTION_SNAP_TOP 3
-#define ROTATE_SCREEN_OPTION_SPEED 4
-#define ROTATE_SCREEN_OPTION_TIMESTEP 5
-#define ROTATE_SCREEN_OPTION_MANTIMESTEP 6
-#define ROTATE_SCREEN_OPTION_ZOOM 7
-#define ROTATE_SCREEN_OPTION_SNAP_BOTTOM 8
-#define ROTATE_SCREEN_OPTION_ZOOM_BEFORE_ROTATE 9
-#define ROTATE_SCREEN_OPTION_ZOOM_ONLY_ON_INITIATE 10
-#define ROTATE_SCREEN_OPTION_WHEEL_ON_EDGES 11
-#define ROTATE_SCREEN_OPTION_WHEELMAXDIST 12
-#define ROTATE_SCREEN_OPTION_NUM 13
+#define ROTATE_SCREEN_OPTION_POINTER_INVERT_Y 0
+#define ROTATE_SCREEN_OPTION_POINTER_SENSITIVITY 1
+#define ROTATE_SCREEN_OPTION_ACCELERATION 2
+#define ROTATE_SCREEN_OPTION_SNAP_TOP 3
+#define ROTATE_SCREEN_OPTION_SPEED 4
+#define ROTATE_SCREEN_OPTION_TIMESTEP 5
+#define ROTATE_SCREEN_OPTION_MANTIMESTEP 6
+#define ROTATE_SCREEN_OPTION_ZOOM 7
+#define ROTATE_SCREEN_OPTION_SNAP_BOTTOM 8
+#define ROTATE_SCREEN_OPTION_ZOOM_BEFORE_ROTATE 9
+#define ROTATE_SCREEN_OPTION_ZOOM_ONLY_ON_INITIATE 10
+#define ROTATE_SCREEN_OPTION_WHEEL_ON_EDGES 11
+#define ROTATE_SCREEN_OPTION_WHEELMAXDIST 12
+#define ROTATE_SCREEN_OPTION_NUM 13
typedef struct _RotateScreen