Close fullscreen overlay with out of contents click

pull/1/head
Konstantinos Sideris 8 years ago
parent 57332553c4
commit 41f6dbe053
  1. 2
      src/ImageOverlayDialog.cc

@ -113,4 +113,6 @@ void ImageOverlayDialog::mousePressEvent(QMouseEvent *event)
// FIXME: The main window needs double click to regain focus. // FIXME: The main window needs double click to regain focus.
if (close_button_.contains(event->pos())) if (close_button_.contains(event->pos()))
close(); close();
else if (!content_.contains(event->pos()))
close();
} }

Loading…
Cancel
Save