Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gtk
gtk
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,142
    • Issues 1,142
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 151
    • Merge Requests 151
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Issues
  • #1395

Closed
Open
Created Oct 08, 2018 by Martin Stransky@stransky

[Wayland] mutter - focus out/in is sent to toplevel window when it's dragged and moved

When toplevel window is dragged and moved, it gets focus in/out events. That breaks Firefox appearance on Wayland:

https://bugzilla.mozilla.org/show_bug.cgi?id=1491808

and also causes issues with moving toplevel window under Wayland as it's marked as unfocused.

test-focus.c

There's a simple testcase which demonstrates different behavior of toplevel window on Wayland/Mutter, X11/Mutter and Weston. Run the testcase, drag the toplevel window and move it. X11/Mutter and Weston works fine but Wayland/Mutter is broken.

Weston and X11: $ GDK_BACKEND=x11 ./test-focus ********** Focus in event

Wayland/Mutter: $ ./test-focus ********** Focus in event ********** Focus in event ********** Focus out event ********** Focus in event

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None