change pointer type to plattform specific type as the cast is otherwi… (#212)

* change pointer type to plattform specific type as the cast is otherwise broken on ARM (and maybe other) platform.

* shrink the line changed in previous commit to make linter happy

Co-authored-by: Peter Hasse <peter.hasse@fokus.fraunhofer.de>
This commit is contained in:
derpeter 2020-09-03 18:16:07 +02:00 committed by GitHub
parent 15bce84a4e
commit 65e5be1dcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -420,8 +420,11 @@ impl Window {
} }
if opts.borderless { if opts.borderless {
let hints_property = let hints_property = (d.lib.XInternAtom)(
(d.lib.XInternAtom)(d.display, "_MOTIF_WM_HINTS\0" as *const _ as *const i8, 0); d.display,
"_MOTIF_WM_HINTS\0" as *const _ as *const c_char,
0,
);
assert!(hints_property != 0); assert!(hints_property != 0);
let mut hints: MwmHints = std::mem::zeroed(); let mut hints: MwmHints = std::mem::zeroed();
hints.flags = 2; hints.flags = 2;