Record test-window pointer position to diagnose official coordinate mapping

This commit is contained in:
VallierDev committed 2026-10-15 02:10:59 +08:00
1 parent 4c2cd143f4
commit 06946568b7
1 file changed
+1
+1
View File
@@ -34,6 +34,7 @@ def activate(app):
state['button_presses']+=1
state['last_button']=gesture.get_current_button()
state['last_modifiers']=int(gesture.get_current_event_state())
state['last_position']=[round(x,1),round(y,1)]
widget=window.pick(x,y,Gtk.PickFlags.DEFAULT)
state['last_target']='other'
while widget: