mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Enable native Wayland support (Qt5, Lazarus >= 2.2.0)
(cherry picked from commit 178f2bf71b)
This commit is contained in:
parent
fdb07b3b5b
commit
0eb417d153
1 changed files with 3 additions and 1 deletions
|
|
@ -7,14 +7,16 @@ interface
|
|||
implementation
|
||||
|
||||
uses
|
||||
InitC, BaseUnix;
|
||||
InitC, BaseUnix, LCLVersion;
|
||||
|
||||
procedure _exit(status: cint); cdecl; external clib;
|
||||
function setenv(const name, value: pchar; overwrite: cint): cint; cdecl; external clib;
|
||||
|
||||
{$IF LCL_FULLVERSION < 2020000}
|
||||
initialization
|
||||
if (LowerCase(fpGetEnv(PAnsiChar('XDG_SESSION_TYPE'))) = 'wayland') then
|
||||
setenv('QT_QPA_PLATFORM', 'xcb', 1);
|
||||
{$ENDIF}
|
||||
|
||||
finalization
|
||||
// Workaround: https://doublecmd.sourceforge.io/mantisbt/view.php?id=2079
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue