summaryrefslogtreecommitdiffstats
path: root/src/input/killX11Handler.h
diff options
context:
space:
mode:
authorSebastien Braun2010-10-23 17:49:12 +0200
committerSebastien Braun2010-10-24 23:43:08 +0200
commit7e3b963e3a0cbbf9391243e72ceb015e9015d630 (patch)
treed980c26b837ef106e286ea3ed3562ee37ffbd0bf /src/input/killX11Handler.h
parentFix forgotten change of j to mods in X11FakeKeyboardHandler. (diff)
downloadpvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.tar.gz
pvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.tar.xz
pvs-7e3b963e3a0cbbf9391243e72ceb015e9015d630.zip
Documentation fixes and code cleanup
Diffstat (limited to 'src/input/killX11Handler.h')
-rw-r--r--src/input/killX11Handler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/input/killX11Handler.h b/src/input/killX11Handler.h
index 77d9fdb..6501d5d 100644
--- a/src/input/killX11Handler.h
+++ b/src/input/killX11Handler.h
@@ -20,11 +20,22 @@
#include <QCoreApplication>
#include "inputEventHandler.h"
+/**
+ * Kills the X11 Server on Linux.
+ */
class KillX11Handler : public InputEventHandler<
input_policy::Match<InputEvent::ET_SPECIAL, InputEvent::EC_KILL_X>,
input_policy::Require<input_policy::LinuxSystem> >
{
public:
+
+ /**
+ * Kills the X11 Server on Linux.
+ *
+ * The X11-Server is found by asking ConsoleKit for its controlling
+ * tty. The sole process that has an open file descriptor referencing it
+ * must be the X Server. It is then sent SIGTERM.
+ */
void doHandle(InputEvent const&, InputEventContext const*);
};