diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-05-19 09:03:20 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-05-19 09:03:20 +0900 |
commit | 952d32609f9bceee444fa2690afb4d28539b4b92 (patch) | |
tree | d952a24f01c7f0727e68b29b26a6fdb74d86b8cc /src/login/logind-session.h | |
parent | 2be6107255c3cf47bb5a9eddf2411953f29522e1 (diff) |
logind: fix Display property of user objects
When we dropped support for creating a per-user to the "main" X11
display we stopped returning useful data in the "Display" user property.
With this change this is fixed and we again expose an appropriate
(graphical session) in the property that is useful as the "main" one, if
one is needed.
Diffstat (limited to 'src/login/logind-session.h')
-rw-r--r-- | src/login/logind-session.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/logind-session.h b/src/login/logind-session.h index f78f30956d..81957dfa78 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -60,6 +60,8 @@ typedef enum SessionType { _SESSION_TYPE_INVALID = -1 } SessionType; +#define SESSION_TYPE_IS_GRAPHICAL(type) IN_SET(type, SESSION_X11, SESSION_WAYLAND, SESSION_MIR) + enum KillWho { KILL_LEADER, KILL_ALL, |