clipboard: fix notice in vlib/clipboard/x11/clipboard.c.v

This commit is contained in:
Delyan Angelov 2023-12-18 11:34:33 +02:00
parent cfd19bfe77
commit 050344ae7b
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -178,7 +178,7 @@ fn new_x11_clipboard(selection AtomType) &Clipboard {
if display == C.NULL { if display == C.NULL {
println('ERROR: No X Server running. Clipboard cannot be used.') println('ERROR: No X Server running. Clipboard cannot be used.')
return &Clipboard{ return &Clipboard{
display: 0 display: unsafe { nil }
mutex: sync.new_mutex() mutex: sync.new_mutex()
} }
} }