aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h37
1 files changed, 31 insertions, 6 deletions
diff --git a/wayland.h b/wayland.h
index b8b91c00..761af73b 100644
--- a/wayland.h
+++ b/wayland.h
@@ -24,14 +24,39 @@ struct monitor {
int x;
int y;
- int width_mm;
- int height_mm;
+ struct {
+ /* Physical size, in mm */
+ struct {
+ int width;
+ int height;
+ } mm;
+
+ /* Physical size, in pixels */
+ struct {
+ int width;
+ int height;
+ } px_real;
- int width_px;
- int height_px;
+ /* Scaled size, in pixels */
+ struct {
+ int width;
+ int height;
+ } px_scaled;
+ } dim;
+
+ struct {
+ /* PPI, based on physical size */
+ struct {
+ int x;
+ int y;
+ } real;
- int x_ppi;
- int y_ppi;
+ /* PPI, logical, based on scaled size */
+ struct {
+ int x;
+ int y;
+ } scaled;
+ } ppi;
int scale;
float refresh;