mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
Qt, Qt5: set correct timestamp when using X11Raise(), some wm's complains about it.
git-svn-id: trunk@54777 -
This commit is contained in:
parent
3e3a8fdf8b
commit
0d66c24a77
@ -344,7 +344,7 @@ uses
|
||||
// uncomment only those units with implementation
|
||||
////////////////////////////////////////////////////
|
||||
{$IFDEF HASX11}
|
||||
XAtom, X, XLib, XKB, xkblib,
|
||||
XAtom, X, XLib, XKB, xkblib, dateutils,
|
||||
{$ENDIF}
|
||||
QtCaret,
|
||||
QtThemes,
|
||||
|
@ -120,7 +120,7 @@ begin
|
||||
XClient.message_type := WMATom;
|
||||
XClient.format := 32;
|
||||
XClient.data.l[0] := 1;
|
||||
XClient.data.l[1] := CurrentTime; // _NET_WM_USER_TIME
|
||||
XClient.data.l[1] := DateTimeToUnix(Now()); // _NET_WM_USER_TIME
|
||||
XClient.data.l[2] := 0;
|
||||
Result := XSendEvent(Display, RootWin, False,
|
||||
SubstructureRedirectMask or SubstructureNotifyMask,
|
||||
|
@ -345,7 +345,7 @@ uses
|
||||
// uncomment only those units with implementation
|
||||
////////////////////////////////////////////////////
|
||||
{$IFDEF HASX11}
|
||||
XAtom, X, XLib, XKB, xkblib,
|
||||
XAtom, X, XLib, XKB, xkblib, dateutils,
|
||||
{$ENDIF}
|
||||
QtCaret,
|
||||
QtThemes,
|
||||
|
@ -135,7 +135,7 @@ begin
|
||||
XClient.message_type := WMATom;
|
||||
XClient.format := 32;
|
||||
XClient.data.l[0] := 1;
|
||||
XClient.data.l[1] := CurrentTime; // _NET_WM_USER_TIME
|
||||
XClient.data.l[1] := DateTimeToUnix(Now()); // _NET_WM_USER_TIME
|
||||
XClient.data.l[2] := 0;
|
||||
Result := XSendEvent(Display, RootWin, False,
|
||||
SubstructureRedirectMask or SubstructureNotifyMask,
|
||||
|
Loading…
Reference in New Issue
Block a user