Skip to content

Commit da3bb2f

Browse files
authored
Small cleanup and fixes (#790)
* Small cleanup and fixes * Use g_qsort_with_data for compatibility
1 parent 1ad00e0 commit da3bb2f

2 files changed

Lines changed: 2 additions & 40 deletions

File tree

clutter/clutter/clutter-stage-view.c

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -122,44 +122,6 @@ clutter_stage_view_get_onscreen (ClutterStageView *view)
122122
return priv->framebuffer;
123123
}
124124

125-
static CoglPipeline *
126-
clutter_stage_view_create_framebuffer_pipeline (CoglFramebuffer *framebuffer)
127-
{
128-
CoglPipeline *pipeline;
129-
130-
pipeline = cogl_pipeline_new (cogl_framebuffer_get_context (framebuffer));
131-
132-
cogl_pipeline_set_layer_filters (pipeline, 0,
133-
COGL_PIPELINE_FILTER_NEAREST,
134-
COGL_PIPELINE_FILTER_NEAREST);
135-
cogl_pipeline_set_layer_texture (pipeline, 0,
136-
cogl_offscreen_get_texture (framebuffer));
137-
cogl_pipeline_set_layer_wrap_mode (pipeline, 0,
138-
COGL_PIPELINE_WRAP_MODE_CLAMP_TO_EDGE);
139-
140-
return pipeline;
141-
}
142-
143-
static void
144-
clutter_stage_view_ensure_offscreen_blit_pipeline (ClutterStageView *view)
145-
{
146-
ClutterStageViewPrivate *priv =
147-
clutter_stage_view_get_instance_private (view);
148-
ClutterStageViewClass *view_class =
149-
CLUTTER_STAGE_VIEW_GET_CLASS (view);
150-
151-
g_assert (priv->offscreen != NULL);
152-
153-
if (priv->offscreen_pipeline)
154-
return;
155-
156-
priv->offscreen_pipeline =
157-
clutter_stage_view_create_framebuffer_pipeline (priv->offscreen);
158-
159-
if (view_class->setup_offscreen_blit_pipeline)
160-
view_class->setup_offscreen_blit_pipeline (view, priv->offscreen_pipeline);
161-
}
162-
163125
void
164126
clutter_stage_view_invalidate_offscreen_blit_pipeline (ClutterStageView *view)
165127
{

src/wayland/meta-xwayland-grab-keyboard.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ application_is_in_pattern_array (MetaWindow *window,
170170
{
171171
GPatternSpec *pattern = (GPatternSpec *) g_ptr_array_index (pattern_array, i);
172172

173-
if ((window->res_class && g_pattern_match_string (pattern, window->res_class)) ||
174-
(window->res_name && g_pattern_match_string (pattern, window->res_name)))
173+
if ((window->res_class && g_pattern_spec_match_string (pattern, window->res_class)) ||
174+
(window->res_name && g_pattern_spec_match_string (pattern, window->res_name)))
175175
return TRUE;
176176
}
177177

0 commit comments

Comments
 (0)