mirror of
https://github.com/brl/mutter.git
synced 2025-08-09 18:04:44 +00:00
main: Move rect related macro to util-private.h
No reason that it should be in main-private.h, lets place it in util-private.h. This also mean we can remove main-private.h. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1833>
This commit is contained in:
@@ -37,12 +37,6 @@ typedef enum _MetaX11DisplayPolicy
|
||||
META_X11_DISPLAY_POLICY_DISABLED,
|
||||
} MetaX11DisplayPolicy;
|
||||
|
||||
#define META_POINT_IN_RECT(xcoord, ycoord, rect) \
|
||||
((xcoord) >= (rect).x && \
|
||||
(xcoord) < ((rect).x + (rect).width) && \
|
||||
(ycoord) >= (rect).y && \
|
||||
(ycoord) < ((rect).y + (rect).height))
|
||||
|
||||
#define META_GRAB_OP_GET_BASE_TYPE(op) (op & 0x00FF)
|
||||
|
||||
META_EXPORT_TEST
|
||||
|
@@ -32,7 +32,6 @@
|
||||
#include "backends/meta-logical-monitor.h"
|
||||
#include "cogl/cogl.h"
|
||||
#include "core/frame.h"
|
||||
#include "core/main-private.h"
|
||||
#include "core/meta-workspace-manager-private.h"
|
||||
#include "core/window-private.h"
|
||||
#include "meta/group.h"
|
||||
|
@@ -45,4 +45,10 @@ char * meta_generate_random_id (GRand *rand,
|
||||
|
||||
void meta_init_debug_utils (void);
|
||||
|
||||
#define META_POINT_IN_RECT(xcoord, ycoord, rect) \
|
||||
((xcoord) >= (rect).x && \
|
||||
(xcoord) < ((rect).x + (rect).width) && \
|
||||
(ycoord) >= (rect).y && \
|
||||
(ycoord) < ((rect).y + (rect).height))
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user