summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/move.c
diff options
context:
space:
mode:
authorquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-31 18:32:48 +0000
committerquinn <quinn@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-31 18:32:48 +0000
commitc258d5f4481bc5164530c594afe40f4883ebcd7c (patch)
tree4a274eb29cfedb248700ba000f54c03a177ae325 /beryl-plugins/src/move.c
parentd46756fe84891afc8c410c6f418dabe54897fe98 (diff)
downloadmarex-dev-c258d5f4481bc5164530c594afe40f4883ebcd7c.tar.gz
marex-dev-c258d5f4481bc5164530c594afe40f4883ebcd7c.tar.bz2
disable move snapoff-maximized
git-svn-id: file:///beryl/trunk@3492 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/move.c')
-rw-r--r--beryl-plugins/src/move.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/beryl-plugins/src/move.c b/beryl-plugins/src/move.c
index 841e61d..64c8879 100644
--- a/beryl-plugins/src/move.c
+++ b/beryl-plugins/src/move.c
@@ -44,7 +44,7 @@
#define MOVE_CONSTRAIN_Y_TOP_DEFAULT TRUE
#define MOVE_CONSTRAIN_Y_BOTTOM_DEFAULT FALSE
-#define MOVE_SNAPOFF_MAXIMIZED_DEFAULT TRUE
+#define MOVE_SNAPOFF_MAXIMIZED_DEFAULT FALSE
#define MOVE_OPACIFY_MIN_OPACITY_DEFAULT 80
#define MOVE_OPACIFY_MIN_OPACITY_MIN 1
@@ -85,11 +85,11 @@ static int displayPrivateIndex;
#define MOVE_DISPLAY_OPTION_OPACITY 1
#define MOVE_DISPLAY_OPTION_CONSTRAIN_Y_TOP 2
#define MOVE_DISPLAY_OPTION_CONSTRAIN_Y_BOTTOM 3
-#define MOVE_DISPLAY_OPTION_SNAPOFF_MAXIMIZED 4
-#define MOVE_DISPLAY_OPTION_OPACIFY_MIN_OPACITY 5
-#define MOVE_DISPLAY_OPTION_SNAPOFF_DISTANCE 6
-#define MOVE_DISPLAY_OPTION_SNAPBACK_DISTANCE 7
-#define MOVE_DISPLAY_OPTION_NUM 8
+#define MOVE_DISPLAY_OPTION_OPACIFY_MIN_OPACITY 4
+//#define MOVE_DISPLAY_OPTION_SNAPOFF_MAXIMIZED 4
+//#define MOVE_DISPLAY_OPTION_SNAPOFF_DISTANCE 6
+//#define MOVE_DISPLAY_OPTION_SNAPBACK_DISTANCE 7
+#define MOVE_DISPLAY_OPTION_NUM 5
typedef struct _MoveDisplay
{
@@ -439,6 +439,7 @@ static void moveHandleMotionEvent(CompScreen * s, int xRoot, int yRoot)
}
}
+#if 0
if (md->opt[MOVE_DISPLAY_OPTION_SNAPOFF_MAXIMIZED].value.b)
{
if (w->state & CompWindowStateMaximizedVertMask)
@@ -498,6 +499,7 @@ static void moveHandleMotionEvent(CompScreen * s, int xRoot, int yRoot)
}
}
}
+#endif
if (w->state & CompWindowStateMaximizedVertMask)
{
@@ -763,6 +765,7 @@ static void moveDisplayInitOptions(MoveDisplay * md)
o->type = CompOptionTypeBool;
o->value.b = MOVE_CONSTRAIN_Y_BOTTOM_DEFAULT;
+ /*
o = &md->opt[MOVE_DISPLAY_OPTION_SNAPOFF_MAXIMIZED];
o->advanced = False;
o->name = "snapoff_maximized";
@@ -800,7 +803,7 @@ static void moveDisplayInitOptions(MoveDisplay * md)
o->type = CompOptionTypeInt;
o->value.i = MOVE_SNAPBACK_DISTANCE_DEFAULT;
o->rest.i.min = MOVE_SNAPBACK_DISTANCE_MIN;
- o->rest.i.max = MOVE_SNAPBACK_DISTANCE_MAX;
+ o->rest.i.max = MOVE_SNAPBACK_DISTANCE_MAX;*/
}
static CompOption *moveGetDisplayOptions(CompDisplay * display, int *count)
@@ -855,14 +858,14 @@ moveSetDisplayOption(CompDisplay * display,
return TRUE;
}
break;
- case MOVE_DISPLAY_OPTION_SNAPOFF_DISTANCE:
+/* case MOVE_DISPLAY_OPTION_SNAPOFF_DISTANCE:
case MOVE_DISPLAY_OPTION_SNAPBACK_DISTANCE:
if (compSetIntOption(o, value))
return TRUE;
- break;
+ break;*/
case MOVE_DISPLAY_OPTION_CONSTRAIN_Y_TOP:
case MOVE_DISPLAY_OPTION_CONSTRAIN_Y_BOTTOM:
- case MOVE_DISPLAY_OPTION_SNAPOFF_MAXIMIZED:
+// case MOVE_DISPLAY_OPTION_SNAPOFF_MAXIMIZED:
if (compSetBoolOption(o, value))
return TRUE;
break;