diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2017-04-12 14:15:33 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2017-08-30 13:09:38 +0800 |
commit | 0aa7405a2a895719fb7365d563cfbc1da69536ff (patch) | |
tree | 195b39ff84038ac9d84c4979c9d05e32485d9111 /src/tests/monitor-unit-tests.c | |
parent | a119e5877367204a29823ff3d5e480a98010f695 (diff) | |
download | mutter-0aa7405a2a895719fb7365d563cfbc1da69536ff.tar.gz |
monitor-manager: Fall back to minimum screen size of 640 x 480
When headless, we don't have any logical monitors to derive a screen
size from, but we can't set it to empty as that will cause issues with
the clutter stage, UI widget layout and other things. To avoid such
issues, just fall back to a 640 x 480 screen size when headless.
https://bugzilla.gnome.org/show_bug.cgi?id=730551
Diffstat (limited to 'src/tests/monitor-unit-tests.c')
-rw-r--r-- | src/tests/monitor-unit-tests.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/monitor-unit-tests.c b/src/tests/monitor-unit-tests.c index 53455c1f7..e2dcdc59c 100644 --- a/src/tests/monitor-unit-tests.c +++ b/src/tests/monitor-unit-tests.c @@ -2563,9 +2563,8 @@ meta_test_monitor_no_outputs (void) .n_outputs = 0, .n_crtcs = 0, .n_tiled_monitors = 0, - /* The screen is made 1x1, as clutter stage used cannot be empty. */ - .screen_width = 1, - .screen_height = 1 + .screen_width = META_MONITOR_MANAGER_MIN_SCREEN_WIDTH, + .screen_height = META_MONITOR_MANAGER_MIN_SCREEN_HEIGHT } }; MetaMonitorTestSetup *test_setup; |