mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Workaround force setting of WM_TRANSIENT_HINT in Qt's xcb backend
This commit is contained in:
@@ -387,7 +387,17 @@ PipPanel::PipPanel(
|
||||
Ui::Platform::InitOnTopPanel(this);
|
||||
setMouseTracking(true);
|
||||
resize(0, 0);
|
||||
show();
|
||||
hide();
|
||||
createWinId();
|
||||
}
|
||||
|
||||
void PipPanel::setVisibleHook(bool visible) {
|
||||
PipParent::setVisibleHook(visible);
|
||||
|
||||
// workaround Qt's forced transient parent
|
||||
if (visible) {
|
||||
Ui::Platform::ClearTransientParent(this);
|
||||
}
|
||||
}
|
||||
|
||||
void PipPanel::setAspectRatio(QSize ratio) {
|
||||
|
||||
@@ -78,6 +78,8 @@ protected:
|
||||
void mouseReleaseEvent(QMouseEvent *e) override;
|
||||
void mouseMoveEvent(QMouseEvent *e) override;
|
||||
|
||||
void setVisibleHook(bool visible) override;
|
||||
|
||||
private:
|
||||
void setPositionDefault();
|
||||
void setPositionOnScreen(Position position, QRect available);
|
||||
|
||||
Reference in New Issue
Block a user