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.
This commit is contained in:
12
src/dbus.c
12
src/dbus.c
@ -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;
|
||||
|
Reference in New Issue
Block a user