Skip to content

Commit

Permalink
Fix X11 Atoms lost all except the first one. (AvaloniaUI#16110)
Browse files Browse the repository at this point in the history
  • Loading branch information
walterlv committed Aug 1, 2024
1 parent ff13f06 commit 49368bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.X11/X11Window.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1380,7 +1380,7 @@ private void ChangeWMAtoms(bool enable, params IntPtr[] atoms)
var ptr = (IntPtr*)prop.ToPointer();
var newAtoms = new HashSet<IntPtr>();
for (var c = 0; c < nitems.ToInt64(); c++)
newAtoms.Add(*ptr);
newAtoms.Add(*(ptr+c));
XFree(prop);
foreach(var atom in atoms)
if (enable)
Expand Down

0 comments on commit 49368bb

Please sign in to comment.