2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Add "ctrl-click-chat-new-window" option.

This commit is contained in:
John Preston
2022-06-07 22:05:37 +04:00
parent 896d39bc6a
commit a780fbd09b
22 changed files with 192 additions and 104 deletions

View File

@@ -1912,7 +1912,7 @@ QPixmap MainWidget::grabForShowAnimation(const Window::SectionSlideParams &param
result = Ui::GrabWidget(this, QRect(
0,
sectionTop,
_dialogsWidth,
width(),
height() - sectionTop));
} else {
if (_sideShadow) {
@@ -2163,7 +2163,7 @@ void MainWidget::updateControlsGeometry() {
auto dialogsWidth = _dialogs
? qRound(_a_dialogsWidth.value(_dialogsWidth))
: isOneColumn()
? _dialogsWidth
? width()
: 0;
if (isOneColumn()) {
if (_callTopBar) {
@@ -2276,7 +2276,7 @@ void MainWidget::updateControlsGeometry() {
}
void MainWidget::refreshResizeAreas() {
if (!isOneColumn()) {
if (!isOneColumn() && _dialogs) {
ensureFirstColumnResizeAreaCreated();
_firstColumnResizeArea->setGeometryToLeft(
_history->x(),
@@ -2314,6 +2314,8 @@ void MainWidget::createResizeArea(
}
void MainWidget::ensureFirstColumnResizeAreaCreated() {
Expects(_dialogs != nullptr);
if (_firstColumnResizeArea) {
return;
}