Fabian Peter Hammerle преди 4 години
родител
ревизия
c99ec453bd
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      rescriptoon/_actions.py

+ 3 - 3
rescriptoon/_actions.py

@@ -74,10 +74,10 @@ class CenterClickAction(EngineAction):
             same_screen=xkeyevent.same_screen,
         )
         if isinstance(xkeyevent, Xlib.protocol.event.KeyPress):
-            e = Xlib.protocol.event.ButtonPress(**attr)
+            button_event = Xlib.protocol.event.ButtonPress(**attr)
         else:
-            e = Xlib.protocol.event.ButtonRelease(**attr)
-        engine_window.send_event(e)
+            button_event = Xlib.protocol.event.ButtonRelease(**attr)
+        engine_window.send_event(button_event)
 
 
 class SelectGagAction(CenterClickAction):