aboutsummaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-08-01 07:27:12 -0400
committerLibravatar GitHub <noreply@github.com>2016-08-01 07:27:12 -0400
commit2d907ef1f6f13a7921c295502d7b1047945cc327 (patch)
treef9326301b2dddf573d37612c7926dcb6248c913f /sway/handlers.c
parentMerge pull request #812 from zandrmartin/floating-fullscreen-size-fix (diff)
parentUpdate view border when workspace is focused (diff)
downloadsway-2d907ef1f6f13a7921c295502d7b1047945cc327.tar.gz
sway-2d907ef1f6f13a7921c295502d7b1047945cc327.tar.zst
sway-2d907ef1f6f13a7921c295502d7b1047945cc327.zip
Merge pull request #811 from acrisci/feature/focus-container
Implement focus handling for containers
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index bdcdcaa4..684e45ba 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -415,7 +415,7 @@ static bool handle_view_created(wlc_handle handle) {
415 // we were on one workspace, switched to another to add this view, 415 // we were on one workspace, switched to another to add this view,
416 // now let's return to where we were 416 // now let's return to where we were
417 workspace_switch(current_ws); 417 workspace_switch(current_ws);
418 set_focused_container(current_ws->focused); 418 set_focused_container(get_focused_container(current_ws));
419 } 419 }
420 420
421 suspend_workspace_cleanup = false; 421 suspend_workspace_cleanup = false;
@@ -553,9 +553,9 @@ static void handle_view_properties_updated(wlc_handle view, uint32_t mask) {
553 swayc_t *p = swayc_tabbed_stacked_ancestor(c); 553 swayc_t *p = swayc_tabbed_stacked_ancestor(c);
554 if (p) { 554 if (p) {
555 // TODO: we only got the topmost tabbed/stacked container, update borders of all containers on the path 555 // TODO: we only got the topmost tabbed/stacked container, update borders of all containers on the path
556 update_view_border(get_focused_view(p)); 556 update_container_border(get_focused_view(p));
557 } else if (c->border_type == B_NORMAL) { 557 } else if (c->border_type == B_NORMAL) {
558 update_view_border(c); 558 update_container_border(c);
559 } 559 }
560 ipc_event_window(c, "title"); 560 ipc_event_window(c, "title");
561 } 561 }