aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-08 14:12:18 +0100
committeremersion <contact@emersion.fr>2018-07-08 14:12:18 +0100
commitc19d4757537a855f6e66f4473379e9b4eb3b6564 (patch)
treef1fe86cb4453515b03155bccfe29ca6a080cf728 /include
parent024fc76eee805d05176fba433049b94c82c099af (diff)
xdg-output: don't send no-op updates
To begin with, no-op updates are unnecessary, so this patch is an improvement on its own. Then, this fixes hotplugging issues with xwayland. xwayland waits for both wl_output and xdg_output to send a "done" event. However, it doesn't handle well desynchronized "done" updates: if xdg-output sends "done" twice, the second one will wait for the next wl_output "done" event. This is an issue when the first is a no-op and the second is a real update: the second isn't applied. I've considered patching xwayland instead, but it seems pretty complicated.
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_xdg_output.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_xdg_output.h b/include/wlr/types/wlr_xdg_output.h
index 5e6a0780..81566ab9 100644
--- a/include/wlr/types/wlr_xdg_output.h
+++ b/include/wlr/types/wlr_xdg_output.h
@@ -10,6 +10,9 @@ struct wlr_xdg_output {
struct wlr_output_layout_output *layout_output;
+ int32_t x, y;
+ int32_t width, height;
+
struct wl_listener destroy;
};