From 41f6dbe0537cd9efc7065ab58806345434eff860 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 30 Apr 2017 03:47:12 +0300 Subject: [PATCH] Close fullscreen overlay with out of contents click --- src/ImageOverlayDialog.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ImageOverlayDialog.cc b/src/ImageOverlayDialog.cc index 0fe1c0e4..04bda711 100644 --- a/src/ImageOverlayDialog.cc +++ b/src/ImageOverlayDialog.cc @@ -113,4 +113,6 @@ void ImageOverlayDialog::mousePressEvent(QMouseEvent *event) // FIXME: The main window needs double click to regain focus. if (close_button_.contains(event->pos())) close(); + else if (!content_.contains(event->pos())) + close(); }