mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
meta: Add META namespace to macros
To silence warnings during GIR generation. https://gitlab.gnome.org/GNOME/mutter/merge_requests/822
This commit is contained in:
parent
5e7fa20f06
commit
a8155a0471
@ -2493,7 +2493,7 @@ meta_monitor_manager_get_logical_monitor_at (MetaMonitorManager *manager,
|
||||
{
|
||||
MetaLogicalMonitor *logical_monitor = l->data;
|
||||
|
||||
if (POINT_IN_RECT (x, y, logical_monitor->rect))
|
||||
if (META_POINT_IN_RECT (x, y, logical_monitor->rect))
|
||||
return logical_monitor;
|
||||
}
|
||||
|
||||
|
@ -1071,7 +1071,7 @@ meta_get_display (void)
|
||||
static inline gboolean
|
||||
grab_op_is_window (MetaGrabOp op)
|
||||
{
|
||||
return GRAB_OP_GET_BASE_TYPE (op) == META_GRAB_OP_WINDOW_BASE;
|
||||
return META_GRAB_OP_GET_BASE_TYPE (op) == META_GRAB_OP_WINDOW_BASE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
@ -1674,7 +1674,7 @@ get_first_freefloating_window (MetaWindow *window)
|
||||
static MetaEventRoute
|
||||
get_event_route_from_grab_op (MetaGrabOp op)
|
||||
{
|
||||
switch (GRAB_OP_GET_BASE_TYPE (op))
|
||||
switch (META_GRAB_OP_GET_BASE_TYPE (op))
|
||||
{
|
||||
case META_GRAB_OP_NONE:
|
||||
/* begin_grab_op shouldn't be called with META_GRAB_OP_NONE. */
|
||||
|
@ -1146,7 +1146,7 @@ window_contains_point (MetaWindow *window,
|
||||
|
||||
meta_window_get_frame_rect (window, &rect);
|
||||
|
||||
return POINT_IN_RECT (root_x, root_y, rect);
|
||||
return META_POINT_IN_RECT (root_x, root_y, rect);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -147,7 +147,7 @@ enum
|
||||
_WGO_N = META_GRAB_OP_WINDOW_DIR_NORTH,
|
||||
};
|
||||
|
||||
#define GRAB_OP_GET_BASE_TYPE(op) (op & 0x00FF)
|
||||
#define META_GRAB_OP_GET_BASE_TYPE(op) (op & 0x00FF)
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@ -507,7 +507,7 @@ void meta_frame_borders_clear (MetaFrameBorders *self);
|
||||
|
||||
/************************************************************/
|
||||
|
||||
#define POINT_IN_RECT(xcoord, ycoord, rect) \
|
||||
#define META_POINT_IN_RECT(xcoord, ycoord, rect) \
|
||||
((xcoord) >= (rect).x && \
|
||||
(xcoord) < ((rect).x + (rect).width) && \
|
||||
(ycoord) >= (rect).y && \
|
||||
|
@ -1733,18 +1733,18 @@ get_control (MetaUIFrame *frame, int root_x, int root_y)
|
||||
y = root_y - win_y;
|
||||
|
||||
meta_window_get_client_area_rect (frame->meta_window, &client);
|
||||
if (POINT_IN_RECT (x, y, client))
|
||||
if (META_POINT_IN_RECT (x, y, client))
|
||||
return META_FRAME_CONTROL_CLIENT_AREA;
|
||||
|
||||
meta_ui_frame_calc_geometry (frame, &fgeom);
|
||||
|
||||
if (POINT_IN_RECT (x, y, fgeom.close_rect.clickable))
|
||||
if (META_POINT_IN_RECT (x, y, fgeom.close_rect.clickable))
|
||||
return META_FRAME_CONTROL_DELETE;
|
||||
|
||||
if (POINT_IN_RECT (x, y, fgeom.min_rect.clickable))
|
||||
if (META_POINT_IN_RECT (x, y, fgeom.min_rect.clickable))
|
||||
return META_FRAME_CONTROL_MINIMIZE;
|
||||
|
||||
if (POINT_IN_RECT (x, y, fgeom.menu_rect.clickable))
|
||||
if (META_POINT_IN_RECT (x, y, fgeom.menu_rect.clickable))
|
||||
return META_FRAME_CONTROL_MENU;
|
||||
|
||||
flags = meta_frame_get_flags (frame->meta_window->frame);
|
||||
@ -1757,7 +1757,7 @@ get_control (MetaUIFrame *frame, int root_x, int root_y)
|
||||
if (flags & META_FRAME_TILED_LEFT || flags & META_FRAME_TILED_RIGHT)
|
||||
has_vert = has_horiz = FALSE;
|
||||
|
||||
if (POINT_IN_RECT (x, y, fgeom.title_rect))
|
||||
if (META_POINT_IN_RECT (x, y, fgeom.title_rect))
|
||||
{
|
||||
if (has_vert && y <= TOP_RESIZE_HEIGHT && has_north_resize)
|
||||
return META_FRAME_CONTROL_RESIZE_N;
|
||||
@ -1765,7 +1765,7 @@ get_control (MetaUIFrame *frame, int root_x, int root_y)
|
||||
return META_FRAME_CONTROL_TITLE;
|
||||
}
|
||||
|
||||
if (POINT_IN_RECT (x, y, fgeom.max_rect.clickable))
|
||||
if (META_POINT_IN_RECT (x, y, fgeom.max_rect.clickable))
|
||||
{
|
||||
if (flags & META_FRAME_MAXIMIZED)
|
||||
return META_FRAME_CONTROL_UNMAXIMIZE;
|
||||
|
Loading…
Reference in New Issue
Block a user