aboutsummaryrefslogtreecommitdiff
path: root/xwayland/selection.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-12-27 11:58:51 +0100
committeremersion <contact@emersion.fr>2017-12-27 11:58:51 +0100
commit1c9b09ca92388ea882406d953067fb9f954c55a9 (patch)
tree7866d26ad510c77e5d4898a293bd021ba7f62954 /xwayland/selection.c
parentb3072f81fe609913655f0c6b11f3023c45aed754 (diff)
Add logging to selection message handlers
Diffstat (limited to 'xwayland/selection.c')
-rw-r--r--xwayland/selection.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/xwayland/selection.c b/xwayland/selection.c
index 0646dbef..0d7f1588 100644
--- a/xwayland/selection.c
+++ b/xwayland/selection.c
@@ -293,6 +293,9 @@ static void xwm_handle_selection_request(struct wlr_xwm *xwm,
xcb_selection_request_event_t *selection_request =
(xcb_selection_request_event_t *) event;
+ wlr_log(L_DEBUG, "XCB_SELECTION_REQUEST (selection=%u, target=%u)",
+ selection_request->selection, selection_request->target);
+
if (selection_request->selection == xwm->atoms[CLIPBOARD_MANAGER]) {
// The wlroots clipboard should already have grabbed the first target,
// so just send selection notify now. This isn't synchronized with the
@@ -670,6 +673,10 @@ static void xwm_handle_selection_notify(struct wlr_xwm *xwm,
xcb_selection_notify_event_t *selection_notify =
(xcb_selection_notify_event_t *) event;
+ wlr_log(L_DEBUG, "XCB_SELECTION_NOTIFY (selection=%u, property=%u, target=%u)",
+ selection_notify->selection, selection_notify->property,
+ selection_notify->target);
+
struct wlr_xwm_selection *selection =
xwm_get_selection(xwm, selection_notify->selection);
if (selection == NULL) {
@@ -698,6 +705,9 @@ static int xwm_handle_xfixes_selection_notify(struct wlr_xwm *xwm,
xcb_xfixes_selection_notify_event_t *xfixes_selection_notify =
(xcb_xfixes_selection_notify_event_t *)event;
+ wlr_log(L_DEBUG, "XCB_XFIXES_SELECTION_NOTIFY (selection=%u, owner=%u)",
+ xfixes_selection_notify->selection, xfixes_selection_notify->owner);
+
struct wlr_xwm_selection *selection =
xwm_get_selection(xwm, xfixes_selection_notify->selection);
if (selection == NULL) {