make sure fullscreen exit button is shown in lower right corner when it becomes visible
authorChristian Pulvermacher <pulvermacher@gmx.de>
Sun, 12 Feb 2012 14:30:09 +0000 (15:30 +0100)
committerChristian Pulvermacher <pulvermacher@gmx.de>
Sun, 12 Feb 2012 14:30:09 +0000 (15:30 +0100)
src/fullscreenexitbutton.h

index 56dde25..dd80b5a 100644 (file)
@@ -110,12 +110,10 @@ bool FullScreenExitButton::eventFilter(QObject *obj, QEvent *ev)
         setVisible(isFullScreen);
         if (isFullScreen)
             raise();
-        hide_timer.start();
-        break;
         // fall through
     case QEvent::Resize:
+        move(parent->width() - width(), parent->height() - height());
         if (isVisible()) {
-            move(parent->width() - width(), parent->height() - height());
             hide_timer.start();
         }
         break;