Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wlserver: Re-hook pausing on session pause
During the refactor in 88eb1b4, the handle_session_active function lost the ultimate role of *causing a pause* when the session became inactive. The duty of pausing the session was given the `DirtyState` function on the backend, which now uses the same "moral" condition to set the paused state (`g_DRM.paused = !wlsession_active();`)... ... except that now `DirtyState` state is only called when the session is resumed. In turn, this means that on session suspend, nothing ends-up pausing the DRM backend anymore! This change unconditionally calls `DirtyState`, which in turn does the accounting for pausing the backend. Actually, it conditionally passes `false` to the argument to force nothing. This fixes what ends-up causing `drmModeAtomicCommit: Permission denied` when moving to another VT from gamescope's.
- Loading branch information