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 238
    • Merge requests 238
  • 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
  • Issues
  • #5820
Closed
Open
Issue created May 08, 2023 by Lorenz Brun@lorenz

xdg_activation_v1 not working with popovers

Steps to reproduce

  1. Open GNOME Text Editor
  2. Open Nautilus
  3. Open a file in GNOME Text Editor via the context menu -> Open with Text Editor

Current behavior

GNOME Shell shows a "Text Editor is ready" notification

Expected outcome

Text Editor gets focus

Version information

  • GTK 4.10.1
  • GNOME Shell 44.0 with 44.0 applications
  • NixOS unstable

Additional information

I did some debugging and this is caused by GTK chosing not to pass a surface to the xdg_activation_v1 interface here.

Basically since the click is done in a popover, wl_surface is NULL (probably because gdk_wayland_device_get_focus returns NULL).

This causes Mutter to reject the activation here as it requires both seat and surface to be present to consider the activation safe to perform.

Tagging @carlosg as you did most of the implementation on both sides.

Assignee
Assign to
Time tracking