aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-06 11:34:55 +0100
committerSimon Ser <contact@emersion.fr>2020-11-19 22:47:49 +0100
commit0e76f92de7f5ee53a3d35ad3128b5224b9a305aa (patch)
tree88cca37d3cd6064481dd0dbb88c80d11ad29c66d /include/wlr
parentcd95d70df094e59b625073688e5fd3e783183424 (diff)
backend/session: replace session_signal with events.active
This is more idiomatic wlroots API. The new name makes it clear that the signal is emitted when wlr_session.active changes.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/backend/session.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/wlr/backend/session.h b/include/wlr/backend/session.h
index 692d7be1..06c23d73 100644
--- a/include/wlr/backend/session.h
+++ b/include/wlr/backend/session.h
@@ -24,7 +24,6 @@ struct wlr_session {
* Signal for when the session becomes active/inactive.
* It's called when we swap virtual terminal.
*/
- struct wl_signal session_signal;
bool active;
/*
@@ -44,6 +43,7 @@ struct wlr_session {
struct wl_listener display_destroy;
struct {
+ struct wl_signal active;
struct wl_signal add_drm_card; // struct wlr_session_add_event
struct wl_signal destroy;
} events;