Qt5, Qt6: better handling of modal windows for gtk based window managers (cinnamon, metacity, xfwm4).

This commit is contained in:
Željan Rikalo 2024-10-03 14:01:46 +02:00
parent 6e858619fd
commit ff4b8a53ac
2 changed files with 4 additions and 5 deletions

View File

@ -515,9 +515,8 @@ begin
{$endif}
{$ifdef HASX11}
if ((QtWidgetSet.WindowManagerName = 'kwin') and IsOldKDEInstallation) or
(QtWidgetSet.WindowManagerName = 'xfwm4') or
(QtWidgetSet.WindowManagerName = 'metacity') or IsWayland then
if ((QtWidgetSet.WindowManagerName <> 'plasma') and (QtWidgetSet.WindowManagerName <> 'kwin'))
or IsWayland then
begin
W := nil;
ActiveWin := GetActiveWindow;

View File

@ -512,8 +512,8 @@ begin
{$endif}
{$ifdef HASX11}
if (QtWidgetSet.WindowManagerName = 'xfwm4') or
(QtWidgetSet.WindowManagerName = 'metacity') or IsWayland then
if ((QtWidgetSet.WindowManagerName <> 'plasma') and (QtWidgetSet.WindowManagerName <> 'kwin'))
or IsWayland then
begin
W := nil;
ActiveWin := GetActiveWindow;