mirror of https://github.com/adamdruppe/arsd.git
64 bit fixes
This commit is contained in:
parent
90b3b083de
commit
20c3c49d66
|
@ -219,7 +219,7 @@ version(X11) {
|
||||||
selectionEvent.property,
|
selectionEvent.property,
|
||||||
event.target,
|
event.target,
|
||||||
8 /* bits */, 0 /* PropModeReplace */,
|
8 /* bits */, 0 /* PropModeReplace */,
|
||||||
text.ptr, text.length);
|
text.ptr, cast(int) text.length);
|
||||||
} else if(event.target == GetAtom!"UTF8_STRING"(display)) {
|
} else if(event.target == GetAtom!"UTF8_STRING"(display)) {
|
||||||
selectionEvent.property = event.property;
|
selectionEvent.property = event.property;
|
||||||
XChangeProperty (display,
|
XChangeProperty (display,
|
||||||
|
@ -227,7 +227,7 @@ version(X11) {
|
||||||
selectionEvent.property,
|
selectionEvent.property,
|
||||||
event.target,
|
event.target,
|
||||||
8 /* bits */, 0 /* PropModeReplace */,
|
8 /* bits */, 0 /* PropModeReplace */,
|
||||||
text.ptr, text.length);
|
text.ptr, cast(int) text.length);
|
||||||
} else {
|
} else {
|
||||||
selectionEvent.property = None; // I don't know how to handle this type...
|
selectionEvent.property = None; // I don't know how to handle this type...
|
||||||
}
|
}
|
||||||
|
@ -1444,7 +1444,7 @@ class SimpleWindow {
|
||||||
32 /* bits */,
|
32 /* bits */,
|
||||||
0 /*PropModeReplace*/,
|
0 /*PropModeReplace*/,
|
||||||
buffer.ptr,
|
buffer.ptr,
|
||||||
buffer.length);
|
cast(int) buffer.length);
|
||||||
|
|
||||||
// also setting a pixmap up for compatibility with older window managers
|
// also setting a pixmap up for compatibility with older window managers
|
||||||
// these do a pixmap and a mask
|
// these do a pixmap and a mask
|
||||||
|
@ -1493,7 +1493,7 @@ class SimpleWindow {
|
||||||
Pixmap.sizeof * 8 /* bits */,
|
Pixmap.sizeof * 8 /* bits */,
|
||||||
0 /*PropModeReplace*/,
|
0 /*PropModeReplace*/,
|
||||||
pixmapsHolder.ptr,
|
pixmapsHolder.ptr,
|
||||||
pixmapsHolder.length);
|
cast(int) pixmapsHolder.length);
|
||||||
|
|
||||||
if(oldOnes[0])
|
if(oldOnes[0])
|
||||||
XFreePixmap(XDisplayConnection.get, oldOnes[0]);
|
XFreePixmap(XDisplayConnection.get, oldOnes[0]);
|
||||||
|
|
Loading…
Reference in New Issue