mirror of
https://github.com/swaywm/sway.git
synced 2026-07-05 00:06:04 -04:00
lock: commit transaction after unlock
This ensures focus changes are correctly reflected when unlocking the screen.
This commit is contained in:
parent
512d64b70f
commit
edcc4b0ed0
1 changed files with 3 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
#include "sway/output.h"
|
#include "sway/output.h"
|
||||||
#include "sway/server.h"
|
#include "sway/server.h"
|
||||||
#include "sway/lock.h"
|
#include "sway/lock.h"
|
||||||
|
#include "sway/desktop/transaction.h"
|
||||||
|
|
||||||
struct sway_session_lock_output {
|
struct sway_session_lock_output {
|
||||||
struct wlr_scene_tree *tree;
|
struct wlr_scene_tree *tree;
|
||||||
|
|
@ -237,6 +238,8 @@ static void handle_unlock(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
// Views are now visible, so check if we need to activate inhibition again.
|
// Views are now visible, so check if we need to activate inhibition again.
|
||||||
sway_idle_inhibit_v1_check_active();
|
sway_idle_inhibit_v1_check_active();
|
||||||
|
|
||||||
|
transaction_commit_dirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_abandon(struct wl_listener *listener, void *data) {
|
static void handle_abandon(struct wl_listener *listener, void *data) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue