September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
|
|
@ -1,15 +1,13 @@
|
|||
use NativeCall;
|
||||
|
||||
constant libX11 = '/usr/lib/x86_64-linux-gnu/libX11.so.6';
|
||||
|
||||
sub XOpenDisplay(Str $s --> int32) is native(libX11) {*}
|
||||
sub XCloseDisplay(int32 $i --> int32) is native(libX11) {*}
|
||||
sub XOpenDisplay(Str $s --> int64) is native('X11') {*}
|
||||
sub XCloseDisplay(int64 $i --> int32) is native('X11') {*}
|
||||
|
||||
if try my $d = XOpenDisplay ":0.0" {
|
||||
say "ID = $d";
|
||||
XCloseDisplay($d);
|
||||
}
|
||||
else {
|
||||
say "No library {libX11}!";
|
||||
say "No X11 library!";
|
||||
say "Use this window instead --> ⬜";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue