summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/resize.c
diff options
context:
space:
mode:
authornigel <nigel@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-06 06:30:45 +0000
committernigel <nigel@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-11-06 06:30:45 +0000
commit64ae8a0167bd1022901b91d682e4cccb56dc633e (patch)
tree9164fd78b6bb40f1d5de1a53ad42a01da8ac355f /beryl-plugins/src/resize.c
parent9915cedc81f4e1b34bbcd147091ee78269d098c9 (diff)
downloadmarex-dev-64ae8a0167bd1022901b91d682e4cccb56dc633e.tar.gz
marex-dev-64ae8a0167bd1022901b91d682e4cccb56dc633e.tar.bz2
resize plugin:
- remove now unused vars in initiate routine - don't draw (filled) outline when window is maximised. git-svn-id: file:///beryl/trunk@1043 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/resize.c')
-rw-r--r--beryl-plugins/src/resize.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/beryl-plugins/src/resize.c b/beryl-plugins/src/resize.c
index 73a7fa2..d6c93d1 100644
--- a/beryl-plugins/src/resize.c
+++ b/beryl-plugins/src/resize.c
@@ -487,7 +487,6 @@ static Bool resizeInitiate (CompDisplay *d,
}
if (rs->grabIndex) {
- int xRoot, yRoot;
int mods_sought = virtualToRealModMask(d,
rd->opt[RESIZE_DISPLAY_OPTION_INITIATE].value.action.button.modifiers);
int button_sought = rd->opt[RESIZE_DISPLAY_OPTION_INITIATE].value.action.button.button;
@@ -892,7 +891,9 @@ static Bool resizePaintScreen (CompScreen * s,
status = (*s->paintScreen) (s, sAttrib, region, output, mask);
WRAP (rs, s, paintScreen, resizePaintScreen);
- if (rd->resizeMode > ResizeModeStretch && rd->w) {
+ if (rd->resizeMode > ResizeModeStretch && rd->w &&
+ !(rd->w->state & (CompWindowStateMaximizedVertMask |
+ CompWindowStateMaximizedHorzMask))) {
x1 = rd->currentX - rd->w->input.left;
x2 = rd->currentX + rd->currentWidth + rd->w->input.right;
y1 = rd->currentY - rd->w->input.top;