danfragoso / thdwb

🌭 The hotdog web browser and browser engine 🌭
MIT License
1.13k stars 58 forks source link

support wayland windowing system on linux #46

Open neurlang opened 9 months ago

neurlang commented 9 months ago

I've forked the browser and added support for the modern wayland linux-based windowing system. It now ships as the go-wayland-browser demo of my wayland repository.

What works:

What doesn't work yet:

Differences:

The changes are confined to the mustard package. The changes to the browser package are minimal.

neurlang commented 9 months ago

Screenshot from 2024-02-10 15-33-24

neurlang commented 9 months ago

fixed colors, fixed popup menu (overlays) to appear (in the wrong corner for now)

what doesn't work:

Screenshot from 2024-02-11 14-41-29

neurlang commented 9 months ago

what works:

Screenshot from 2024-02-11 20-35-27

danfragoso commented 9 months ago

Thank you for doing this @neurlang! I really appreciate you taking the time to do it, I'll update the repo to mention that this fork is available for Wayland, if you want to, we can work together on merging it to repo

neurlang commented 8 months ago

Yeah, definitely it can be merged (when mature). My fork of the mustard package can be added to your mustard package to be activated the build tag wayland. We did this in the past in the vulkan repo and it worked.

This means that anyone will be able to compile the browser with the wayland mustard using:

go build -tags wayland

Whereas the old glfw mustard will still work like this:

go build