fell,
@fell@ma.fellr.net avatar

Who the hell came up with the idea that the mouse cursor is drawn by the clients in Wayland? The cursor is so important, it should always be drawn by the compositor, always perfectly, and as close to vblank as physically possible.

~ me, struggling with cursor bugs after setting GTK_USE_PORTAL=1, like wtf

#linux #wayland #mouse #cursor #input

quodvideo,
@quodvideo@mstdn.social avatar

@fell I'm all for what they call client-side decorations, but I don't understand the cursor decision either.

fell,
@fell@ma.fellr.net avatar

@quodvideo Without knowing too much of the details, I think server side decorations should be default but client side should also be supported on request.

lhp,
@lhp@mastodon.social avatar

@fell client side cursors make sense if your application needs specialized cursors, like f.e. gimp or krita.

Also it is always drawn by the compositor, the client merely provides a texture.

lhp,
@lhp@mastodon.social avatar

@fell
There is also now a protocol extension to request cursor shapes so a client does not have to provide textures. You can argue that's how it should have been from the start, and I agree, but this is one of the parts of Wayland that were designed by the people who prefer to do things inside their toolkit.

FWIW the GNOME architecture makes sense if you look at it in isolation, it just doesn't work well for other desktops.

fell,
@fell@ma.fellr.net avatar

@lhp It sounds a lot more reasonable if the client only provides a texture. But yeah, system supplied cursors should have been a core part of the spec. What happens if the client doesn't provide a cursor image?

lhp,
@lhp@mastodon.social avatar

@fell Then the server just keeps the cursor that was loaded previously or falls back to the default one.

fell,
@fell@ma.fellr.net avatar

@lhp So there IS a default.

lhp,
@lhp@mastodon.social avatar

@fell There is a cursor shaoe called "default" which is usually an alias to the commonly expected pointer shape and most servers happen to use it as default.

Howevee sincebthe protocol does not specify format of cursors, this is more convention than law.

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