summaryrefslogtreecommitdiff
path: root/src/screen.cpp
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-02-04 23:59:42 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-02-04 23:59:42 +0800
commit08c22af5823771444b8c189c265a526ccb998068 (patch)
tree5b6744671d7cf7f702c7f59bd166947f78d923f5 /src/screen.cpp
parent1ac4afe31360d2d8255208372148f403136f5499 (diff)
downloadunity-window-decorator-08c22af5823771444b8c189c265a526ccb998068.tar.gz
unity-window-decorator-08c22af5823771444b8c189c265a526ccb998068.tar.bz2
place: Improve resolution change handling.
Windows are now moved/resized in a better way when changing resolution. Also, old window position and size will be remembered, so that they can be restored when going back to the original resolution. API changes were necessary in core, the functions ::updateStruts and ::updateWorkarea were moved from Private* to Comp* Forward port of 4327a7c83dc6c1fe77891ba7c6bf5023d21dfde8
Diffstat (limited to 'src/screen.cpp')
-rw-r--r--src/screen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 794abb4..5429e71 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -1848,7 +1848,7 @@ PrivateScreen::updateOutputDevices ()
if (outputDevs[i].intersects (outputDevs[j]))
hasOverlappingOutputs = true;
- updateWorkarea ();
+ screen->updateWorkarea ();
screen->outputChangeNotify ();
}
@@ -3107,7 +3107,7 @@ PrivateScreen::computeWorkareaForBox (const CompRect& box)
}
void
-PrivateScreen::updateWorkarea ()
+CompScreen::updateWorkarea ()
{
CompRect workArea;
bool workAreaChanged = false;