From 1b3afcff1fea0d1334b50dff378a6667e264b557 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 6 Oct 2014 19:52:14 +0200 Subject: Move common gravity application to screen.c --- openbox/screen.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/screen.h') diff --git a/openbox/screen.h b/openbox/screen.h index 673a994d..56fa6c99 100644 --- a/openbox/screen.h +++ b/openbox/screen.h @@ -182,4 +182,9 @@ guint screen_monitor_pointer(void); */ gboolean screen_compare_desktops(guint a, guint b); +/*! Resolve a gravity point into absolute coordinates. + * width and height are the size of the object being placed, used for + * aligning to right/bottom edges of the area. */ +void screen_apply_gravity_point(gint *x, gint *y, gint width, gint height, + GravityPoint *position, const Rect *area); #endif -- cgit v1.2.3