summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/resize.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 10:58:19 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 10:58:19 +0000
commit045ba4cb32fa3e1c16216ff8809bd40db9c2ed77 (patch)
treea5f6f2d27646d56bdcf42ddc15c05ce8da8c25e4 /beryl-plugins/src/resize.c
parentcf2abe773b6536e55c6d76d5444fac69ccf70773 (diff)
downloadmarex-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/resize.c')
-rw-r--r--beryl-plugins/src/resize.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/beryl-plugins/src/resize.c b/beryl-plugins/src/resize.c
index bc11561..af58142 100644
--- a/beryl-plugins/src/resize.c
+++ b/beryl-plugins/src/resize.c
@@ -545,12 +545,16 @@ resizeInitiate(CompDisplay * d,
this is fine for now, but may break the API (documentation would be nice...) */
Bool wobbleDesired = (rd->resizeMode == ResizeModeNormal);
- wobbleDesired |= (!(mask & ~(ResizeUpMask | ResizeDownMask))) && (w->state & CompWindowStateMaximizedVertMask);
- wobbleDesired |= (!(mask & ~(ResizeLeftMask | ResizeRightMask))) && (w->state & CompWindowStateMaximizedHorzMask);
+
+ wobbleDesired |= (!(mask & ~(ResizeUpMask | ResizeDownMask))) &&
+ (w->state & CompWindowStateMaximizedVertMask);
+ wobbleDesired |= (!(mask & ~(ResizeLeftMask | ResizeRightMask))) &&
+ (w->state & CompWindowStateMaximizedHorzMask);
(w->screen->windowGrabNotify) (w, x, y, state,
- CompWindowGrabResizeMask |
- (wobbleDesired ? CompWindowGrabButtonMask : 0));
+ CompWindowGrabResizeMask |
+ (wobbleDesired ?
+ CompWindowGrabButtonMask : 0));
if (state & CompActionStateInitKey)
{
@@ -1004,8 +1008,9 @@ resizePaintOutline(CompScreen * s, const ScreenPaintAttrib * sa, int output,
x1 = rd->currentX - rd->w->input.left;
x2 = rd->currentX + rd->currentWidth + rd->w->input.right;
y1 = rd->currentY - rd->w->input.top;
- y2 = rd->currentY + (rd->w->shaded ? rd->w->height : rd->currentHeight) +
- rd->w->input.bottom;
+ y2 = rd->currentY +
+ (rd->w->shaded ? rd->w->height : rd->currentHeight) +
+ rd->w->input.bottom;
glPushMatrix();
@@ -1155,8 +1160,8 @@ resizeSetDisplayOption(CompDisplay * display,
break;
case RESIZE_DISPLAY_OPTION_BORDER_COLOR:
case RESIZE_DISPLAY_OPTION_FILL_COLOR:
- if (compSetColorOption(o, value))
- return TRUE;
+ if (compSetColorOption(o, value))
+ return TRUE;
break;
default:
break;