[vlc-commits] skins2: fix WorkArea different from Screen

Erwan Tulou git at videolan.org
Mon Jan 29 22:26:52 CET 2018


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Mon Jan 29 21:14:17 2018 +0100| [ba2b7b8a1b84b25765a2c7b6f40f28f5b2d1fa19] | committer: Erwan Tulou

skins2: fix WorkArea different from Screen

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

 modules/gui/skins2/src/window_manager.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/gui/skins2/src/window_manager.cpp b/modules/gui/skins2/src/window_manager.cpp
index 7941cd5c6e..c5d2f5d90c 100644
--- a/modules/gui/skins2/src/window_manager.cpp
+++ b/modules/gui/skins2/src/window_manager.cpp
@@ -326,9 +326,7 @@ void WindowManager::maximize( TopWindow &rWindow )
                                rWindow.getTop() + rWindow.getHeight() );
 
     // maximise the window within the current screen (multiple screens allowed)
-    int x, y, width, height;
-    rWindow.getMonitorInfo( &x, &y, &width, &height );
-    SkinsRect workArea(x, y, x + width, y + height);
+    SkinsRect workArea = OSFactory::instance( getIntf() )->getWorkArea();
 
     // Move the window
     startMove( rWindow );



More information about the vlc-commits mailing list