summaryrefslogtreecommitdiff
path: root/src/session.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-03-08 13:29:10 +0100
committerDanny Baumann <dannybaumann@web.de>2009-03-08 13:29:10 +0100
commita3093d321ba0a23aa5167a81f64ce90a0b5a3bb2 (patch)
tree1cb533f3501708d84435340696a147437890f3c1 /src/session.cpp
parent6340ef91236e75c3e7107e6dd484031dd8c455dc (diff)
downloadmobilebling-a3093d321ba0a23aa5167a81f64ce90a0b5a3bb2.tar.gz
mobilebling-a3093d321ba0a23aa5167a81f64ce90a0b5a3bb2.tar.bz2
Always register as "compiz" to the SM, even if that doesn't match the
binary name.
Diffstat (limited to 'src/session.cpp')
-rw-r--r--src/session.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/session.cpp b/src/session.cpp
index a7399c2..7e34e80 100644
--- a/src/session.cpp
+++ b/src/session.cpp
@@ -143,7 +143,6 @@ setRestartStyle (SmcConn connection,
static void
setProgramInfo (SmcConn connection,
- const char *program,
pid_t pid,
uid_t uid)
{
@@ -158,8 +157,8 @@ setProgramInfo (SmcConn connection,
progProp.type = const_cast<char *> (SmARRAY8);
progProp.num_vals = 1;
progProp.vals = &progVal;
- progVal.value = (SmPointer) program;
- progVal.length = strlen (program);
+ progVal.value = (SmPointer) "compiz";
+ progVal.length = strlen (progVal.value);
props[count++] = &progProp;
@@ -214,7 +213,7 @@ saveYourselfCallback (SmcConn connection,
setCloneRestartCommands (connection);
setRestartStyle (connection, SmRestartImmediately);
- setProgramInfo (connection, programName, getpid (), getuid ());
+ setProgramInfo (connection, getpid (), getuid ());
SmcSaveYourselfDone (connection, 1);
}