2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Add hit test for window context menu

This commit is contained in:
Ilya Fedin
2024-07-25 21:25:55 +04:00
committed by John Preston
parent 77d6e19214
commit 517b456670
4 changed files with 18 additions and 13 deletions

View File

@@ -215,7 +215,7 @@ void Panel::initWindow() {
}
const auto shown = _layerBg->topShownLayer();
return (!shown || !shown->geometry().contains(widgetPoint))
? (Flag::Move | Flag::FullScreen)
? (Flag::Move | Flag::Menu | Flag::FullScreen)
: Flag::None;
});