diff options
| author | emersion <contact@emersion.fr> | 2018-02-24 23:29:08 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-24 23:29:08 +0100 | 
| commit | 583c30dbe3e3249ec1b753fddbfa982db56dce31 (patch) | |
| tree | ce07d65ab79287280f1f5468e2e62eb5cbef4089 /sway/desktop/xdg_shell_v6.c | |
| parent | b28602aa7425cf435150e6008624429737e037d3 (diff) | |
| parent | 1cca3965f395f624f698cc162946c6cbd6b10673 (diff) | |
| download | sway-583c30dbe3e3249ec1b753fddbfa982db56dce31.tar.xz | |
Merge pull request #1585 from acrisci/focus-overhaul
focus overhaul
Diffstat (limited to 'sway/desktop/xdg_shell_v6.c')
| -rw-r--r-- | sway/desktop/xdg_shell_v6.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/sway/desktop/xdg_shell_v6.c b/sway/desktop/xdg_shell_v6.c index ca56a9c0..b44d9e54 100644 --- a/sway/desktop/xdg_shell_v6.c +++ b/sway/desktop/xdg_shell_v6.c @@ -135,7 +135,8 @@ void handle_xdg_shell_v6_surface(struct wl_listener *listener, void *data) {  	wl_signal_add(&xdg_surface->events.destroy, &sway_surface->destroy);  	struct sway_seat *seat = input_manager_current_seat(input_manager); -	swayc_t *cont = new_view(seat->focus, sway_view); +	swayc_t *focus = sway_seat_get_focus_inactive(seat, &root_container); +	swayc_t *cont = new_view(focus, sway_view);  	sway_view->swayc = cont;  	arrange_windows(cont->parent, -1, -1); | 
