Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
2.22k stars 116 forks source link

[help] detect mouse motion #521

Closed wathhr closed 1 month ago

wathhr commented 3 months ago

I am trying to add a mouse move listener using the EventControllerMotion class from types/@girs/gtk-3.0/gtk-3.0.cjs (specifically to a notification widget for the ability to drag it off screen)

unfortunately I haven't found any way to do this as I am unable to add a controller to any kind of widget and there's no other event that can do this as far as I can tell

Aylur commented 1 month ago

You can implement dragging with Gtk.GestureDrag