diff options
| author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-05-25 22:20:12 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2023-06-02 21:56:09 -0600 | 
| commit | 9b9b79b35ebaed7a5897f748c51b2d5c4ec1ddfe (patch) | |
| tree | 7dc6a8e8ddec05c3d5fa51ba86d35f127678bae1 /dwl.c | |
| parent | 3d98907b98e2ff978cc30614b739f1f4b8f7f8c7 (diff) | |
activate lock surface in updatemons
Fixes an issue when swaylock does not receive input after turn off and then
turn on the outputs
Diffstat (limited to '')
| -rw-r--r-- | dwl.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -2572,9 +2572,12 @@ updatemons(struct wl_listener *listener, void *data)  		wl_list_for_each(c, &clients, link)  			if (!c->mon && client_is_mapped(c))  				setmon(c, selmon, c->tags); -		if (selmon->lock_surface) +		focusclient(focustop(selmon), 1); +		if (selmon->lock_surface) {  			client_notify_enter(selmon->lock_surface->surface,  					wlr_seat_get_keyboard(seat)); +			client_activate_surface(selmon->lock_surface->surface, 1); +		}  	}  	wlr_output_manager_v1_set_configuration(output_mgr, config); | 
