mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 03:45:58 +01:00
Merge pull request #1696 from RedSoxFan/logind-stay-active-on-gone
session/logind: keep active for pause_device gone
This commit is contained in:
commit
522ddd93f1
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ static int pause_device(sd_bus_message *msg, void *userdata,
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (major == DRM_MAJOR) {
|
if (major == DRM_MAJOR && strcmp(type, "gone") != 0) {
|
||||||
assert(session->has_drm);
|
assert(session->has_drm);
|
||||||
session->base.active = false;
|
session->base.active = false;
|
||||||
wlr_signal_emit_safe(&session->base.session_signal, session);
|
wlr_signal_emit_safe(&session->base.session_signal, session);
|
||||||
|
|
Loading…
Reference in a new issue