aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTudor Brindus <me@tbrindus.ca>2021-02-13 00:22:15 -0500
committerSimon Ser <contact@emersion.fr>2021-02-15 13:50:14 +0100
commit2827a9554c8711fe65be7e202e25a6b795c40a9e (patch)
tree669a47aedb089a6f2fee3b4179adf0b0b3f46c2e
parent7d52b4d0b5592a3bc87e097c44b8629695bc9cad (diff)
xwayland/selection: log when proxy window loses ownership
-rw-r--r--xwayland/selection/incoming.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/xwayland/selection/incoming.c b/xwayland/selection/incoming.c
index 304ba8e3..791eb5cf 100644
--- a/xwayland/selection/incoming.c
+++ b/xwayland/selection/incoming.c
@@ -513,9 +513,14 @@ int xwm_handle_xfixes_selection_notify(struct wlr_xwm *xwm,
return 1;
}
+ if (selection->owner == selection->window &&
+ event->owner != selection->owner) {
+ wlr_log(WLR_DEBUG, "proxy window lost selection ownership");
+ }
+
selection->owner = event->owner;
- if (event->owner == selection->window) {
+ if (selection->owner == selection->window) {
// We have to use XCB_TIME_CURRENT_TIME when we claim the selection, so
// grab the actual timestamp here so we can answer TIMESTAMP conversion
// requests correctly.