1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-06 08:24:44 +00:00
Files
Interlisp.maiko/inc/xcursordefs.h
Nick Briggs ef6a6554ac Remove SIGPOLL usage (#385)
* Remove unnecessary calls to XLOCK/XUNLOCK

The X methods called by flush_display_region() and flush_display_lineregion() handle the
locking/unlocking, therefore it is unnecessary to invoke the locking here.

* Remove explict signals when doing XUNLOCK()

Call getXsignaldata() directly if a signal happened while X code
was locked, instead of generating a signal and then handling it.

Some macros and functions needed to pass the DspInterface instead of
extracting the X display and window and passing those so that the
correct structure was available for the XUNLOCK() call.
2021-06-27 19:02:02 -07:00

12 lines
450 B
C

#ifndef XCURSORDEFS_H
#define XCURSORDEFS_H 1
#include <X11/X.h> /* for Cursor, Window */
#include <X11/Xlib.h> /* for Display */
#include <stdint.h> /* for uint8_t */
#include "devif.h" /* for DspInterface */
void Init_XCursor(void);
void Set_XCursor(int x, int y);
void init_Xcursor(DspInterface dsp);
void set_Xcursor(DspInterface dsp, const uint8_t *bitmap, int hotspot_x, int hotspot_y, Cursor *return_cursor, int from_lisp);
#endif