-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1255 from shenlebantongying/force-wayland
feat: add GOLDENDICT_FORCE_WAYLAND to force wayland (and get things broken)
- Loading branch information
Showing
4 changed files
with
30 additions
and
4 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Environment variable `GOLDENDICT_FORCE_WAYLAND` can be used to force GD to run in Wayland mode, like `env GOLDENDICT_FORCE_WAYLAND=1 goldendict`. | ||
|
||
!!! danger "Don't use unless you know!" | ||
This flag only guarantees GD to run in wayland mode and won't crash, but nothing more. | ||
|
||
Enable this will break scan popup, global hotkeys and probably other things. | ||
|
||
## Current reality | ||
|
||
!!! note "Help wanted" | ||
Need help to redesign scan popup for wayland. | ||
|
||
Scan popup is implemented with `querying mouse cursor's position` and `setting a window's absolute global position`. | ||
Wayland does not support both by design and philosophy. | ||
|
||
Wayland does not support registering global hotkeys until very recently, but a reasonable wayland desktop environment should provide some way to bind keys to commands globally. |
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