mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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.
This commit is contained in:
parent
cd95d70df0
commit
0e76f92de7
8 changed files with 16 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue