mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 19:52:26 +02:00
Qt: fixed weird behaviour when we are running under KDE 5 Plasma and KWin compositor.
git-svn-id: trunk@51880 -
This commit is contained in:
parent
aef2f8d9ec
commit
7d3a022290
@ -7470,7 +7470,14 @@ begin
|
||||
DebugLn(' Attributes ',Format('x %d y %d w %d h %d border %d x11wob x %d y %d',[ALeft, ATop, AWidth, AHeight, ABorder,R.Left, R.Top]));
|
||||
{$ENDIF}
|
||||
FFormHasInvalidPosition := True;
|
||||
QWidget_move(Widget, R.Left, R.Top);
|
||||
// KWin under KDE5 makes problem sometimes since
|
||||
// Qt and X11 values are totally unsynced
|
||||
if QX11Info_isCompositingManagerRunning and (GetKdeSessionVersion = 5) then
|
||||
{$IF DEFINED(DEBUGQTUSEACCURATEFRAME) OR DEFINED(DEBUGQTCHECKMOVESIZE)}
|
||||
DebugLn(Format('**** DO NOT TOUCH QT POSITION UNDER KWin AND KDE v.%d, but we are trying coords x %d y %d',[GetKdeSessionVersion, R.Left, R.Top]))
|
||||
{$ENDIF}
|
||||
else
|
||||
QWidget_move(Widget, R.Left, R.Top);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user