Darkfllame / ZWL

Zig cross platform Windowing Library
MIT License
8 stars 0 forks source link

Linux Wayland support #1

Open leroycep opened 1 week ago

leroycep commented 1 week ago

Hello! I've been working on an SDL-like library for Zig (named seizer), but my main focus has been on Linux, specifically Wayland. Recently I split out the Wayland protocol handling into shimizu. I saw you link to this from the Zig issue tracker. Let me know if you have any questions about Wayland or if you want a help implementing a Wayland backend :slightly_smiling_face: .

Darkfllame commented 4 days ago

Sorry for answering this late, I don't check github that often ;D But basically, the biggest problem I currently have is that, my main dev platform is Windows (I do have dual boot with mint but it's pretty annoying considering I only have 60 gigs for it and zig caches tend to get big real fast) thus the fact that this is not my first concern. Second I really want linux support (since most devs actually use linux, i guess) but (as i said earlier) I have linux mint along windows via dual-boot, mint currently only supports X11 (well there is experimental wayland, but it doesn't seem to work on my machine). Thus if I had to do linux support, it would be with X11 at first (to target wide-support). Also, if you wish to contribute to this project, feel free to do so! Any help is good help. (Also I'd like this library to be totally written in zig, like, the compilation unit is only zig)

Anyway i'm probably gonna go through shimizu a bit, also if you don't mind, do you got any discord id so we can talk more casually about this ? Because if I do have a question, github is just not gonna cut it.

leroycep commented 4 days ago

the biggest problem I currently have is that, my main dev platform is Windows

If you're okay with installing/using WSL, you can actually run Wayland apps (and X11 apps, through XWayland) using WSLg

Thus if I had to do linux support, it would be with X11 at first

That's a reasonable take. I'm not interested in developing against X11, mostly because I use a Wayland compositor as my daily driver and I prefer applications that target Wayland. That is to say, I'm not planning on writing any X11 code if I can help it.

do you got any discord id

My discord handle is geemili. Feel free to reach out