desktop/output: Modeset on session activation

We need to modeset when our session is activated as the output state
might have deviated from what we previously had active.

Related: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4878
This commit is contained in:
Kenny Levinsen 2024-10-28 13:02:18 +01:00
parent 839434abc0
commit 48c7e9703e
3 changed files with 16 additions and 0 deletions

View file

@ -46,6 +46,7 @@ struct sway_server {
struct wl_listener new_output;
struct wl_listener renderer_lost;
struct wl_listener session_active;
struct wlr_idle_notifier_v1 *idle_notifier_v1;
struct sway_idle_inhibit_manager_v1 idle_inhibit_manager_v1;
@ -162,6 +163,7 @@ void server_run(struct sway_server *server);
void restore_nofile_limit(void);
void handle_session_active(struct wl_listener *listener, void *data);
void handle_new_output(struct wl_listener *listener, void *data);
void handle_idle_inhibitor_v1(struct wl_listener *listener, void *data);