aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicklas Warming Jacobsen <nicklaswj@gmail.com>2015-08-25 22:00:39 +0200
committerNicklas Warming Jacobsen <nicklaswj@gmail.com>2015-08-25 22:00:39 +0200
commit227d5dbe08e5be9e0fa116925581a086c8bf60d1 (patch)
tree591f8bff6ec66dc4fe9b6add08fe36342bbd39b1
parenta70b9a9a7aa17e54f7e5b91a21635edb01d46092 (diff)
code style clean up
-rw-r--r--sway/handlers.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index aca7806b..b5ffb060 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -228,13 +228,13 @@ static void handle_view_destroyed(wlc_handle handle) {
break;
}
- swayc_t *focused_view = get_focused_view(&root_container);
- if(focused_view->type == C_WORKSPACE && focused_view->children->length == 0){
- if(focused_view->floating->length > 0){
- focused_view = focused_view->floating->items[focused_view->floating->length-1];
- focused_view = get_focused_view(focused_view);
- }
- }
+ swayc_t *focused_view = get_focused_view(&root_container);
+ if (focused_view->type == C_WORKSPACE && focused_view->children->length == 0) {
+ if (focused_view->floating->length > 0) {
+ focused_view = focused_view->floating->items[focused_view->floating->length-1];
+ focused_view = get_focused_view(focused_view);
+ }
+ }
set_focused_container(focused_view);
}