1. 04 Feb, 2023 3 commits
  2. 28 Jan, 2023 6 commits
  3. 27 Jan, 2023 4 commits
  4. 25 Jan, 2023 6 commits
    • Matthias Clasen's avatar
      Merge branch 'wip/carlosg/startup-vs-focus-3-24' into 'gtk-3-24' · b6795f8f
      Matthias Clasen authored
      Consider startup vs focus requests for the Wayland platform [3.24]
      
      See merge request !5443
      b6795f8f
    • Carlos Garnacho's avatar
      gtkapplication: Do not call gdk_display_notify_startup_complete() · 79e11bed
      Carlos Garnacho authored
      This should do nothing worthwhile anymore, the X11/Wayland GtkApplication
      implementations do already pass the startup ID from the platform_data
      via windowing specific APIs, and the application handling the request
      via show()/present() should trigger the activation request.
      
      (cherry-picked from commit 3526d8b2)
      79e11bed
    • Carlos Garnacho's avatar
      gtkwindow: Shuffle gdk_window_set_startup_id() calls · 2a470386
      Carlos Garnacho authored
      While this used to be tangential to windows showing or requesting
      focus, the xdg-activation Wayland protocol does merge both concepts
      together.
      
      But also, for a correct interaction with the compositor, the
      toolkit should ideally merge the activation request resulting from
      both into the same one, so that the gdk_window_focus() request
      replies to the startup token that started the application and
      correct focus-stealing prevention/etc happens, instead making up
      one just in time for the focus request.
      
      This kind of requires doing things in the right order, a show()
      request on the GtkWindow should activate any pending activation
      token on the toplevel, a present() request should additionally
      create a new token if there was none pending. And
      xdg_activation_v1_activate() should happen once on both.
      
      Shuffle the gdk_window_set_startup_id() calls so that this
      happens in the right order for Wayland, while making X11 happy
      too.
      
      (cherry-picked from commit e8adfa2a)
      2a470386
    • Carlos Garnacho's avatar
      gdk/x11: Emit "remove" s-n message from gdk_toplevel_set_startup_id · 6ccd786a
      Carlos Garnacho authored
      In the way towards deprecating gdk_display_notify_startup_complete(),
      make gdk_toplevel_set_startup_id() on X11 perform this piece of messaging
      itself. It should be harmless that the message is emitted twice, if
      callers do still use that API.
      
      (cherry-picked from commit 7fab1b85)
      6ccd786a
    • Carlos Garnacho's avatar
      gdk/wayland: Perform xdg_activation on gdk_window_set_startup_id · f5a5480f
      Carlos Garnacho authored
      This call has everything to perform activation as specified by the
      xdg_activation protocol, notably a surface to activate as opposed to
      gdk_notify_startup_complete().
      
      Make activation happen here, so that the surface gets activated when
      its gets a startup ID assigned.
      
      (cherry-picked from commit 5aeabdb3)
      f5a5480f
    • Carlos Garnacho's avatar
      gtkwindow: Minor refactor · a0679385
      Carlos Garnacho authored
      Move the handling of the startup ID to a separate function, since
      this will be called from several places.
      
      (cherry-picked from commit 6f01f846)
      a0679385
  5. 22 Jan, 2023 1 commit
  6. 21 Jan, 2023 1 commit
  7. 19 Jan, 2023 2 commits
  8. 13 Jan, 2023 1 commit
  9. 11 Jan, 2023 1 commit
  10. 08 Jan, 2023 1 commit
  11. 07 Jan, 2023 1 commit
  12. 06 Jan, 2023 1 commit
  13. 05 Jan, 2023 2 commits
  14. 03 Jan, 2023 4 commits
  15. 27 Dec, 2022 1 commit
  16. 22 Dec, 2022 4 commits
  17. 20 Dec, 2022 1 commit