Comments (6)
- Let's use
X11x11 as the name - Looks like GTK3 builds statically with both Wayland and X11 by default, based on https://github.com/GNOME/gtk/blob/7213bf5b09dfd9d9daf5c30a257a8792e4c66421/meson.build. This seems like something we'd want given that some DEs allow the user to switch between X and Wayland (I think Gnome still does this?). This is a fairly small package, so I don't think size will be a huge issue if we build with both.
We can just check at runtime whether (1) wayland dependencies are available to dynamically link with and (2) whether a wayland server is present and fall back to X if either of those fail
from jwm.
I'd love to spearhead this if this is still desired!
from jwm.
It is! It would be awesome. Let me know what you need to get started
from jwm.
Sure! Just wondering how we should set this up in the repository - I'm thinking:
- Rename
linux
toxorg
- Create new
wayland
folder with same structure - In CMake build, if on Linux, identify Wayland by determining whether the current session is Wayland (https://stackoverflow.com/questions/45135228/effective-way-of-detecting-x11-vs-wayland-preferrably-with-cmake), then finding dependency paths (https://github.com/LunarG/VulkanSamples/blob/master/cmake/FindWayland.cmake); fall back to Linux if we don't find them.
Does this sound reasonable?
from jwm.
should it be xorg or x11? I think we use x11 sometimes in the code base, do you think it should be changed? or better stick with x11, as we already have it?
re: CMake, the question I’m more interested in is, should we build two different runtime libraries or a single one? If two, would we be able to determine at runtime which one to load?
Also, not sure if we need separate build for cmake, since it’s only for build machine. We could require both X11 and Wayland dev dependencies to exist at the same time. Up to you on this one
from jwm.
Sounds like a plan!
from jwm.
Related Issues (20)
- GraalVM native-image on arm macOS HOT 3
- Add x/y to EventMouseScroll HOT 7
- Overridden close closes before checking if already closed HOT 1
- macOS: implement RESIZE_NESW and RESIZE_NWSE cursors HOT 2
- X11: Scrolling amount should be divided by increment HOT 1
- linux using jwm WindowX11._nMake() verror HOT 2
- X11: EventMouseScroll and EventMouseButton report incorrect cursor position HOT 1
- X11: Scroll not reported while some other mouse button is held down HOT 2
- Detect display’s color space
- Menu bar HOT 1
- macOS: trackpad touch events HOT 5
- macOS: Pointer Lock API HOT 2
- 0.4.11 crashes on macOS whenever finger moves on touchpad. HOT 4
- Question: Why was GLFW not used as the base underlying API? HOT 7
- BUG (Mac): Enabling "on top" in examples app hides window in Mission Control HOT 3
- Release candidate? HOT 3
- Pen input HOT 2
- Grab mouse cursor HOT 1
- Ninja fatal error LNK1112: module machine type 'x86' HOT 1
- macOS: Missing clicks with Tap to Click enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwm.