summaryrefslogtreecommitdiff
path: root/plugins/unityshell/src
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2012-09-28 11:47:30 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2012-09-28 11:47:30 +0200
commit82d4de9f8e818d02bd9890bf055e9959ccb4914b (patch)
treeebcf30ae0e329dbde7c6319d0efeddf15ed2fd9f /plugins/unityshell/src
parentcc564013155afc3e24b987d9afdd19c631283708 (diff)
big_tick_ should be a member variable.
(bzr r2763)
Diffstat (limited to 'plugins/unityshell/src')
-rw-r--r--plugins/unityshell/src/unityshell.cpp2
-rw-r--r--plugins/unityshell/src/unityshell.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 6221f31c4..f8031ea54 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -130,6 +130,7 @@ UnityScreen::UnityScreen(CompScreen* screen)
, panel_texture_has_changed_(true)
, paint_panel_(false)
, scale_just_activated_(false)
+ , big_tick_(0)
, screen_introspection_(screen)
{
Timer timer;
@@ -1300,7 +1301,6 @@ void UnityScreen::preparePaint(int ms)
{
cScreen->preparePaint(ms);
- static long long big_tick = 0;
big_tick += ms*1000;
tick_source_->tick(big_tick);
diff --git a/plugins/unityshell/src/unityshell.h b/plugins/unityshell/src/unityshell.h
index 26785b1ca..8648f5a5b 100644
--- a/plugins/unityshell/src/unityshell.h
+++ b/plugins/unityshell/src/unityshell.h
@@ -331,6 +331,8 @@ private:
bool scale_just_activated_;
WindowMinimizeSpeedController minimize_speed_controller_;
+ long long big_tick_;
+
debug::ScreenIntrospection screen_introspection_;
UBusManager ubus_manager_;