Build improvements + fix for window size/position (macOS) (#5771)

* Allow using relative path in MacOS for development builds
* [macOS] Fixes RT "cache"/"config" folder not located in the right place
In actual "dev" branch, RT "cache"/"config" folder is located in
"~/Application Support/RawTherapee" folder instead of
"~/Library/Application Support/RawTherapee" folder (as in v5.8 release
and discribed in RawPedia). Moreover, "CACHE_NAME_SUFFIX" cMake option
was not anymore considered.
* [macOS] Remember RT window position correctly, fixes #3209

As described in GTK documentation, some OS Windows Manager do not
consider setting window size and position before it is completely
created (which seems to be the case for macOS). In this commit,
restoring window size/position is now done after its creation.
Morevover, macOS menu bar height is now considered.
This commit is contained in:
Pandagrapher
2020-05-28 12:26:14 +02:00
committed by GitHub
parent 82f0e4f117
commit 320408306d
6 changed files with 58 additions and 36 deletions

View File

@@ -22,8 +22,9 @@
#cmakedefine BUILD_BUNDLE
#cmakedefine HAVE_UNALIGNED_MALLOC
#cmakedefine OSX_DEV_BUILD
#ifdef __APPLE__
#if defined(__APPLE__) && !defined(OSX_DEV_BUILD)
#define DATA_SEARCH_PATH "/Applications/RawTherapee.app/Contents/Resources/share"
#define DOC_SEARCH_PATH "/Applications/RawTherapee.app/Contents/Resources"
#define CREDITS_SEARCH_PATH "/Applications/RawTherapee.app/Contents/Resources"