From 945411274fe076c26ce582252afe4a83affc3f3d Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 7 Jun 2021 19:16:37 +0400 Subject: [PATCH] Close large video tile by click anywhere. --- Telegram/SourceFiles/calls/group/calls_group_viewport.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_viewport.cpp b/Telegram/SourceFiles/calls/group/calls_group_viewport.cpp index 16eb86392c..0cff14bf92 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_viewport.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_viewport.cpp @@ -173,7 +173,7 @@ void Viewport::handleMouseRelease(QPoint position, Qt::MouseButton button) { tile->row()->showContextMenu(); } else if (!wide() || (_hasTwoOrMore && !_large) - || pressed.element == Selection::Element::BackButton) { + || pressed.element != Selection::Element::PinButton) { _clicks.fire_copy(tile->endpoint()); } else if (pressed.element == Selection::Element::PinButton) { _pinToggles.fire(!tile->pinned()); @@ -771,11 +771,7 @@ void Viewport::setSelected(Selection value) { } void Viewport::updateCursor() { - const auto pointer = _selected.tile - && (!wide() - || (_hasTwoOrMore && !_large) - || _selected.element == Selection::Element::PinButton - || _selected.element == Selection::Element::BackButton); + const auto pointer = _selected.tile && (!wide() || _hasTwoOrMore); widget()->setCursor(pointer ? style::cur_pointer : style::cur_default); }