diff options
author | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-01-24 10:58:19 +0000 |
---|---|---|
committer | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2007-01-24 10:58:19 +0000 |
commit | 045ba4cb32fa3e1c16216ff8809bd40db9c2ed77 (patch) | |
tree | a5f6f2d27646d56bdcf42ddc15c05ce8da8c25e4 /beryl-plugins/src/rotate.c | |
parent | cf2abe773b6536e55c6d76d5444fac69ccf70773 (diff) | |
download | marex-dev-045ba4cb32fa3e1c16216ff8809bd40db9c2ed77.tar.gz marex-dev-045ba4cb32fa3e1c16216ff8809bd40db9c2ed77.tar.bz2 |
indent.sh on plugins
git-svn-id: file:///beryl/trunk@3081 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/rotate.c')
-rw-r--r-- | beryl-plugins/src/rotate.c | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/beryl-plugins/src/rotate.c b/beryl-plugins/src/rotate.c index 565b9de..0c27e4f 100644 --- a/beryl-plugins/src/rotate.c +++ b/beryl-plugins/src/rotate.c @@ -1168,7 +1168,8 @@ rotate(CompDisplay * d, return FALSE; if (otherScreenGrabExist - (s, "rotate", "move", "switcher", "cube", "scale", "group-drag", 0)) + (s, "rotate", "move", "switcher", "cube", "scale", "group-drag", + 0)) return FALSE; /* FIXME: this is sort of a hack - we check if @@ -1176,8 +1177,8 @@ rotate(CompDisplay * d, we definitely need a better communication mechanism here... */ - int *scaleState = (int*) IPCS_GetVPtrND(IPCS_OBJECT(s), - "SCALE_STATE_INT_PTR", NULL); + int *scaleState = (int *)IPCS_GetVPtrND(IPCS_OBJECT(s), + "SCALE_STATE_INT_PTR", NULL); if (scaleState && (*scaleState == 2)) return FALSE; @@ -1454,16 +1455,16 @@ rotateWheel(CompDisplay * d, int direction, CompOption * option, int nOption) static Bool rotateRightWheel(CompDisplay * d, - CompAction * action, - CompActionState state, CompOption * option, int nOption) + CompAction * action, + CompActionState state, CompOption * option, int nOption) { return rotateWheel(d, 1, option, nOption); } static Bool rotateLeftWheel(CompDisplay * d, - CompAction * action, - CompActionState state, CompOption * option, int nOption) + CompAction * action, + CompActionState state, CompOption * option, int nOption) { return rotateWheel(d, -1, option, nOption); } @@ -2158,7 +2159,8 @@ rotateWindowGrabNotify(CompWindow * w, { ROTATE_SCREEN(w->screen); - if (!rs->grabWindow) { + if (!rs->grabWindow) + { rs->grabMask = mask; rs->grabWindow = w; } @@ -2172,7 +2174,8 @@ static void rotateWindowUngrabNotify(CompWindow * w) { ROTATE_SCREEN(w->screen); - if (w == rs->grabWindow) { + if (w == rs->grabWindow) + { rs->grabMask = 0; rs->grabWindow = NULL; } @@ -2329,8 +2332,10 @@ static void rotateDisplayInitOptions(RotateDisplay * rd) o->subGroup = N_("Initiate"); o->displayHints = ""; o->shortDesc = N_("Initiate sticky"); - o->longDesc = N_("Start Rotation and don't finish it until specifily terminated by" - " the normal iniate."); + o->longDesc = + N_ + ("Start Rotation and don't finish it until specifily terminated by" + " the normal iniate."); o->type = CompOptionTypeAction; o->value.action.initiate = rotateInitiate; o->value.action.terminate = 0; @@ -2339,7 +2344,8 @@ static void rotateDisplayInitOptions(RotateDisplay * rd) o->value.action.state = CompActionStateInitKey; o->value.action.state |= CompActionStateInitButton; o->value.action.type = CompBindingTypeButton; - o->value.action.button.modifiers = ROTATE_INITIATE_STICKY_MODIFIERS_DEFAULT; + o->value.action.button.modifiers = + ROTATE_INITIATE_STICKY_MODIFIERS_DEFAULT; o->value.action.button.button = ROTATE_INITIATE_STICKY_BUTTON_DEFAULT; o = &rd->opt[ROTATE_DISPLAY_OPTION_WHEELINGS]; @@ -2734,7 +2740,7 @@ static CompOption *rotateGetDisplayOptions(CompDisplay * display, int *count) RotateDisplay *rd = malloc(sizeof(RotateDisplay)); rotateDisplayInitOptions(rd); - *count = NUM_OPTIONS(rd)-2; + *count = NUM_OPTIONS(rd) - 2; return rd->opt; } } @@ -2932,7 +2938,8 @@ static void rotateFini(CompPlugin * p) } CompPluginDep rotateDeps[] = { - {CompPluginRuleAfter, "cube"}, + {CompPluginRuleAfter, "cube"} + , {CompPluginRuleRequire, "cube"} }; |