mirror of
https://github.com/brl/mutter.git
synced 2025-02-09 01:54:10 +00:00
cursor: Make load_cursor_on_server public
This commit is contained in:
parent
b501ca5a24
commit
c6296aa17f
@ -119,18 +119,11 @@ translate_meta_cursor (MetaCursor cursor)
|
|||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static Cursor
|
|
||||||
load_cursor_on_server (MetaDisplay *display,
|
|
||||||
MetaCursor cursor)
|
|
||||||
{
|
|
||||||
return XcursorLibraryLoadCursor (display->xdisplay, translate_meta_cursor (cursor));
|
|
||||||
}
|
|
||||||
|
|
||||||
Cursor
|
Cursor
|
||||||
meta_display_create_x_cursor (MetaDisplay *display,
|
meta_cursor_create_x_cursor (Display *xdisplay,
|
||||||
MetaCursor cursor)
|
MetaCursor cursor)
|
||||||
{
|
{
|
||||||
return load_cursor_on_server (display, cursor);
|
return XcursorLibraryLoadCursor (xdisplay, translate_meta_cursor (cursor));
|
||||||
}
|
}
|
||||||
|
|
||||||
static XcursorImage *
|
static XcursorImage *
|
||||||
|
@ -36,4 +36,7 @@ MetaCursorReference * meta_cursor_reference_from_buffer (struct wl_resource *buf
|
|||||||
int hot_x,
|
int hot_x,
|
||||||
int hot_y);
|
int hot_y);
|
||||||
|
|
||||||
|
Cursor meta_cursor_create_x_cursor (Display *xdisplay,
|
||||||
|
MetaCursor cursor);
|
||||||
|
|
||||||
#endif /* META_CURSOR_H */
|
#endif /* META_CURSOR_H */
|
||||||
|
@ -3281,3 +3281,10 @@ meta_display_clear_mouse_mode (MetaDisplay *display)
|
|||||||
{
|
{
|
||||||
display->mouse_mode = FALSE;
|
display->mouse_mode = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Cursor
|
||||||
|
meta_display_create_x_cursor (MetaDisplay *display,
|
||||||
|
MetaCursor cursor)
|
||||||
|
{
|
||||||
|
return meta_cursor_create_x_cursor (display->xdisplay, cursor);
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user