switches: do not fire on no change in toggle
This commit is contained in:
parent
e8adae65fe
commit
162f235972
2 changed files with 9 additions and 2 deletions
|
|
@ -358,6 +358,8 @@ struct STouchDevice {
|
|||
struct SSwitchDevice {
|
||||
wlr_input_device* pWlrDevice = nullptr;
|
||||
|
||||
int status = -1; // uninitialized
|
||||
|
||||
DYNLISTENER(destroy);
|
||||
DYNLISTENER(toggle);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue