()
| 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 { |
no test coverage detected