mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 05:50:26 +01:00
tools: per-slot-delta: init the slots with the right index
The index is unused, but useful during debugging Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
4e03175307
commit
61296feaee
1 changed files with 4 additions and 2 deletions
|
|
@ -81,7 +81,6 @@ class SlotState:
|
|||
|
||||
|
||||
class Slot:
|
||||
index = 0
|
||||
state = SlotState.NONE
|
||||
x = 0
|
||||
y = 0
|
||||
|
|
@ -90,6 +89,9 @@ class Slot:
|
|||
used = False
|
||||
dirty = False
|
||||
|
||||
def __init__(self, index):
|
||||
self.index = index
|
||||
|
||||
|
||||
class InputEvent:
|
||||
def __init__(self, data):
|
||||
|
|
@ -130,7 +132,7 @@ def main(argv):
|
|||
if args.use_st:
|
||||
nslots = 1
|
||||
|
||||
slots = [Slot() for _ in range(0, nslots)]
|
||||
slots = [Slot(i) for i in range(0, nslots)]
|
||||
|
||||
marker_begin_slot = " ++++++ | " # noqa
|
||||
marker_end_slot = " ------ | " # noqa
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue