Julien Lebosquain
4 days ago
No known key found for this signature in database
GPG Key ID: 1833CAD10ACC46FD
1 changed files with
9 additions and
1 deletions
-
src/Avalonia.X11/X11WindowModes/DefaultWindowMode.cs
|
|
|
@ -31,6 +31,14 @@ partial class X11Window |
|
|
|
public override void Show(bool activate, bool isDialog) |
|
|
|
{ |
|
|
|
Window._wasMappedAtLeastOnce = true; |
|
|
|
|
|
|
|
if (!activate) |
|
|
|
{ |
|
|
|
var time = IntPtr.Zero; |
|
|
|
XChangeProperty(X11.Display, Handle, X11.Atoms._NET_WM_USER_TIME, X11.Atoms.CARDINAL, 32, |
|
|
|
PropertyMode.Replace, ref time, 1); |
|
|
|
} |
|
|
|
|
|
|
|
XMapWindow(X11.Display, Handle); |
|
|
|
XFlush(X11.Display); |
|
|
|
base.Show(activate, isDialog); |
|
|
|
@ -50,4 +58,4 @@ partial class X11Window |
|
|
|
(int)(point.X * Window.RenderScaling + (Window._position ?? default).X), |
|
|
|
(int)(point.Y * Window.RenderScaling + (Window._position ?? default).Y)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|