mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Close fullscreen overlay with out of contents click
This commit is contained in:
parent
57332553c4
commit
41f6dbe053
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue