diff options
Diffstat (limited to 'xwayland/selection/outgoing.c')
-rw-r--r-- | xwayland/selection/outgoing.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/xwayland/selection/outgoing.c b/xwayland/selection/outgoing.c index 87c0fb06..3e5432f0 100644 --- a/xwayland/selection/outgoing.c +++ b/xwayland/selection/outgoing.c @@ -412,10 +412,12 @@ void xwm_handle_selection_request(struct wlr_xwm *xwm, // No xwayland surface focused, deny access to clipboard if (xwm->focus_surface == NULL && xwm->drag_focus == NULL) { - char *selection_name = xwm_get_atom_name(xwm, selection->atom); - wlr_log(WLR_DEBUG, "denying read access to selection %u (%s): " - "no xwayland surface focused", selection->atom, selection_name); - free(selection_name); + if (wlr_log_get_verbosity() >= WLR_DEBUG) { + char *selection_name = xwm_get_atom_name(xwm, selection->atom); + wlr_log(WLR_DEBUG, "denying read access to selection %u (%s): " + "no xwayland surface focused", selection->atom, selection_name); + free(selection_name); + } goto fail_notify_requestor; } |