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,9 +298,11 @@ end;
|
|||||||
procedure TMWindow.ActivateClient;
|
procedure TMWindow.ActivateClient;
|
||||||
begin
|
begin
|
||||||
{$IFDEF MSWINDOWS}
|
{$IFDEF MSWINDOWS}
|
||||||
|
if TargetMode = w_Window then
|
||||||
SetForegroundWindow(Self.TargetHandle);
|
SetForegroundWindow(Self.TargetHandle);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF LINUX}
|
{$IFDEF LINUX}
|
||||||
|
if TargetMode = w_XWindow then
|
||||||
XSetInputFocus(Self.XDisplay,Self.CurWindow,RevertToParent,CurrentTime);
|
XSetInputFocus(Self.XDisplay,Self.CurWindow,RevertToParent,CurrentTime);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user