aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Nicklas Warming Jacobsen <nicklaswj@gmail.com>2015-08-25 20:25:38 +0200
committerLibravatar Nicklas Warming Jacobsen <nicklaswj@gmail.com>2015-08-25 20:25:38 +0200
commita70b9a9a7aa17e54f7e5b91a21635edb01d46092 (patch)
tree65238be48a711b35450349f1e0bc9cc9dd51b263
parentFocus floating window, if any, when the last tiling has been closed (diff)
downloadsway-a70b9a9a7aa17e54f7e5b91a21635edb01d46092.tar.gz
sway-a70b9a9a7aa17e54f7e5b91a21635edb01d46092.tar.zst
sway-a70b9a9a7aa17e54f7e5b91a21635edb01d46092.zip
removed stupid test code
-rw-r--r--sway/handlers.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index b5e0a0e1..aca7806b 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -230,9 +230,7 @@ static void handle_view_destroyed(wlc_handle handle) {
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 sway_log(L_DEBUG, "we are here first");
234 if(focused_view->floating->length > 0){ 233 if(focused_view->floating->length > 0){
235 sway_log(L_DEBUG, "we are here %d", focused_view->floating->length);
236 focused_view = focused_view->floating->items[focused_view->floating->length-1]; 234 focused_view = focused_view->floating->items[focused_view->floating->length-1];
237 focused_view = get_focused_view(focused_view); 235 focused_view = get_focused_view(focused_view);
238 } 236 }