1. 29 Jan, 2021 1 commit
    • Alexander Mikhaylenko's avatar
      dragsource: Use double coordinates for checking drag threshold · f63e6394
      Alexander Mikhaylenko authored
      If multiple nested widgets have drag sources on them, both using bubble
      phase, we need to reliably pick the inner one. Both of them will try to
      start dragging, and we need to make sure there are no situations where the
      outer widget starts drag earlier and cancels the inner one.
      
      Currently, this can easily happen via integer rounding: start and current
      coordinates passed into gtk_drag_check_threshold() are initially doubles
      (other than in GtkNotebook and GtkIconView), and are casted to ints. Then
      those rounded values are used to calculate deltas to compare to the drag
      threshold, losing quite a lot of precision along the way, and often
      resulting in the outer widget getting larger deltas.
      
      To avoid it, just don't round it. Introduce a variant of the function that
      operates on doubles: gtk_drag_check_threshold_double() and use it instead
      of the original everywhere.
      f63e6394
  2. 21 Dec, 2020 1 commit
  3. 24 Nov, 2020 1 commit
  4. 14 Oct, 2020 1 commit
  5. 30 Jul, 2020 1 commit
  6. 24 Jul, 2020 2 commits
  7. 22 May, 2020 1 commit
  8. 17 May, 2020 1 commit
  9. 14 May, 2020 1 commit
  10. 11 May, 2020 1 commit
  11. 02 Mar, 2020 2 commits
  12. 21 Feb, 2020 2 commits
    • Matthias Clasen's avatar
      events: reorganize getters · b1eaa502
      Matthias Clasen authored
      Restructure the getters for event fields to
      be more targeted at particular event types.
      
      Update all callers, and replace all direct
      event struct access with getters.
      
      As a side-effect, this drops some unused getters.
      b1eaa502
    • Matthias Clasen's avatar
      Strip const from GdkEvent · 31bf9da6
      Matthias Clasen authored
      Events are refcounted structs, and we generally don't
      pass these as const.
      31bf9da6
  13. 04 Feb, 2020 2 commits
  14. 30 Jan, 2020 1 commit
  15. 29 Jan, 2020 1 commit
  16. 12 Jan, 2020 1 commit
  17. 08 Jan, 2020 20 commits