mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
cursor-renderer: Remove the MetaScreen
It's unused.
This commit is contained in:
parent
ca11b88fcd
commit
4ea9a28eee
@ -38,8 +38,6 @@
|
||||
|
||||
struct _MetaCursorRendererPrivate
|
||||
{
|
||||
MetaScreen *screen;
|
||||
|
||||
gboolean has_hw_cursor;
|
||||
|
||||
int current_x, current_y;
|
||||
@ -313,16 +311,9 @@ update_pipeline (MetaCursorRenderer *renderer)
|
||||
}
|
||||
|
||||
MetaCursorRenderer *
|
||||
meta_cursor_renderer_new (MetaScreen *screen)
|
||||
meta_cursor_renderer_new (void)
|
||||
{
|
||||
MetaCursorRenderer *renderer;
|
||||
MetaCursorRendererPrivate *priv;
|
||||
|
||||
renderer = META_CURSOR_RENDERER (g_object_new (META_TYPE_CURSOR_RENDERER, NULL));
|
||||
priv = meta_cursor_renderer_get_instance_private (renderer);
|
||||
priv->screen = screen;
|
||||
|
||||
return renderer;
|
||||
return g_object_new (META_TYPE_CURSOR_RENDERER, NULL);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -54,7 +54,7 @@ struct _MetaCursorRendererClass
|
||||
|
||||
GType meta_cursor_renderer_get_type (void) G_GNUC_CONST;
|
||||
|
||||
MetaCursorRenderer * meta_cursor_renderer_new (MetaScreen *screen);
|
||||
MetaCursorRenderer * meta_cursor_renderer_new (void);
|
||||
|
||||
void meta_cursor_renderer_set_cursor (MetaCursorRenderer *renderer,
|
||||
MetaCursorReference *cursor);
|
||||
|
@ -139,7 +139,7 @@ make_wayland_cursor_tracker (MetaScreen *screen)
|
||||
|
||||
self = g_object_new (META_TYPE_CURSOR_TRACKER, NULL);
|
||||
self->screen = screen;
|
||||
self->renderer = meta_cursor_renderer_new (screen);
|
||||
self->renderer = meta_cursor_renderer_new ();
|
||||
|
||||
compositor = meta_wayland_compositor_get_default ();
|
||||
compositor->seat->pointer.cursor_tracker = self;
|
||||
@ -154,7 +154,7 @@ make_x11_cursor_tracker (MetaScreen *screen)
|
||||
MetaCursorTracker *self = g_object_new (META_TYPE_CURSOR_TRACKER, NULL);
|
||||
|
||||
self->screen = screen;
|
||||
self->renderer = meta_cursor_renderer_new (screen);
|
||||
self->renderer = meta_cursor_renderer_new ();
|
||||
|
||||
XFixesSelectCursorInput (screen->display->xdisplay,
|
||||
screen->xroot,
|
||||
|
Loading…
Reference in New Issue
Block a user