[vlc-devel] commit: Use available Screensize and not the complete screensize to center a widget . (Jean-Baptiste Kempf )

git version control git at videolan.org
Mon Aug 4 23:07:36 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug  4 13:27:18 2008 -0700| [eede8ebe0230269ab06b1c24f4a5a48b842acbc2] | committer: Jean-Baptiste Kempf 

Use available Screensize and not the complete screensize to center a widget.

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

 modules/gui/qt4/util/qvlcframe.hpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/util/qvlcframe.hpp b/modules/gui/qt4/util/qvlcframe.hpp
index d8baf9a..ad7426c 100644
--- a/modules/gui/qt4/util/qvlcframe.hpp
+++ b/modules/gui/qt4/util/qvlcframe.hpp
@@ -107,7 +107,7 @@ class QVLCTools
       static void centerWidgetOnScreen(QWidget *widget)
       {
          QDesktopWidget * const desktop = QApplication::desktop();
-         QRect screenRect = desktop->screenGeometry(widget);
+         QRect screenRect = desktop->availableGeometry(widget);
          QPoint p1 = widget->frameGeometry().center();
 
          widget->move ( screenRect.center() - p1 );




More information about the vlc-devel mailing list