aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2026-01-20 13:32:42 +0100
committerdec05eba <dec05eba@protonmail.com>2026-01-20 13:32:42 +0100
commit054282bafe9ef0acbcc5b56bd47fd90dc7b53aaa (patch)
treefecfb9371809fe55bd8027dacf1aee7836b8f8c1 /include
parent1e7fe1fec1f99b729963c5fa4cf58d1bac0e0961 (diff)
Wayland region: fix incorrect region captured if monitor is scaled
Diffstat (limited to 'include')
-rw-r--r--include/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/utils.h b/include/utils.h
index ff8cb90..d2c3b7d 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -16,6 +16,8 @@ typedef struct {
int name_len;
vec2i pos; /* This is 0, 0 on wayland. Use |drm_monitor_get_display_server_data| to get the position */
vec2i size;
+ vec2i logical_pos;
+ vec2i logical_size;
uint32_t connector_id; /* Only on x11 and drm */
gsr_monitor_rotation rotation; /* Only on x11 and wayland */
uint32_t monitor_identifier; /* On x11 this is the crtc id */