mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
window: Change ordering of functions to match wayland branch
... and also change some unused public functions to be statics.
This commit is contained in:
parent
36009cbae1
commit
be352c2bf1
@ -682,17 +682,10 @@ void meta_window_compute_tile_match (MetaWindow *window);
|
||||
|
||||
gboolean meta_window_updates_are_frozen (MetaWindow *window);
|
||||
|
||||
void meta_window_set_opaque_region (MetaWindow *window,
|
||||
cairo_region_t *region);
|
||||
void meta_window_update_opaque_region_x11 (MetaWindow *window);
|
||||
|
||||
void meta_window_set_input_region (MetaWindow *window,
|
||||
cairo_region_t *region);
|
||||
void meta_window_update_input_region_x11 (MetaWindow *window);
|
||||
|
||||
void meta_window_set_shape_region (MetaWindow *window,
|
||||
cairo_region_t *region);
|
||||
void meta_window_update_shape_region_x11 (MetaWindow *window);
|
||||
|
||||
void meta_window_set_opacity (MetaWindow *window,
|
||||
guint opacity);
|
||||
|
||||
|
@ -7667,7 +7667,7 @@ meta_window_update_net_wm_type (MetaWindow *window)
|
||||
meta_window_recalc_window_type (window);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
meta_window_set_opaque_region (MetaWindow *window,
|
||||
cairo_region_t *region)
|
||||
{
|
||||
@ -7753,17 +7753,17 @@ region_create_from_x_rectangles (const XRectangle *rects,
|
||||
return cairo_region_create_rectangles (cairo_rects, n_rects);
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_set_shape_region (MetaWindow *window,
|
||||
static void
|
||||
meta_window_set_input_region (MetaWindow *window,
|
||||
cairo_region_t *region)
|
||||
{
|
||||
g_clear_pointer (&window->shape_region, cairo_region_destroy);
|
||||
g_clear_pointer (&window->input_region, cairo_region_destroy);
|
||||
|
||||
if (region != NULL)
|
||||
window->shape_region = cairo_region_reference (region);
|
||||
window->input_region = cairo_region_reference (region);
|
||||
|
||||
if (window->display->compositor)
|
||||
meta_compositor_update_shape_region (window->display->compositor, window);
|
||||
meta_compositor_update_input_region (window->display->compositor, window);
|
||||
}
|
||||
|
||||
void
|
||||
@ -7839,17 +7839,17 @@ meta_window_update_input_region_x11 (MetaWindow *window)
|
||||
cairo_region_destroy (region);
|
||||
}
|
||||
|
||||
void
|
||||
meta_window_set_input_region (MetaWindow *window,
|
||||
static void
|
||||
meta_window_set_shape_region (MetaWindow *window,
|
||||
cairo_region_t *region)
|
||||
{
|
||||
g_clear_pointer (&window->input_region, cairo_region_destroy);
|
||||
g_clear_pointer (&window->shape_region, cairo_region_destroy);
|
||||
|
||||
if (region != NULL)
|
||||
window->input_region = cairo_region_reference (region);
|
||||
window->shape_region = cairo_region_reference (region);
|
||||
|
||||
if (window->display->compositor)
|
||||
meta_compositor_update_input_region (window->display->compositor, window);
|
||||
meta_compositor_update_shape_region (window->display->compositor, window);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user