mirror of https://github.com/adamdruppe/arsd.git
stuff
This commit is contained in:
parent
ba0894a453
commit
ff2700b1a0
|
@ -4413,7 +4413,7 @@ version(X11) {
|
||||||
Display* display;
|
Display* display;
|
||||||
|
|
||||||
Pixmap buffer;
|
Pixmap buffer;
|
||||||
XIC xic; // input context
|
XIC xic; // input context
|
||||||
|
|
||||||
void delegate(XEvent) setSelectionHandler;
|
void delegate(XEvent) setSelectionHandler;
|
||||||
void delegate(in char[]) getSelectionHandler;
|
void delegate(in char[]) getSelectionHandler;
|
||||||
|
@ -4480,19 +4480,19 @@ version(X11) {
|
||||||
XSetForeground(display, gc, BlackPixel(display, screen));
|
XSetForeground(display, gc, BlackPixel(display, screen));
|
||||||
}
|
}
|
||||||
|
|
||||||
// input context
|
// input context
|
||||||
//TODO: create this only for top-level windows, and reuse that?
|
//TODO: create this only for top-level windows, and reuse that?
|
||||||
if (XDisplayConnection.xim !is null) {
|
if (XDisplayConnection.xim !is null) {
|
||||||
xic = XCreateIC(XDisplayConnection.xim,
|
xic = XCreateIC(XDisplayConnection.xim,
|
||||||
/*XNInputStyle*/"inputStyle".ptr, XIMPreeditNothing|XIMStatusNothing,
|
/*XNInputStyle*/"inputStyle".ptr, XIMPreeditNothing|XIMStatusNothing,
|
||||||
/*XNClientWindow*/"clientWindow".ptr, window,
|
/*XNClientWindow*/"clientWindow".ptr, window,
|
||||||
/*XNFocusWindow*/"focusWindow".ptr, window,
|
/*XNFocusWindow*/"focusWindow".ptr, window,
|
||||||
null);
|
null);
|
||||||
if (xic is null) {
|
if (xic is null) {
|
||||||
import core.stdc.stdio : stderr, fprintf;
|
import core.stdc.stdio : stderr, fprintf;
|
||||||
fprintf(stderr, "XCreateIC failed for window %u\n", cast(uint)window);
|
fprintf(stderr, "XCreateIC failed for window %u\n", cast(uint)window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setTitle(title);
|
setTitle(title);
|
||||||
SimpleWindow.nativeMapping[window] = this;
|
SimpleWindow.nativeMapping[window] = this;
|
||||||
|
|
Loading…
Reference in New Issue