chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6e7f88f
)
logind: fix typo in comment
author
Lennart Poettering
<lennart@poettering.net>
Fri, 2 Mar 2018 10:56:15 +0000
(11:56 +0100)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:11 +0000
(07:59 +0200)
src/login/logind-session-device.c
patch
|
blob
|
history
diff --git
a/src/login/logind-session-device.c
b/src/login/logind-session-device.c
index ca0c512a1aae79837f4aa90a13987ffb5fe7c5e6..e127a3e99cfc95d98ee40f8b291e6eef62a3ef4d 100644
(file)
--- a/
src/login/logind-session-device.c
+++ b/
src/login/logind-session-device.c
@@
-226,7
+226,7
@@
static int session_device_start(SessionDevice *sd) {
case DEVICE_TYPE_UNKNOWN:
default:
case DEVICE_TYPE_UNKNOWN:
default:
- /* fallback for devices wihout synchronizations */
+ /* fallback for devices wi
t
hout synchronizations */
break;
}
break;
}
@@
-241,6
+241,7
@@
static void session_device_stop(SessionDevice *sd) {
return;
switch (sd->type) {
return;
switch (sd->type) {
+
case DEVICE_TYPE_DRM:
/* On DRM devices we simply drop DRM-Master but keep it open.
* This allows the user to keep resources allocated. The
case DEVICE_TYPE_DRM:
/* On DRM devices we simply drop DRM-Master but keep it open.
* This allows the user to keep resources allocated. The
@@
-248,6
+249,7
@@
static void session_device_stop(SessionDevice *sd) {
* circumventing this. */
sd_drmdropmaster(sd->fd);
break;
* circumventing this. */
sd_drmdropmaster(sd->fd);
break;
+
case DEVICE_TYPE_EVDEV:
/* Revoke access on evdev file-descriptors during deactivation.
* This will basically prevent any operations on the fd and
case DEVICE_TYPE_EVDEV:
/* Revoke access on evdev file-descriptors during deactivation.
* This will basically prevent any operations on the fd and
@@
-255,6
+257,7
@@
static void session_device_stop(SessionDevice *sd) {
* protection this way. */
sd_eviocrevoke(sd->fd);
break;
* protection this way. */
sd_eviocrevoke(sd->fd);
break;
+
case DEVICE_TYPE_UNKNOWN:
default:
/* fallback for devices without synchronization */
case DEVICE_TYPE_UNKNOWN:
default:
/* fallback for devices without synchronization */
@@
-472,6
+475,7
@@
void session_device_resume_all(Session *s) {
continue;
if (session_device_save(sd) < 0)
continue;
continue;
if (session_device_save(sd) < 0)
continue;
+
session_device_notify(sd, SESSION_DEVICE_RESUME);
}
}
session_device_notify(sd, SESSION_DEVICE_RESUME);
}
}