Skip to content

Commit

Permalink
fix: incorrect position for notification
Browse files Browse the repository at this point in the history
  • Loading branch information
18202781743 authored and deepin-bot[bot] committed Oct 31, 2024
1 parent 078a819 commit ae99b90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frame/layershell/x11dlayershellemulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ LayerShellEmulation::LayerShellEmulation(QWindow* window, QObject *parent)
// qml height or width may update later, need to update anchor postion and exclusion zone
connect(m_window, &QWindow::widthChanged, this, &LayerShellEmulation::onExclusionZoneChanged);
connect(m_window, &QWindow::widthChanged, this, &LayerShellEmulation::onPositionChanged);
// (x,y) wasn't set correctly by xcb_configure_window, TODO using EventFilter to update positions.
connect(m_window, &QWindow::xChanged, this, &LayerShellEmulation::onPositionChanged);
connect(m_window, &QWindow::yChanged, this, &LayerShellEmulation::onPositionChanged);

connect(m_window, &QWindow::heightChanged, this, &LayerShellEmulation::onExclusionZoneChanged);
connect(m_window, &QWindow::heightChanged, this, &LayerShellEmulation::onPositionChanged);
Expand Down

0 comments on commit ae99b90

Please sign in to comment.