fix not setting clipboard selection atoms

This commit is contained in:
Matthew 2025-11-30 16:40:26 +11:00
parent d690fa2dd6
commit cd98113a6a

View File

@ -730,6 +730,10 @@ CreateWindow(PlatformWindow* window, string name, u32 width, u32 height, XVisual
XSetWMProtocols(window.display, window.window, window.atoms.ptr, window.atoms.length); XSetWMProtocols(window.display, window.window, window.atoms.ptr, window.atoms.length);
window.selections[CBM.Clipboard].xmode = window.atoms[Atoms.Clipboard];
window.selections[CBM.Primary].xmode = XA_PRIMARY;
window.selections[CBM.Secondary].xmode = XA_SECONDARY;
XChangeProperty( XChangeProperty(
window.display, window.display,
window.window, window.window,