Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 1.6k
    • Issues 1.6k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 239
    • Merge requests 239
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • gtkgtk
  • Merge requests
  • !3883

Startup tracking with xdg-activation

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Guido Günther requested to merge guidog/gtk:startup-vs-xdg-activation into main Aug 25, 2021
  • Overview 29
  • Commits 5
  • Pipelines 5
  • Changes 6

When a GTK4 app starts it ends up emitting it's startup id via gtk_shell1_set_startup_id for wayland (when xdg-activation is unavailable) and similar for x11 based apps via "startup notificication protocol" but this currently does not happen for me when xdg-activation is being used.

From what i figured this is because gtk_window_present_with_time() doesn't end up calling gdk_toplevel_focus() and hence xdg_activation_v1_activate is not being called. If that is adjusted one needs to keep the startup_notification_id around a bit long and things start to work.

I'm marking this as RFC since I'm less than sure if this is the right way to approach it but with this applied, gtk4 apps do report their startup so compositors handling xdg-activation can track it. Otherwise they just see (depending on protocol) a token request but never an activation.

Edited Nov 11, 2021 by Guido Günther
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: startup-vs-xdg-activation