diff options
author | Richard Grenville <pyxlcy@gmail.com> | 2013-03-10 18:45:54 +0800 |
---|---|---|
committer | Richard Grenville <pyxlcy@gmail.com> | 2013-03-10 18:45:54 +0800 |
commit | 07ed9901e7a6ff65a6baa2dcf95e206dc6970ca5 (patch) | |
tree | 375316b107a99443a3f8c6588492bb4b907015e6 /dbus.c | |
parent | dc4da095bb876c4ba2b77050b35883e59af944a6 (diff) | |
download | tdebase-07ed9901e7a6ff65a6baa2dcf95e206dc6970ca5.tar.gz tdebase-07ed9901e7a6ff65a6baa2dcf95e206dc6970ca5.zip |
Improvement: ARGB window matching & Enable track_focus with D-Bus
- Add predefined matching target "argb" to match ARGB windows.
- Make it possible to enable focus tracking on-the-fly with D-Bus
method.
Diffstat (limited to 'dbus.c')
-rw-r--r-- | dbus.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -953,6 +953,18 @@ cdbus_process_opts_set(session_t *ps, DBusMessage *msg) { goto cdbus_process_opts_set_success; } + // track_focus + if (!strcmp("track_focus", target)) { + dbus_bool_t val = FALSE; + if (!cdbus_msg_get_arg(msg, 1, DBUS_TYPE_BOOLEAN, &val)) + return false; + // You could enable this option, but never turn if off + if (val) { + opts_init_track_focus(ps); + } + goto cdbus_process_opts_set_success; + } + // vsync if (!strcmp("vsync", target)) { const char * val = NULL; |