summaryrefslogtreecommitdiff
path: root/src/gui/gui-bar-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui-bar-item.c')
-rw-r--r--src/gui/gui-bar-item.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/gui-bar-item.c b/src/gui/gui-bar-item.c
index a49eefd73..57b64c531 100644
--- a/src/gui/gui-bar-item.c
+++ b/src/gui/gui-bar-item.c
@@ -594,10 +594,7 @@ gui_bar_item_default_input_paste (void *data, struct t_gui_bar_item *item,
(void) data;
(void) item;
- if (!window)
- return NULL;
-
- if (window != gui_current_window)
+ if (window && (window != gui_current_window))
return NULL;
if (!gui_key_paste_pending)