-
Notifications
You must be signed in to change notification settings - Fork 71
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
enable wayland support if run in a wayland session, closes #281 #373
base: master
Are you sure you want to change the base?
Conversation
Started test build 17817 |
Build 17817 successful
|
Started test build 17839 |
Build 17839 successful
|
Do we merge this? I am also having the same issue as #281. |
This should be definitely merged imo. |
Can this please be merged? :) |
@@ -14,6 +15,10 @@ if [ ! -f ${FIRST_RUN} ]; then | |||
touch ${FIRST_RUN} | |||
fi | |||
|
|||
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then | |||
WAYLAND_OPTS="--ozone-platform-hint=auto" | |||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The outer check isn't necessary -- --ozone-platform-hint=auto means "Check if XDG_SESSION_TYPE=wayland, if so, use wayland, otherwise use x11". (Meaning WAYLAND_OPTS isn't necessary and the argument could be passed unconditionally.)
What are the blockers for merging this? If there's a desire to have --ozone-platform-hint=auto" upstream in vscode, is there an upstream bug report tracking that? The problem that I see offhand is that with the preference "Title Bar Style" "native" - which I think is the default, the window appears without decorations under GNOME. "Title Bar Style: custom" works well. |
microsoft/vscode#124202 was closed because this supposedly was fixed upstream in electron (though without native GNOME-style decorations, it seems better to use the vscode custom style than a fallback). But it didn't work for me in testing - not sure why. |
@@ -12,6 +12,7 @@ finish-args: | |||
- --require-version=0.10.3 | |||
- --share=ipc | |||
- --socket=x11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This also should be fallback-x11
Because there are comments that were not addressed yet. |
Sure, it might not be fully working yet, but for some (including myself), it's already in a "good enough" state. Is it possible to add an option of some kind which enables Wayland, or is this technically infeasible? I'd rather have a bad window decoration over needing to use XWayland.
Definitely, otherwise, it's a nightmare to enable Wayland with this flatpak, and by extension, immutable distros. |
Could we rewrite this pr to make wayland default , the blurry windows of x11 on wayland make fedora look like a verry old computer ? |
for me i have to edit sudo vi /var/lib/flatpak/exports/share/applications/com.visualstudio.code.desktop add this after com.visualstudio.code --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations |
fix for #281