mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
fix linux build error in onWayland caused by declaration after label (#4446)
* fix linux build error in onWayland caused by declaration after label * update changelog --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
parent
91d5da6124
commit
ce7b1fc62b
2 changed files with 12 additions and 7 deletions
|
|
@ -76,15 +76,17 @@ static gboolean onWayland()
|
|||
switch (wmIsWayland)
|
||||
{
|
||||
case -1:
|
||||
char *gdkBackend = getenv("XDG_SESSION_TYPE");
|
||||
if(gdkBackend != NULL && strcmp(gdkBackend, "wayland") == 0)
|
||||
{
|
||||
wmIsWayland = 1;
|
||||
return TRUE;
|
||||
char *gdkBackend = getenv("XDG_SESSION_TYPE");
|
||||
if(gdkBackend != NULL && strcmp(gdkBackend, "wayland") == 0)
|
||||
{
|
||||
wmIsWayland = 1;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
wmIsWayland = 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
wmIsWayland = 0;
|
||||
return FALSE;
|
||||
case 1:
|
||||
return TRUE;
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Added `ContentProtection` option to allow hiding the application window from screen sharing software [#4241](https://github.com/wailsapp/wails/pull/4241) by [@Taiterbase](https://github.com/Taiterbase)
|
||||
- Added `build:tags` to project specification for automatically adding compilation tags by @symball in [PR](https://github.com/wailsapp/wails/pull/4439)
|
||||
|
||||
### Fixed
|
||||
- Fixed C compilation error in onWayland on Linux due to declaration after label [#4446](https://github.com/wailsapp/wails/pull/4446) by [@jaesung9507](https://github.com/jaesung9507)
|
||||
|
||||
## v2.10.2 - 2025-07-06
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue