Ignore:
Timestamp:
Mar 24, 2006, 4:42:46 PM (14 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added forgotten X11 set/hide cursor (non-working code)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/driver_x11.c

    r684 r687  
    5454    XFontStruct *font_struct;
    5555    int font_offset;
     56    Cursor pointer;
    5657#if defined(HAVE_X11_XKBLIB_H)
    5758    Bool autorepeat;
     
    210211                                            DefaultScreen(kk->drv.p->dpy)));
    211212
     213
     214    kk->drv.p->pointer = None;
     215
    212216    return 0;
    213217}
     
    534538}
    535539
     540static void x11_show_cursor(caca_t *kk)
     541{
     542
     543}
     544
     545static void x11_hide_cursor(caca_t *kk)
     546{
     547    XFreeCursor( kk->drv.p->dpy, kk->drv.p->pointer );
     548    kk->drv.p->pointer = None;
     549    XUndefineCursor( kk->drv.p->dpy, kk->drv.p->window );
     550    XSync( kk->drv.p->dpy, False ); /* optional */
     551
     552}
     553
     554
    536555/*
    537556 * XXX: following functions are local
     
    565584    kk->drv.handle_resize = x11_handle_resize;
    566585    kk->drv.get_event = x11_get_event;
     586    kk->drv.show_cursor = x11_show_cursor;
     587    kk->drv.hide_cursor = x11_hide_cursor;
    567588
    568589    return 0;
Note: See TracChangeset for help on using the changeset viewer.