Browse Source
Merge pull request #3712 from AvaloniaUI/x11-remove-transient-hint
[X11, FlyWM] Completely remove WM_TRANSIENT_FOR property
pull/3741/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
1 deletions
-
src/Avalonia.X11/X11Window.cs
|
|
|
@ -758,7 +758,15 @@ namespace Avalonia.X11 |
|
|
|
_transientParent = window; |
|
|
|
_transientParent?._transientChildren.Add(this); |
|
|
|
if (informServer) |
|
|
|
XSetTransientForHint(_x11.Display, _handle, _transientParent?._handle ?? IntPtr.Zero); |
|
|
|
SetTransientForHint(_transientParent?._handle); |
|
|
|
} |
|
|
|
|
|
|
|
void SetTransientForHint(IntPtr? parent) |
|
|
|
{ |
|
|
|
if (parent == null || parent == IntPtr.Zero) |
|
|
|
XDeleteProperty(_x11.Display, _handle, _x11.Atoms.XA_WM_TRANSIENT_FOR); |
|
|
|
else |
|
|
|
XSetTransientForHint(_x11.Display, _handle, parent.Value); |
|
|
|
} |
|
|
|
|
|
|
|
public void Show() |
|
|
|
|