forked from drath/libratbag
ratbagd: drop the unused IsActive and IsDefault resolution signals
Obsolete, now that we're just updating the property. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Jente Hidskes
parent
d64af72f74
commit
01ca2a6de7
@@ -82,18 +82,9 @@ ratbagd_resolution_set_report_rate(sd_bus *bus,
|
||||
static int ratbagd_resolution_active_signal_cb(sd_bus *bus,
|
||||
struct ratbagd_resolution *resolution)
|
||||
{
|
||||
struct ratbag_resolution *lib_resolution = resolution->lib_resolution;
|
||||
|
||||
/* FIXME: we should cache is_active and only send the signal for
|
||||
* those resolutions where it changed */
|
||||
|
||||
(void) sd_bus_emit_signal(bus,
|
||||
resolution->path,
|
||||
RATBAGD_NAME_ROOT ".Resolution",
|
||||
"IsActive",
|
||||
"b",
|
||||
ratbag_resolution_is_active(lib_resolution));
|
||||
|
||||
(void) sd_bus_emit_properties_changed(bus,
|
||||
resolution->path,
|
||||
RATBAGD_NAME_ROOT ".Resolution",
|
||||
@@ -124,18 +115,9 @@ static int ratbagd_resolution_set_active(sd_bus_message *m,
|
||||
static int ratbagd_resolution_default_signal_cb(sd_bus *bus,
|
||||
struct ratbagd_resolution *resolution)
|
||||
{
|
||||
struct ratbag_resolution *lib_resolution = resolution->lib_resolution;
|
||||
|
||||
/* FIXME: we should cache is default and only send the signal for
|
||||
* those resolutions where it changed */
|
||||
|
||||
(void) sd_bus_emit_signal(bus,
|
||||
resolution->path,
|
||||
RATBAGD_NAME_ROOT ".Resolution",
|
||||
"IsDefault",
|
||||
"b",
|
||||
ratbag_resolution_is_default(lib_resolution));
|
||||
|
||||
(void) sd_bus_emit_properties_changed(bus,
|
||||
resolution->path,
|
||||
RATBAGD_NAME_ROOT ".Resolution",
|
||||
|
||||
Reference in New Issue
Block a user