summaryrefslogtreecommitdiff
path: root/src/wx/timeline_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-28 00:05:35 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-28 00:05:35 +0100
commitc3433d59c0d320f0451df18c9cb06bfd5fff40b0 (patch)
tree2e009cf578647223f815e177f4aa8dc6c85ec634 /src/wx/timeline_dialog.cc
parent88e5792ebabaf3936d98f72db92d4cd45be3ed36 (diff)
Hacky window-on-top fix for OS X.
Diffstat (limited to 'src/wx/timeline_dialog.cc')
-rw-r--r--src/wx/timeline_dialog.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/timeline_dialog.cc b/src/wx/timeline_dialog.cc
index 76a2c45e6..e050c27d9 100644
--- a/src/wx/timeline_dialog.cc
+++ b/src/wx/timeline_dialog.cc
@@ -38,7 +38,14 @@ TimelineDialog::TimelineDialog (ContentPanel* cp, shared_ptr<Film> film)
_("Timeline"),
wxDefaultPosition,
wxSize (640, 512),
+#ifdef DCPOMATIC_OSX
+ /* I can't get wxFRAME_FLOAT_ON_PARENT to work on OS X, and although wxSTAY_ON_TOP keeps
+ the window above all others (and not just our own) it's better than nothing for now.
+ */
+ wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxFULL_REPAINT_ON_RESIZE | wxSTAY_ON_TOP
+#else
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxFULL_REPAINT_ON_RESIZE | wxFRAME_FLOAT_ON_PARENT
+#endif
)
, _film (film)
, _timeline (this, cp, film)