From d742d7b391fb1e28e784161368689b05af791b71 Mon Sep 17 00:00:00 2001 From: Amit Chaudhuri Date: Tue, 12 Feb 2013 13:03:23 +0100 Subject: Remember window size This commit has gone through a few iterations and I trimmed it down to what I consider the "conservative minimum" - so this only stores window size, not window position. And in my mind that's the more relevant part, anyway. Have your window manager position the window at a "smart" spot on your screen... Signed-off-by: Amit Chaudhuri Signed-off-by: Henrik Brautaset Aronsen Signed-off-by: Dirk Hohndel --- macos.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'macos.c') diff --git a/macos.c b/macos.c index cdfce4c67..af72a69e3 100644 --- a/macos.c +++ b/macos.c @@ -45,6 +45,11 @@ void subsurface_set_conf_bool(char *name, int value) value ? kCFBooleanTrue : kCFBooleanFalse, SUBSURFACE_PREFERENCES); } +void subsurface_set_conf_int(char *name, int value) +{ + /* CF pref stuff here? */ +} + const void *subsurface_get_conf(char *name) { CFPropertyListRef strpref; @@ -65,6 +70,13 @@ int subsurface_get_conf_bool(char *name) return boolpref; } +int subsurface_get_conf_int(char *name) +{ + + return -1; /* CF pref stuff here? */ + +} + void subsurface_flush_conf(void) { int ok = CFPreferencesAppSynchronize(SUBSURFACE_PREFERENCES); -- cgit v1.2.3-70-g09d2