Gtk2: fixed compilation on non x11 targets. Patch by Giuliano Colla, issue

This commit is contained in:
Željan Rikalo 2024-03-29 11:59:56 +01:00
parent 7c6752e5d0
commit 00fb3bf31b

View File

@ -887,7 +887,11 @@ var
begin
if fLockTopLevelWindowResizeOnNativeCall < 0 then
begin
{$IFDEF HASX}
AWindowManager := GTK2WidgetSet.GetWindowManager;
{$ELSE}
AWindowManager := 'Nil';
{$ENDIF}
if (AWindowManager = 'fly-wm') or (AWindowManager = 'openbox') then
fLockTopLevelWindowResizeOnNativeCall := 1
else