Hacker News new | ask | show | jobs
by HansHamster 946 days ago
Usually, the UI toolkit (gtk, qt, ...) should take care of the X11/Wayland protocol details. But if the application is doing its own thing or at a lower level (and I guess Firefox qualifies) then that has to be adapted.
2 comments

Yes this is exactly the case here. Many applications get this for free because the gui toolkit provides the abstraction - both Qt and Gtk exist to do this for cross platform purposes.

However if you want things toolkits don't provide then you need to talk to the underlying API yourself.

My distro ships both plain Firefox and firefox-wayland. I've been using it for... At least a year. No noticeable difference to normal Firefox.

The big thing I notice with firefox wayland on nixos are cursor issues. It seems to have fewer cursors and sometimes uses obviously wrong ones (text selection cursor when it should be a pointer). So I'm still using it on xwayland
Can you link to the bug report? Thanks!
Firefox, pretty much all electron based apps, there are lots of applications that seem to interface directly with wayland.
Electron apps interface with Electron-the-platform (and have no direct knowledge of Wayland) so it doesn't seem to make much sense to single that out?
Single what out, all of them? ,'Electron-the-platform' does then, via which all 'Electron apps' (single thing or not) do, which is what GP's saying? It works this way for Electron-the-platform... And therefore every Electron app that uses it?
The point is that Electron-the-platform is playing a similar role to GTK or Qt: it talks to Wayland, and the application talks to it. Therefore the application is not interfacing directly with Wayland, and claiming that it is would be singling out Electron from the category of UI toolkits.

But it depends on your definition of “application”.

Yeah, I'm not sure how now, but I think I misread/misunderstood the comment I defended. Can't now read it any other way but as a claim that they typically don't use Electron for it and instead talk to X/Wayland directly. (I have no idea, but would have assumed Electron handled it sufficiently for the vast majority.)