summaryrefslogtreecommitdiff
path: root/src/core/frame-private.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-09-28 17:19:49 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2014-09-28 17:19:49 +0300
commit72224a165fd7daa175039d9cbbd1f813f50996fa (patch)
treee23a7c90191e5fb1f63f45df5b829e15c4678cac /src/core/frame-private.h
parentebbea1b46d74d4feb9e9262c270e333a6598d041 (diff)
downloadmetacity-72224a165fd7daa175039d9cbbd1f813f50996fa.tar.gz
Replace public MetaFrameGeometry with MetaFrameBorders
There were actually *two* MetaFrameGeometry structs: one in theme-private.h, one in frame.h. The latter public struct was populated by a mix of (void*) casting and int pointers, usually pulling directly from the data in the private struct. Remove the public struct, replace it with MetaFrameBorders and scrap all the pointer hacks to populate it, instead relying on both structs being used in common code. This commit should be relatively straightforward, and it should not do any tricky logic at all, just a sophisticated find and replace. https://bugzilla.gnome.org/show_bug.cgi?id=644930 NOTE: Patch copied from mutter and adapted for metacity.
Diffstat (limited to 'src/core/frame-private.h')
-rw-r--r--src/core/frame-private.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/core/frame-private.h b/src/core/frame-private.h
index 6ed163ff..5518cd7d 100644
--- a/src/core/frame-private.h
+++ b/src/core/frame-private.h
@@ -25,17 +25,6 @@
#include "frame.h"
#include "window-private.h"
-typedef struct _MetaFrameGeometry MetaFrameGeometry;
-
-struct _MetaFrameGeometry
-{
- /* border sizes (space between frame and child) */
- int left_width;
- int right_width;
- int top_height;
- int bottom_height;
-};
-
struct _MetaFrame
{
/* window we frame */
@@ -69,8 +58,8 @@ void meta_frame_queue_draw (MetaFrame *frame);
MetaFrameFlags meta_frame_get_flags (MetaFrame *frame);
/* These should ONLY be called from meta_window_move_resize_internal */
-void meta_frame_calc_geometry (MetaFrame *frame,
- MetaFrameGeometry *geomp);
+void meta_frame_calc_borders (MetaFrame *frame,
+ MetaFrameBorders *borders);
void meta_frame_sync_to_window (MetaFrame *frame,
int gravity,
gboolean need_move,