summaryrefslogtreecommitdiffstats
path: root/dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbus.c')
-rw-r--r--dbus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/dbus.c b/dbus.c
index 299c5ac0b..1d20a061a 100644
--- a/dbus.c
+++ b/dbus.c
@@ -722,7 +722,11 @@ cdbus_process_win_get(session_t *ps, DBusMessage *msg) {
cdbus_m_win_get_do(window_type, cdbus_reply_enum);
cdbus_m_win_get_do(wmwin, cdbus_reply_bool);
cdbus_m_win_get_do(leader, cdbus_reply_wid);
- cdbus_m_win_get_do(focused_real, cdbus_reply_bool);
+ // focused_real
+ if (!strcmp("focused_real", target)) {
+ cdbus_reply_bool(ps, msg, win_is_focused_real(ps, w));
+ return true;
+ }
cdbus_m_win_get_do(fade_force, cdbus_reply_enum);
cdbus_m_win_get_do(shadow_force, cdbus_reply_enum);
cdbus_m_win_get_do(focused_force, cdbus_reply_enum);