display: Consider monitors in landscape mode for minimum size

Some devices have panels with a native resolution in portrait mode. In
these cases the monitor will likely be used in landscape mode.

Accept the modes as if they are landscape rather than portrait. A
further improvement would be to restrict the orientation setting.

Fixes #639
This commit is contained in:
Benjamin Berg 2019-08-12 11:43:30 +02:00 committed by Benjamin Berg
parent fe932a4cea
commit 4e800cc558
2 changed files with 11 additions and 3 deletions

View file

@ -40,7 +40,10 @@
#include "cc-display-resources.h"
#include "cc-display-settings.h"
/* The minimum supported size for the panel */
/* The minimum supported size for the panel
* Note that WIDTH is assumed to be the larger size and we accept portrait
* mode too effectively (in principle we should probably restrict the rotation
* setting in that case). */
#define MINIMUM_WIDTH 740
#define MINIMUM_HEIGHT 530