MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / hide_cursor

Function hide_cursor

native/linux/src/lib.rs:284–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282 }
283
284 pub fn hide_cursor() {
285 unsafe {
286 if DISPLAY.is_null() || X11_WINDOW == 0 || CURSOR_HIDDEN { return; }
287 let c = ensure_hidden_cursor();
288 x11::xlib::XDefineCursor(DISPLAY, X11_WINDOW, c);
289 x11::xlib::XFlush(DISPLAY);
290 CURSOR_HIDDEN = true;
291 }
292 }
293
294 pub fn show_cursor() {
295 unsafe {

Callers 1

enter_relative_modeFunction · 0.85

Calls 1

ensure_hidden_cursorFunction · 0.85

Tested by

no test coverage detected