mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-24 18:22:25 -05:00
Lil fix in ActivateClient
git-svn-id: http://www.villavu.com/repositories/merlijn/mufasa@17 3f818213-9676-44b0-a9b4-5e4c4e03d09d
This commit is contained in:
parent
babee3c3d2
commit
a6a7f0b247
@ -298,10 +298,12 @@ end;
|
|||||||
procedure TMWindow.ActivateClient;
|
procedure TMWindow.ActivateClient;
|
||||||
begin
|
begin
|
||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
SetForegroundWindow(Self.TargetHandle);
|
if TargetMode = w_Window then
|
||||||
|
SetForegroundWindow(Self.TargetHandle);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF LINUX}
|
{$IFDEF LINUX}
|
||||||
XSetInputFocus(Self.XDisplay,Self.CurWindow,RevertToParent,CurrentTime);
|
if TargetMode = w_XWindow then
|
||||||
|
XSetInputFocus(Self.XDisplay,Self.CurWindow,RevertToParent,CurrentTime);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user