Browse Source
Merge pull request #3876 from AvaloniaUI/x11-visibility-notify-expose
Trigger repaint on VisibilityNotify events
fixes/handle-invalid-dirty-rects
Benedikt Stebner
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
src/Avalonia.X11/X11Window.cs
|
|
|
@ -328,7 +328,9 @@ namespace Avalonia.X11 |
|
|
|
} |
|
|
|
else if (ev.type == XEventName.UnmapNotify) |
|
|
|
_mapped = false; |
|
|
|
else if (ev.type == XEventName.Expose) |
|
|
|
else if (ev.type == XEventName.Expose || |
|
|
|
(ev.type == XEventName.VisibilityNotify && |
|
|
|
ev.VisibilityEvent.state < 2)) |
|
|
|
{ |
|
|
|
if (!_triggeredExpose) |
|
|
|
{ |
|
|
|
|