summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-01-26 00:04:54 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-01-26 00:04:54 +0800
commit26e17cd0bd0ff0035fb098ff5c5333a95e641b0f (patch)
tree6e2f84eaaae85b41168bdc5a8eae3fe25aa81362
parent87b6f540a8b6c30cdc8d2619d63c5e7d03739f57 (diff)
downloadmobileperf-26e17cd0bd0ff0035fb098ff5c5333a95e641b0f.tar.gz
mobileperf-26e17cd0bd0ff0035fb098ff5c5333a95e641b0f.tar.bz2
Set the vp size before initializing windows
-rw-r--r--src/screen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen.cpp b/src/screen.cpp
index 63e0c96..2c25c07 100644
--- a/src/screen.cpp
+++ b/src/screen.cpp
@@ -4597,6 +4597,9 @@ CompScreen::init (const char *name)
}
}
+ priv->vpSize.setWidth (priv->optionGetHsize ());
+ priv->vpSize.setHeight (priv->optionGetVsize ());
+
/* enforce restack on all windows */
for (CompWindowList::reverse_iterator rit = priv->windows.rbegin ();
rit != priv->windows.rend (); rit++)
@@ -4612,9 +4615,6 @@ CompScreen::init (const char *name)
w->priv->activeNum = priv->activeNum++;
}
- priv->vpSize.setWidth (priv->optionGetHsize ());
- priv->vpSize.setHeight (priv->optionGetVsize ());
-
XGetInputFocus (dpy, &focus, &revertTo);
/* move input focus to root window so that we get a FocusIn event when