summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/window.c b/window.c
index fd7a00ecc..86af083e0 100644
--- a/window.c
+++ b/window.c
@@ -53,6 +53,7 @@ void DispatchLeftClickEvent(Window *w, int x, int y) {
if (w->desc_flags & WDF_STD_BTN) {
if (e.click.widget == 0) {
DeleteWindow(w);
+ return;
} else {
if (e.click.widget == 1) {
StartWindowDrag(w);