-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Wayland/EGL support #124
Draft
Schievel1
wants to merge
30
commits into
scottdraves:master
Choose a base branch
from
Schievel1:wayland_egl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
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
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
future me: make sure you have videos in ~/.electricsheep/content/mpeg. Sometimes it takes ages to download those Signed-off-by: Pascal Jäger <[email protected]>
server side or using libdecor adds --with-libdecor configure flag Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
disabled fullscreen for now Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
f3ff830
to
a360d3b
Compare
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Signed-off-by: Pascal Jäger <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds wayland support and rendering via EGL instead of GLX.
Adds configure flags —with-x11 and —with-wayland.
If built with both, it detects the environ variable WAYLAND_DISPLAY at Startup and if found it starts as a wayland surface. Otherwise it starts as X11 window and renders with GLX as before.
—with-x11 is set by default, switching it off only drops the dependency on Xrender (yet).
—with-wayland adds the configure flag —with-libdecor and a dependency on libxkbcommon. —with-libdecor adds a dependency on libdecor. Libdecor is used to draw client side decorations if the compositor doesn’t support server side decorations. Without libdecor electric sheep starts without window decorations if the compositor does not support server side decorations.
When running as a wayland client it is possible to direct the output to wlr_layer_shell and run electric sheep as an animated background. For this set environment variable ELECTRICSHEEP_BACKGROUND. (Maybe going to put this in config GUI or via startup flag)
Double click to toggle full screen (if compositor is ok with it). Otherwise it uses the same key binds like electric sheep on X11.
--with-wayland adds dependencies dev-libs/wayland, media-libs/libglvnd (needed for wayland/EGL output), x11-libs/libxkbcommon and build dependency dev-util/wayland-scanner
--with-libdecor adds dependency gui-libs/libdecor (needed for client side decorations)
Since freeglut has no functioning wayland build (see freeglut/freeglut#72, freeglut/freeglut#141), xwayland is still needed for Elecritsheep to function properly, even when completely on wayland. (Will show Unable to open display '' when display variable is not set, see freeglut/freeglut#51)