diff options
author | Nicklas Warming Jacobsen <nicklaswj@gmail.com> | 2015-08-25 22:00:39 +0200 |
---|---|---|
committer | Nicklas Warming Jacobsen <nicklaswj@gmail.com> | 2015-08-25 22:00:39 +0200 |
commit | 227d5dbe08e5be9e0fa116925581a086c8bf60d1 (patch) | |
tree | 591f8bff6ec66dc4fe9b6add08fe36342bbd39b1 | |
parent | removed stupid test code (diff) | |
download | sway-227d5dbe08e5be9e0fa116925581a086c8bf60d1.tar.gz sway-227d5dbe08e5be9e0fa116925581a086c8bf60d1.tar.zst sway-227d5dbe08e5be9e0fa116925581a086c8bf60d1.zip |
code style clean up
-rw-r--r-- | sway/handlers.c | 14 |
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) { | |||
228 | break; | 228 | break; |
229 | } | 229 | } |
230 | 230 | ||
231 | swayc_t *focused_view = get_focused_view(&root_container); | 231 | swayc_t *focused_view = get_focused_view(&root_container); |
232 | if(focused_view->type == C_WORKSPACE && focused_view->children->length == 0){ | 232 | if (focused_view->type == C_WORKSPACE && focused_view->children->length == 0) { |
233 | if(focused_view->floating->length > 0){ | 233 | if (focused_view->floating->length > 0) { |
234 | focused_view = focused_view->floating->items[focused_view->floating->length-1]; | 234 | focused_view = focused_view->floating->items[focused_view->floating->length-1]; |
235 | focused_view = get_focused_view(focused_view); | 235 | focused_view = get_focused_view(focused_view); |
236 | } | 236 | } |
237 | } | 237 | } |
238 | set_focused_container(focused_view); | 238 | set_focused_container(focused_view); |
239 | } | 239 | } |
240 | 240 | ||