summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-12-31 13:27:14 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-12-31 13:27:14 +0800
commitb2638abc484acdb9f2395e640b814f57a1d6e1e0 (patch)
tree6106325f710522a61db7b3b411faccf83a596629
parentdb817399062411314db9d4fbce40ab574b698bde (diff)
downloadcompiz-with-glib-mainloop-b2638abc484acdb9f2395e640b814f57a1d6e1e0.tar.gz
compiz-with-glib-mainloop-b2638abc484acdb9f2395e640b814f57a1d6e1e0.tar.bz2
Raise window on move/resize initiation in raise-on-click mode.
Forward port a32f5bf9cef3ec0c40c7ac60b8b87f4083016f98 to master
-rw-r--r--plugins/move/src/move.cpp3
-rw-r--r--plugins/resize/src/resize.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/move/src/move.cpp b/plugins/move/src/move.cpp
index 77556a5..300d337 100644
--- a/plugins/move/src/move.cpp
+++ b/plugins/move/src/move.cpp
@@ -127,6 +127,9 @@ moveInitiate (CompAction *action,
w->grabNotify (x, y, mods, grabMask);
+ if (screen->getOption ("raise_on_click")->value ().b ())
+ w->updateAttributes (CompStackingUpdateModeAboveFullscreen);
+
if (state & CompAction::StateInitKey)
{
int xRoot, yRoot;
diff --git a/plugins/resize/src/resize.cpp b/plugins/resize/src/resize.cpp
index d38e604..7371e0b 100644
--- a/plugins/resize/src/resize.cpp
+++ b/plugins/resize/src/resize.cpp
@@ -452,6 +452,9 @@ resizeInitiate (CompAction *action,
w->grabNotify (x, y, state, grabMask);
+ if (screen->getOption ("raise_on_click")->value ().b ())
+ w->updateAttributes (CompStackingUpdateModeAboveFullscreen);
+
/* using the paint rectangle is enough here
as we don't have any stretch yet */
rs->getPaintRectangle (&box);