updateFocusMousePosition when exiting fullscreen mode

REVIEW: 104985
BUG: 300245
FIXED-IN: 4.9
This commit is contained in:
Thomas Lübking 2012-05-18 19:06:21 +02:00
parent 66e3d7daa7
commit 4643b59b0f

View file

@ -2345,7 +2345,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())