summaryrefslogtreecommitdiffstats
path: root/dbus.c
diff options
context:
space:
mode:
authorRichard Grenville <pyxlcy@gmail.com>2013-03-30 11:46:32 +0800
committerRichard Grenville <pyxlcy@gmail.com>2013-03-30 12:27:27 +0800
commit3ad3ebae953c22ce4c3145431351a3192b2c70a4 (patch)
tree30084e6d2f4373ab0cff1a488d07f2083fcdd970 /dbus.c
parent47f7b4072200463557ff692d41bf621f6954604f (diff)
downloadtdebase-3ad3ebae953c22ce4c3145431351a3192b2c70a4.tar.gz
tdebase-3ad3ebae953c22ce4c3145431351a3192b2c70a4.zip
Feature #4: Default active window opacity
- Add default active window opacity (--active-opacity). (#4) - Add win_focusin and win_focusout D-Bus signals.
Diffstat (limited to 'dbus.c')
-rw-r--r--dbus.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/dbus.c b/dbus.c
index 48f847caf..5a1a3e344 100644
--- a/dbus.c
+++ b/dbus.c
@@ -1033,6 +1033,12 @@ cdbus_process_introspect(session_t *ps, DBusMessage *msg) {
" <signal name='win_unmapped'>\n"
" <arg name='wid' type='" CDBUS_TYPE_WINDOW_STR "'/>\n"
" </signal>\n"
+ " <signal name='win_focusin'>\n"
+ " <arg name='wid' type='" CDBUS_TYPE_WINDOW_STR "'/>\n"
+ " </signal>\n"
+ " <signal name='win_focusout'>\n"
+ " <arg name='wid' type='" CDBUS_TYPE_WINDOW_STR "'/>\n"
+ " </signal>\n"
" <method name='reset' />\n"
" </interface>\n"
"</node>\n";
@@ -1069,4 +1075,16 @@ cdbus_ev_win_unmapped(session_t *ps, win *w) {
if (ps->dbus_conn)
cdbus_signal_wid(ps, "win_unmapped", w->id);
}
+
+void
+cdbus_ev_win_focusout(session_t *ps, win *w) {
+ if (ps->dbus_conn)
+ cdbus_signal_wid(ps, "win_focusout", w->id);
+}
+
+void
+cdbus_ev_win_focusin(session_t *ps, win *w) {
+ if (ps->dbus_conn)
+ cdbus_signal_wid(ps, "win_focusin", w->id);
+}
//!@}