switches: do not fire on no change in toggle

This commit is contained in:
vaxerski
2023-03-16 16:30:22 +00:00
parent e8adae65fe
commit 162f235972
2 changed files with 9 additions and 2 deletions

View File

@@ -358,6 +358,8 @@ struct STouchDevice {
struct SSwitchDevice {
wlr_input_device* pWlrDevice = nullptr;
int status = -1; // uninitialized
DYNLISTENER(destroy);
DYNLISTENER(toggle);