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:
@@ -255,6 +255,7 @@ RTWindow *create_rt_window()
|
||||
|
||||
//gdk_threads_enter ();
|
||||
RTWindow *rtWindow = new RTWindow();
|
||||
rtWindow->setWindowSize(); // Need to be called after RTWindow creation to work with all OS Windows Manager
|
||||
return rtWindow;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user