jsparber,
@jsparber@mastodon.social avatar

I have been looking into the focus stealing prevention mechanism in GNOME Shell/Mutter. Now i gonna use it in strict mode (instead of smart) and see how many more "<Application> is ready" notifications i get.

In really really simple terms, this means that the app starting the new app didn't hand over focus to the new application and therefore the focus stealing prevention mechanism kicks in. Unfortunately it's not that simple to implement it.

matzipan,
@matzipan@hachyderm.io avatar

@jsparber is there a way to use it in "non strict mode"?

jsparber,
@jsparber@mastodon.social avatar

@matzipan yes that's the default behavior. It's called "smart"

jsparber,
@jsparber@mastodon.social avatar

@matzipan IMO a major problem with the current focus stealing prevention mechanism is that the default behavior tries to be smart and not prevent all focus "stealing" so for app developer it's really hard to understand why sometimes the notification "<Application> is ready" is shown and sometimes it just works.

sonny,
@sonny@floss.social avatar

@jsparber @matzipan AFAIK it's also not really documented anywhere. I wonder if we should have an entry on developer.gnome.org

jsparber,
@jsparber@mastodon.social avatar

@sonny @matzipan Actually GTK apps should just work (but doesn't always, which i didn't notice in "
smart" mode)

But other toolkits/Shells need to implement https://wayland.app/protocols/xdg-activation-v1 and use it.

sonny,
@sonny@floss.social avatar

@jsparber @matzipan it's better now but I encountered issues while working on apps which I couldn't explain. Certain APIs would misbehave. Don't know if it is still a problem.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • ngwrru68w68
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • tacticalgear
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • ethstaker
  • JUstTest
  • GTA5RPClips
  • modclub
  • tester
  • Leos
  • osvaldo12
  • cisconetworking
  • everett
  • cubers
  • normalnudes
  • anitta
  • megavids
  • provamag3
  • lostlight
  • All magazines