1. 09 Apr, 2018 1 commit
  2. 04 Apr, 2018 1 commit
    • Jan Alexander Steffens (heftig)'s avatar
      wayland: Fix setting geometry hints · 8e74e515
      Jan Alexander Steffens (heftig) authored
      The stable xdg_shell port (5c8bb51a) introduced an error in
      gdk_wayland_window_set_geometry_hints which would set the minimum size
      to the maximum size, if provided.
      
      This resulted in various wxWidgets apps (FileZilla, Audacity, Veracrypt)
      crashing because they attempted to allocate a ginormous surface.
      
      Fixes #157.
      8e74e515
  3. 19 Mar, 2018 1 commit
  4. 16 Mar, 2018 3 commits
  5. 13 Mar, 2018 1 commit
  6. 12 Mar, 2018 1 commit
  7. 08 Mar, 2018 1 commit
  8. 04 Mar, 2018 1 commit
    • Tomasz Miąsko's avatar
      Fix introspection for GdkEventTouchpadPinch and GdkEventTouchpadSwipe. · 5d258bf3
      Tomasz Miąsko authored
      When using type annotations, the ABI of type being annotated and a new
      type introduced from annotation should match.
      
      In case of enumerations, the most common ABI, and probably the only one
      currently used in practice with gtk, corresponds to -fno-short-enums
      compiler option. It uses int as the underlying type of enum, bumping it
      up to unsigned int, long int or unsigned long int, in that order, when
      necessary.
      
      Thus, when annotating a field of integer type with an enum type, it is
      never correct to annotate field smaller than int, because it changes the
      ABI from perspective on introspection.
      
      The gint8 phase field in GdkEventTouchpadSwipe and GdkEventTouchpadPinch
      structures have been previously annotated in such a way, and this change
      removes this annotation to restore ABI compatibility.
      
      Size of structures before (which does not match C):
      
      ```
      >>> Gdk.EventTouchpadPinch.__info__.get_size()
      104
      >>> Gdk.EventTouchpadSwipe.__info__.get_size()
      88
      ```
      
      Size of structures after (which does match C):
      
      ```
      >>> Gdk.EventTouchpadPinch.__info__.get_size()
      96
      >>> Gdk.EventTouchpadSwipe.__info__.get_size()
      80
      ```
      
      Fixes issue #57.
      5d258bf3
  9. 01 Mar, 2018 1 commit
  10. 27 Feb, 2018 1 commit
    • Christoph Reiter's avatar
      macos: Fix gdk_quartz_drag_context_get_dragging_info_libgtk_only symbol export · 5c0d242e
      Christoph Reiter authored
      The header got included without config.h being included first which resulted in the
      wrong _GDK_EXTERN macro being used. As a result some symbols weren't exported
      and starting a DnD action would crash in the linker.
      
      This patch adds config.h includes in all places where clang complained about
      _GDK_EXTERN redefinitions.
      
      See #32 for more info.
      5c0d242e
  11. 16 Feb, 2018 1 commit
  12. 14 Feb, 2018 2 commits
    • Carlos Garnacho's avatar
      gdk/wayland: Add GdkDisplay call to query available globals · 3146f29d
      Carlos Garnacho authored
      The internal known_globals hashtable is used to carry accounting for
      interfaces that depend on others (as ordering is not guaranteed), extend
      its usage so it also keeps track of unimplemented interfaces (here at
      least).
      
      The API call will then use this to allow querying the globals offered by
      the compositor, it will be useful to determine whether we can use
      text-input protocols or should fallback to other IMs.
      3146f29d
    • Daniel van Vugt's avatar
      Fix irregular gdk_frame_clock_get_frame_time · c6901a8b
      Daniel van Vugt authored
      This fixes stuttering in animations that rely on the regularity of
      gdk_frame_clock_get_frame_time.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=787665
      
      BEFORE
      gdkgears:
      58 FPS and visibly stuttering
      gnome-maps on a 59.95Hz monitor:
      "paint" g_get_monotonic_time +17278μs, gdk_frame_clock_get_frame_time +17278μs
      "paint" g_get_monotonic_time +17449μs, gdk_frame_clock_get_frame_time +17426μs
      "paint" g_get_monotonic_time +17620μs, gdk_frame_clock_get_frame_time +17600μs
      
      AFTER
      gdkgears:
      60 FPS and smoother
      gnome-maps on a 59.95Hz monitor:
      "paint" g_get_monotonic_time +18228μs, gdk_frame_clock_get_frame_time +16680μs
      "paint" g_get_monotonic_time +15010μs, gdk_frame_clock_get_frame_time +16680μs
      "paint" g_get_monotonic_time +17134μs, gdk_frame_clock_get_frame_time +16680μs
      c6901a8b
  13. 12 Feb, 2018 1 commit
  14. 11 Feb, 2018 4 commits
  15. 08 Feb, 2018 1 commit
  16. 30 Jan, 2018 1 commit
  17. 13 Jan, 2018 1 commit
  18. 09 Jan, 2018 1 commit
  19. 07 Jan, 2018 1 commit
  20. 26 Dec, 2017 1 commit
  21. 17 Dec, 2017 1 commit
  22. 15 Dec, 2017 1 commit
  23. 14 Dec, 2017 1 commit
  24. 08 Dec, 2017 2 commits
  25. 03 Dec, 2017 1 commit
  26. 30 Nov, 2017 6 commits
  27. 29 Nov, 2017 2 commits