mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 13:20:18 +02:00
(Qt): Workaround for mouse freezing under linux, in combination with TTabSheet.
git-svn-id: trunk@11681 -
This commit is contained in:
parent
ca9fa35962
commit
a8aec5de63
@ -3906,7 +3906,15 @@ begin
|
||||
if Result <> 0 then
|
||||
ReleaseCapture;
|
||||
if AHandle <> 0 then
|
||||
TQtWidget(AHandle).grabMouse();
|
||||
begin
|
||||
{TODO: freezing workaround, ttabsheet kills mouse at all (X & app),
|
||||
when we click onto empty tabsheet.
|
||||
don't know for others , so it's ifdef-ed}
|
||||
{$ifdef linux}
|
||||
if not (TQtWidget(AHandle).LCLObject is TTabSheet) then
|
||||
{$endif}
|
||||
TQtWidget(AHandle).grabMouse();
|
||||
end;
|
||||
{$ifdef VerboseQtWinAPI}
|
||||
WriteLn('[WinAPI SetCapture] Capture = ', Result, ' New capture = ', AHandle);
|
||||
{$endif}
|
||||
|
Loading…
Reference in New Issue
Block a user