Commit ba2b7b8a authored by Erwan Tulou's avatar Erwan Tulou

skins2: fix WorkArea different from Screen

parent 04c4a56c
......@@ -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 );
......
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