Commit eede8ebe authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

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

parent bf552595
......@@ -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 ( - p1 );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment