Skip to content
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

feat: Apply patches from yocto related to Brightsign functionality on top of 28-x-y-bs branch #47

Merged
merged 6 commits into from
Apr 30, 2024

Conversation

caneraltinbasak
Copy link

Description of Change

Apply the patches in yocto onto Electron repo. This saves us from maintaining two repos for custom functions we are adding.

Checklist

Caner Altinbasak added 6 commits April 29, 2024 11:10
dunfell has clang14. The following changes are required to build Electron
with clang14
If Electron is built using ozone, but not with X11 support, compilation
fails. HostDisplayClient conditionally compiles DidCompleteSwapWithNewSize
with OZONE_PLATFORM_X11 flag. Do the same for our override.
Electron introduces X11 dependencies in wayland ozone platform backend.
This is undesired behaviour.
This patch uses a the BrightSign SetZOrderLevel custom Weston extension
to enable setting an absolute z-order for a window.

Upstream-Status: Unsuitable
This change adds a call to SetOpacity for OZONE_PLATFORM_WAYLAND.

It requires patches to Chromium that are included in the BrightSign
Electron repo which contain the Chromium changes for supporting
SetOpacity in the ozone wayland code.

Upstream-Status: Unsuitable
Electron provides no implementation for SetIgnoreMouseEvents when using
Wayland. This patch provides uses the Chromium mouse lock functionality
to achieve a way of ignoring mouse events when using Wayland.
The change goes together with changes in our Electron App to listen to
the "focus" event and trigger a call to setIgnoreMouseEvents. This allows
us to workaround the issue of mouse lock being automatically disabled when
a BrowserWindow gains focus.
Using mouse lock for disabling mouse events works fine for our use case.
@t-bashir-bs t-bashir-bs self-requested a review April 30, 2024 09:36
@caneraltinbasak caneraltinbasak merged commit 703d152 into 28-x-y-bs Apr 30, 2024
2 checks passed
@caneraltinbasak caneraltinbasak deleted the cal/yocto-patches branch April 30, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants