summaryrefslogtreecommitdiff
path: root/include
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 /include
parent1ac4afe31360d2d8255208372148f403136f5499 (diff)
downloadzcomp-08c22af5823771444b8c189c265a526ccb998068.tar.gz
zcomp-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 'include')
-rw-r--r--include/core/screen.h2
-rw-r--r--include/core/window.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/core/screen.h b/include/core/screen.h
index ab4cb0d..ff971de 100644
--- a/include/core/screen.h
+++ b/include/core/screen.h
@@ -264,6 +264,8 @@ class CompScreen :
bool addAction (CompAction *action);
void removeAction (CompAction *action);
+
+ void updateWorkarea ();
void toolkitAction (Atom toolkitAction,
Time eventTime,
diff --git a/include/core/window.h b/include/core/window.h
index 786fe7f..056b923 100644
--- a/include/core/window.h
+++ b/include/core/window.h
@@ -486,6 +486,8 @@ class CompWindow :
static unsigned int allocPluginClassIndex ();
static void freePluginClassIndex (unsigned int index);
+
+ bool updateStruts ();
WRAPABLE_HND (0, WindowInterface, void, getOutputExtents,
CompWindowExtents&);