Qt: small fix for KWin on KDE 5 plasma.

git-svn-id: trunk@51885 -
This commit is contained in:
zeljko 2016-03-09 15:02:12 +00:00
parent 75b1694ce7
commit d65ac7c3af

View File

@ -4030,8 +4030,7 @@ begin
X11Pos.x -= FFrameMargins.Left;
X11Pos.y -= FFrameMargins.Top;
end;
if (X11Pos.x = LCLObject.Left) and (X11Pos.y = LCLObject.Top) and
if ((GetKdeSessionVersion = 5) or ((X11Pos.x = LCLObject.Left) and (X11Pos.y = LCLObject.Top))) and
((QWidget_x(Widget) <> X11Pos.x) or (QWidget_y(Widget) <> X11Pos.y)) then
begin
{$IF DEFINED(DEBUGQTUSEACCURATEFRAME) OR DEFINED(DEBUGQTCHECKMOVESIZE)}