diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-04-07 12:53:32 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-04-07 12:53:32 +0200 |
| commit | 6636d343b8a1c0d37bf5c6aefccaff64fb3cab84 (patch) | |
| tree | b410c63f643400f523b6fcf9d54351d9f751d9cb | |
| parent | 6c9cee14107f7c33787bab5873652677ae18e476 (diff) | |
Work around failure to open maximised on Ubuntu 24.04 (#3010).
| -rw-r--r-- | cscript | 2 | ||||
| -rw-r--r-- | src/tools/dcpomatic.cc | 3 | ||||
| -rw-r--r-- | wscript | 4 |
3 files changed, 8 insertions, 1 deletions
@@ -504,7 +504,7 @@ def configure_options(target, options, for_package=False): opt += ' --wx-config=%s/wx-config' % target.bin if target.platform == 'linux' and target.distro == 'ubuntu' and target.version == '24.04': - opt += ' --enable-grok' + opt += ' --enable-grok --workaround-mutter' if build_with_cpp17(target): opt += ' --c++17' diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index c603b9bfe..78fce27f2 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -538,6 +538,9 @@ private: if (ev.IsShown() && !_first_shown_called) { _film_editor->first_shown (); _first_shown_called = true; +#ifdef DCPOMATIC_WORKAROUND_MUTTER + signal_manager->when_idle([this]() { Maximize(); }); +#endif } } @@ -71,6 +71,7 @@ def options(opt): opt.add_option('--static-sub', action='store_true', default=False, help='link statically to libsub') opt.add_option('--static-curl', action='store_true', default=False, help='link statically to libcurl') opt.add_option('--workaround-gssapi', action='store_true', default=False, help='link to gssapi_krb5') + opt.add_option('--workaround-mutter', action='store_true', default=False, help='work around window maximising bug on (e.g.) Ubuntu 24.04') opt.add_option('--use-lld', action='store_true', default=False, help='use lld linker') opt.add_option('--enable-disk', action='store_true', default=False, help='build dcpomatic2_disk tool; requires Boost process, lwext4 and nanomsg libraries') opt.add_option('--enable-grok', action='store_true', default=False, help='build with support for grok J2K encoder') @@ -148,6 +149,9 @@ def configure(conf): if conf.options.warnings_are_errors: conf.env.append_value('CXXFLAGS', '-Werror') + if conf.options.workaround_mutter: + conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_WORKAROUND_MUTTER') + if conf.env.SSE: conf.env.append_value('CXXFLAGS', ['-msse', '-mfpmath=sse']) |
