aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:29 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:29 +0200
commitb1a7670336d3d5f6f70285e766475a3415c13d12 (patch)
treee3b378b59028ce0fc5eab63c437395abdb5f9b89 /src
parente2a149b190298bc60e9f952f119d52a1b3ddc9d6 (diff)
app: do not inline assignments
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r--src/app.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app.cpp b/src/app.cpp
index a034fac..6ab58a4 100644
--- a/src/app.cpp
+++ b/src/app.cpp
@@ -422,9 +422,9 @@ char const *App::activate_surface(char const *drawing_name) {
if (this->state.sub == -1) {
if (can_split) {
if (this->state.main != *surface_id) {
- this->surface_set_layout_split(this->state.main,
- this->state.sub = *surface_id);
- this->activate(this->state.sub);
+ this->surface_set_layout_split(this->state.main, *surface_id);
+ this->activate(*surface_id);
+ this->state.sub = *surface_id;
}
} else {
this->surface_set_layout_full(*surface_id);