summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2012-05-18 17:06:21 (GMT)
committerThomas Lübking <thomas.luebking@gmail.com>2012-05-27 19:43:00 (GMT)
commitb6081d623550aa2d1145d3b3b5ceafbc119e12eb (patch)
tree34398951597a034656c3907cbd2e5142f347c939
parent8712b6efa9836d67f4b02c5b9bc58021680d2f14 (diff)
updateFocusMousePosition when exiting fullscreen mode
REVIEW: 104985 BUG: 300245 FIXED-IN: 4.8.4 (cherry picked from commit fde8794962124f3dbfab23d450f19d3c8a7d273c)
-rw-r--r--kwin/geometry.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kwin/geometry.cpp b/kwin/geometry.cpp
index 5466068..24451d5 100644
--- a/kwin/geometry.cpp
+++ b/kwin/geometry.cpp
@@ -2397,7 +2397,9 @@ void Client::setFullScreen(bool set, bool user)
set = rules()->checkFullScreen(set);
setShade(ShadeNone);
bool was_fs = isFullScreen();
- if (!was_fs)
+ if (was_fs)
+ workspace()->updateFocusMousePosition(QCursor::pos());
+ else
geom_fs_restore = geometry();
fullscreen_mode = set ? FullScreenNormal : FullScreenNone;
if (was_fs == isFullScreen())