diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-30 00:13:39 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-30 00:47:58 +0200 |
commit | 7878de5ccc223baa609770e04efa151f5b99b16d (patch) | |
tree | 1cf3b666738bf704ed3df36c6833771f77f3f9e0 /sway | |
parent | d80466068aab90cbb14eb88868d684f14b91642c (diff) | |
download | sway-7878de5ccc223baa609770e04efa151f5b99b16d.tar.xz |
Mark focused view focus_inactive on unfocused output
Diffstat (limited to 'sway')
-rw-r--r-- | sway/border.c | 6 | ||||
-rw-r--r-- | sway/focus.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sway/border.c b/sway/border.c index 872e8d34..e820794f 100644 --- a/sway/border.c +++ b/sway/border.c @@ -170,6 +170,12 @@ static void render_with_title_bar(swayc_t *view, cairo_t *cr, struct border_colo view->actual_geometry.size.w, 1); } +void map_update_view_border(swayc_t *view, void *data) { + if (view->type == C_VIEW) { + update_view_border(view); + } +} + void update_view_border(swayc_t *view) { cairo_t *cr = NULL; cairo_surface_t *surface = NULL; diff --git a/sway/focus.c b/sway/focus.c index 4cae3b47..0c9719b0 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -29,6 +29,8 @@ static void update_focus(swayc_t *c) { // Case where output changes case C_OUTPUT: + // update borders for views in prev + container_map(prev, map_update_view_border, NULL); wlc_output_focus(c->handle); break; |