diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-03-17 13:47:58 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-03-17 13:47:58 -0400 |
| commit | b811ee903ce3ff92b7b747304bd05d3e1abcd0bf (patch) | |
| tree | 1965747b05e5a9cc2cff508f5f03c18a44eb849a | |
| parent | 4c42eed7c10575285e7cb7d31fab5d397a8bb535 (diff) | |
| parent | 80f823b87a7ed07dd61df7140b078bac42a63d9c (diff) | |
Merge pull request #515 from mikkeloscar/focus-correct-swaylock-view
Focus correct swaylock view in multimonitor setup
| -rw-r--r-- | sway/extensions.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/extensions.c b/sway/extensions.c index b3984595..9283b656 100644 --- a/sway/extensions.c +++ b/sway/extensions.c @@ -129,7 +129,12 @@ static void set_lock_surface(struct wl_client *client, struct wl_resource *resou desktop_shell.is_locked = true; // reset input state input_init(); - set_focused_container(view); + // set focus if the lockscreen is spawned on the currently + // active output + swayc_t *focus_output = swayc_active_output(); + if (focus_output == output) { + set_focused_container(view); + } arrange_windows(workspace, -1, -1); list_add(desktop_shell.lock_surfaces, surface); wl_resource_set_destructor(surface, lock_surface_destructor); |
