summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:30 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:30 +0200
commitcd297088eccd423630022030dc30361accbdfc0c (patch)
tree5c296b47e8a06c420f87aeb428ca492493567440
parent88888465bf153f488a5508adf11e6b78f00b49f0 (diff)
app: remove unsused surface ref in activate_surface()
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r--src/app.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/app.cpp b/src/app.cpp
index 6ab58a4..7c95151 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -398,18 +398,6 @@ char const *App::activate_surface(char const *drawing_name) {
// such a thing, we will just switch to this surface.
// XXX: input focus missing!!1
- // Make it visible, no (or little effect) if already visible
- auto &s = this->controller->surfaces[*surface_id];
-
- //// Set all others invisible
- //for (auto &i : this->controller->surfaces) {
- // auto &si = this->controller->sprops[i.second->id];
- // if (si.id != s->id && si.visibility != 0 &&
- // int(si.id) != this->layers.main_surface) {
- // this->deactivate(si.id);
- // }
- //}
-
if (this->state.main == -1) {
this->surface_set_layout_full(*surface_id);
this->activate(*surface_id);