cursor: Make load_cursor_on_server public

This commit is contained in:
Jasper St. Pierre 2014-04-23 10:41:09 -04:00
parent b501ca5a24
commit c6296aa17f
3 changed files with 13 additions and 10 deletions

View File

@ -119,18 +119,11 @@ translate_meta_cursor (MetaCursor cursor)
g_assert_not_reached ();
}
static Cursor
load_cursor_on_server (MetaDisplay *display,
MetaCursor cursor)
{
return XcursorLibraryLoadCursor (display->xdisplay, translate_meta_cursor (cursor));
}
Cursor
meta_display_create_x_cursor (MetaDisplay *display,
meta_cursor_create_x_cursor (Display *xdisplay,
MetaCursor cursor)
{
return load_cursor_on_server (display, cursor);
return XcursorLibraryLoadCursor (xdisplay, translate_meta_cursor (cursor));
}
static XcursorImage *

View File

@ -36,4 +36,7 @@ MetaCursorReference * meta_cursor_reference_from_buffer (struct wl_resource *buf
int hot_x,
int hot_y);
Cursor meta_cursor_create_x_cursor (Display *xdisplay,
MetaCursor cursor);
#endif /* META_CURSOR_H */

View File

@ -3281,3 +3281,10 @@ meta_display_clear_mouse_mode (MetaDisplay *display)
{
display->mouse_mode = FALSE;
}
Cursor
meta_display_create_x_cursor (MetaDisplay *display,
MetaCursor cursor)
{
return meta_cursor_create_x_cursor (display->xdisplay, cursor);
}