1
------------------------------------------------------------
3
committer: Marco Trevisan (Treviño) <mail@3v1n0.net>
5
timestamp: Fri 2013-02-08 02:46:52 +0000
7
Simulating direct commit to trunk #nochangelog
9
=== modified file 'launcher/EdgeBarrierController.cpp'
10
--- launcher/EdgeBarrierController.cpp 2012-12-11 23:38:30 +0000
11
+++ launcher/EdgeBarrierController.cpp 2013-02-08 01:00:23 +0000
15
#include "EdgeBarrierController.h"
16
+#include "EdgeBarrierControllerPrivate.h"
17
#include "Decaymulator.h"
18
#include "unity-shared/UScreen.h"
19
#include "UnityCore/GLibSource.h"
20
------------------------------------------------------------
22
author: Marco Trevisan (Treviño) <mail@3v1n0.net>, Brandon Schaefer <brandon.schaefer@canonical.com>
25
timestamp: Fri 2013-02-08 02:46:52 +0000
27
EdgeBarrierController: add multiple types of subscriber results, fix edges on autohide
31
Now when sticky keys are disabled, and the launcher is set to autohide, the mouse will hit both sides of the screen (instead of just the left side o
32
f the barrier); at that point we'll release the events coming from the launcher-less side of the monitor, but we'll use them to temporary keep the bar
33
rier "broken". Fixes: https://bugs.launchpad.net/bugs/1064945.
35
Approved by Brandon Schaefer.
37
=== modified file 'launcher/EdgeBarrierController.cpp'
38
--- launcher/EdgeBarrierController.cpp 2012-12-11 23:38:30 +0000
39
+++ launcher/EdgeBarrierController.cpp 2013-02-08 01:00:23 +0000
43
#include "EdgeBarrierController.h"
44
+#include "EdgeBarrierControllerPrivate.h"
45
#include "Decaymulator.h"
46
#include "unity-shared/UScreen.h"
47
#include "UnityCore/GLibSource.h"
48
------------------------------------------------------------
50
author: Marco Trevisan (Treviño) <mail@3v1n0.net>
53
timestamp: Tue 2013-04-23 22:00:39 +0000
55
IconRenderer: preprocess an icon if its emblem has been shown/hidden
57
In that way we can update its transformation. Fixes: https://bugs.launchpad.net/bugs/1171476, https://bugs.launchpad.net/bugs/1171663.
59
Approved by PS Jenkins bot, Brandon Schaefer.
61
=== modified file 'unity-shared/IconRenderer.cpp'
62
--- unity-shared/IconRenderer.cpp 2013-04-10 21:41:57 +0000
63
+++ unity-shared/IconRenderer.cpp 2013-04-23 00:49:38 +0000
65
if (it->render_center == launcher_icon->LastRenderCenter(monitor) &&
66
it->logical_center == launcher_icon->LastLogicalCenter(monitor) &&
67
it->rotation == launcher_icon->LastRotation(monitor) &&
68
- it->skip == launcher_icon->WasSkipping(monitor))
69
+ it->skip == launcher_icon->WasSkipping(monitor) &&
70
+ (launcher_icon->Emblem() != nullptr) == launcher_icon->HadEmblem())
75
launcher_icon->RememberCenters(monitor, it->render_center, it->logical_center);
76
launcher_icon->RememberRotation(monitor, it->rotation);
77
launcher_icon->RememberSkip(monitor, it->skip);
78
+ launcher_icon->RememberEmblem(launcher_icon->Emblem() != nullptr);
83
=== modified file 'unity-shared/IconTextureSource.cpp'
84
--- unity-shared/IconTextureSource.cpp 2013-04-12 23:33:52 +0000
85
+++ unity-shared/IconTextureSource.cpp 2013-04-23 00:48:47 +0000
89
IconTextureSource::IconTextureSource()
90
- : skip_(RENDERERS_SIZE, false)
91
+ : had_emblem_(false)
92
+ , skip_(RENDERERS_SIZE, false)
93
, last_render_center_(RENDERERS_SIZE)
94
, last_logical_center_(RENDERERS_SIZE)
95
, last_rotation_(RENDERERS_SIZE)
97
return skip_[monitor];
100
+void IconTextureSource::RememberEmblem(bool has_emblem)
102
+ had_emblem_ = has_emblem;
105
+bool IconTextureSource::HadEmblem() const
107
+ return had_emblem_;
112
\ No newline at end of file
114
=== modified file 'unity-shared/IconTextureSource.h'
115
--- unity-shared/IconTextureSource.h 2013-04-12 23:33:52 +0000
116
+++ unity-shared/IconTextureSource.h 2013-04-23 00:48:47 +0000
118
void RememberSkip(int monitor, bool skip);
119
bool WasSkipping(int monitor) const;
121
+ void RememberEmblem(bool has_emblem);
122
+ bool HadEmblem() const;
124
virtual nux::Color BackgroundColor() const = 0;
126
virtual nux::Color GlowColor() = 0;
128
virtual nux::BaseTexture* Emblem() = 0;
132
std::vector<bool> skip_;
133
std::vector<nux::Point3> last_render_center_;
134
std::vector<nux::Point3> last_logical_center_;
135
------------------------------------------------------------