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:
zeljko 2016-03-09 13:03:42 +00:00
parent aef2f8d9ec
commit 7d3a022290

View File

@ -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;