summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/resize.c
diff options
context:
space:
mode:
authortest-tools <test-tools@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-02 21:59:09 +0000
committertest-tools <test-tools@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-02 21:59:09 +0000
commit86ac44b3685138fda968c7efc862019c20d2cffe (patch)
tree26bbbb30dd8ef745588e12c29f02c12afee0495b /beryl-plugins/src/resize.c
parentb2b1fa801f28a978c6180e04b538d4ada75b217e (diff)
downloadmarex-dev-86ac44b3685138fda968c7efc862019c20d2cffe.tar.gz
marex-dev-86ac44b3685138fda968c7efc862019c20d2cffe.tar.bz2
beryl-plugins: resize.c, proper return TRUE,
minor (removed doublicated code) git-svn-id: file:///beryl/trunk@2294 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/resize.c')
-rw-r--r--beryl-plugins/src/resize.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/beryl-plugins/src/resize.c b/beryl-plugins/src/resize.c
index 8320d38..6abd6ec 100644
--- a/beryl-plugins/src/resize.c
+++ b/beryl-plugins/src/resize.c
@@ -1128,10 +1128,6 @@ resizeSetDisplayOption(CompDisplay * display,
break;
case RESIZE_DISPLAY_OPTION_SYNC_WINDOW:
- if (compSetBoolOption(o, value))
- return TRUE;
- break;
-
case RESIZE_DISPLAY_OPTION_WARP_POINTER:
if (compSetBoolOption(o, value))
return TRUE;
@@ -1145,11 +1141,14 @@ resizeSetDisplayOption(CompDisplay * display,
for (i = 0; i < o->rest.s.nString; i++)
if (strcmp(resizeModes[i], o->value.s) == 0)
rd->resizeMode = (ResizeMode) i;
+
+ return TRUE;
}
break;
case RESIZE_DISPLAY_OPTION_BORDER_COLOR:
case RESIZE_DISPLAY_OPTION_FILL_COLOR:
- compSetColorOption(o, value);
+ if (compSetColorOption(o, value))
+ return TRUE;
break;
default:
break;