[vlc-devel] commit: Prevented QT4 gui from changing size while maximized. This should fix https://trac.videolan.org/vlc/ticket/1883 (Niklas Hayer )

git version control git at videolan.org
Mon May 11 01:53:22 CEST 2009


vlc | branch: 1.0-bugfix | Niklas Hayer <nikha354 at gmail.com> | Sun May 10 20:44:09 2009 +0200| [109900f90d2a204dfa4e017cccb4875441c7f663] | committer: Jean-Baptiste Kempf 

Prevented QT4 gui from changing size while maximized. This should fix https://trac.videolan.org/vlc/ticket/1883

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit e83df29b1f39dd46fe8893e5e111ed8be9a17e2d)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=109900f90d2a204dfa4e017cccb4875441c7f663
---

 modules/gui/qt4/main_interface.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index ab0eb9a..8baf686 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -637,7 +637,7 @@ QSize MainInterface::sizeHint() const
  */
 void MainInterface::doComponentsUpdate()
 {
-    if( isFullScreen() ) return;
+    if( isFullScreen() || isMaximized() ) return;
 
     msg_Dbg( p_intf, "Updating the geometry" );
     /* Here we resize to sizeHint() and not adjustsize because we want




More information about the vlc-devel mailing list