Skip to content
  • Christian Hergert's avatar
    eventcontrollermotion: translate event to widget coordinates · ebcb0ea2
    Christian Hergert authored
    When creating the motion controller, we know the widget that is of interest
    based on gtk_event_controller_motion_new(). However, not all incoming
    events are guaranteed to be of the GdkWindow associated to that widget.
    They may also be for a descendant. Therefore, it is useful to translate
    those coordinates into the target widget coordinate space as that is
    likely what they care about.
    ebcb0ea2