diff options
author | Richard Grenville <[email protected]> | 2013-05-12 18:21:16 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2013-05-12 18:21:16 +0800 |
commit | 2b0dfa9b968ce34f35919f9df216e668fec761b8 (patch) | |
tree | 090fa5fd1839dd4f6b395db1cb014fd895153d46 /dbus.c | |
parent | 060b5ab23c3fb18a8695e8f7e5d145f023b7b3b2 (diff) | |
download | tdebase-2b0dfa9b968ce34f35919f9df216e668fec761b8.tar.gz tdebase-2b0dfa9b968ce34f35919f9df216e668fec761b8.zip |
Misc: Add DEBUG_GLX_MARK & Misc
- GLX backend: Add DEBUG_GLX_MARK, to add GL marks around functions with
glStringMarkerGREMEDY(), and mark frame termination with
glFrameTerminatorGREMEDY().
- Print output of `compton -h` to stdout. (#110)
- GLX backend: Strip out elements with factor 0 in GLSL blur code.
Thanks to jrfonseca for guides. (#107)
Diffstat (limited to 'dbus.c')
-rw-r--r-- | dbus.c | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -605,6 +605,20 @@ cdbus_process(session_t *ps, DBusMessage *msg) { "org.freedesktop.DBus.Introspectable", "Introspect")) { success = cdbus_process_introspect(ps, msg); } + else if (dbus_message_is_method_call(msg, + "org.freedesktop.DBus.Peer", "Ping")) { + cdbus_reply(ps, msg, NULL, NULL); + success = true; + } + else if (dbus_message_is_method_call(msg, + "org.freedesktop.DBus.Peer", "GetMachineId")) { + char *uuid = dbus_get_local_machine_id(); + if (uuid) { + cdbus_reply_string(ps, msg, uuid); + dbus_free(uuid); + success = true; + } + } else if (dbus_message_is_signal(msg, "org.freedesktop.DBus", "NameAcquired") || dbus_message_is_signal(msg, "org.freedesktop.DBus", "NameLost")) { success = true; @@ -1028,6 +1042,12 @@ cdbus_process_introspect(session_t *ps, DBusMessage *msg) { " <arg name='data' direction='out' type='s' />\n" " </method>\n" " </interface>\n" + " <interface name='org.freedesktop.DBus.Peer'>\n" + " <method name='Ping' />\n" + " <method name='GetMachineId'>\n" + " <arg name='machine_uuid' direction='out' type='s' />\n" + " </method>\n" + " </interface>\n" " <interface name='" CDBUS_INTERFACE_NAME "'>\n" " <signal name='win_added'>\n" " <arg name='wid' type='" CDBUS_TYPE_WINDOW_STR "'/>\n" |