-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for XDG Shell on Wayland (#1190)
* Support for XDG Shell on Wayland Add support for XDG Shell on Wayland in addition to the classic Wayland shell and make XDG Shell the default choice when both are available. Change-Id: Ib5521c699275e23060c4e7ae05696ed8fc3f7221 * Add Wayland protocol dynamic loader generator Add Python script `generate_wayland.py` that generates source code from a Wayland XML protocol. This script has the same role as the `wayland-scanner` tool, except that the sources generated use the GFXReconstruct `WaylandLoader` instead of directly using `libwayland-client.so` symbols. The current state now is: - If the machine that compiles the code does not support Wayland (no `libwayland-client.so`) then the Wayland code is simply not compiled and the executable will not support Wayland (as done until now) - If the machine that compiles the code supports Wayland and the executable is ran on a machine that supports Wayland, then the `libwayland-client.so` of the client will be loaded using `dlopen` and the generated protocol sources will initialize protocol constants (interfaces). - If the machine that compiles the code supports Wayland but the executable is ran on a machine that does not support Wayland, then the WaylandLoader will remain uninitialized and thus not call the generated protocol sources and not attempt to initialize the protocol constants. This way, the binaries will be able no matter the state of the support of Wayland on the machine that runs them. Change-Id: I9b3878a71b74002859f4edda6d9a6fe180278a8f * Remove wayland-protocols as a submodule Changes requested by LunarG: Remove wayland-protocols submodule and download it from generate_wayland.py instead. Change-Id: I29932c82d0c4b847f94e47dd191e6fcb4406157a
- Loading branch information
1 parent
b9a9916
commit 75dc7dd
Showing
10 changed files
with
1,124 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ __pycache__/ | |
*.rdbg | ||
._* | ||
.DS_Store | ||
external/wayland-protocols/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.