Here comes he RunT!
This commit is contained in:
@ -145,6 +145,16 @@ void kinc_x11_window_hide(int window_index) {
|
||||
xlib.XUnmapWindow(x11_ctx.display, window->window);
|
||||
}
|
||||
|
||||
void kinc_x11_window_set_foreground(int window_index) {
|
||||
struct kinc_x11_window *window = &x11_ctx.windows[window_index];
|
||||
if (window->window == None) {
|
||||
return;
|
||||
}
|
||||
xlib.XRaiseWindow(x11_ctx.display, window->window);
|
||||
xlib.XSetInputFocus(x11_ctx.display, window->window, RevertToParent, CurrentTime);
|
||||
xlib.XFlush(x11_ctx.display);
|
||||
}
|
||||
|
||||
kinc_window_mode_t kinc_x11_window_get_mode(int window_index) {
|
||||
return x11_ctx.windows[window_index].mode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user