From 7a679dd1989ee0b5b36ab2d6b16af47be8a537ad Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 16 Apr 2010 18:04:24 +0200 Subject: Add support for using relative expressions in move and resize actions Have MoveResizeTo use config_parse_gravity_coord instead of duplicating it locally Allow MoveResizeTo positions and sizes and per app positions to be relative to screen size Rename to config_parse_relative_number so it can be used for sizes too Add relative numbers to width/height in MoveResizeTo Add relative numbers to MoveRelative Add relative numbers to ResizeRelative, these are for the client size, not screen size --- openbox/config.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbox/config.h') diff --git a/openbox/config.h b/openbox/config.h index 90b6581a..890b002a 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -215,5 +215,10 @@ ObAppSettings* config_create_app_settings(void); src. */ void config_app_settings_copy_non_defaults(const ObAppSettings *src, ObAppSettings *dest); +/*! Parses an x geometry style position, with some extensions like ratios + and percentages */ +void config_parse_gravity_coord(xmlNodePtr node, GravityCoord *c); +/*! Parses a rational number or percentage into num and denom */ +void config_parse_relative_number(gchar *s, gint *num, gint *denom); #endif -- cgit v1.2.3