Changeset View
Changeset View
Standalone View
Standalone View
shell_client.cpp
Show First 20 Lines • Show All 1568 Lines • ▼ Show 20 Line(s) | 1568 | if (t) { | |||
---|---|---|---|---|---|
1569 | t->addTransient(this); | 1569 | t->addTransient(this); | ||
1570 | } | 1570 | } | ||
1571 | } | 1571 | } | ||
1572 | m_transient = (s != nullptr); | 1572 | m_transient = (s != nullptr); | ||
1573 | } | 1573 | } | ||
1574 | 1574 | | |||
1575 | bool ShellClient::hasTransientPlacementHint() const | 1575 | bool ShellClient::hasTransientPlacementHint() const | ||
1576 | { | 1576 | { | ||
1577 | return isTransient() && transientFor() != nullptr; | 1577 | return isTransient() && transientFor() != nullptr && | ||
1578 | (m_shellSurface || m_xdgShellPopup); | ||||
1578 | } | 1579 | } | ||
1579 | 1580 | | |||
1580 | QPoint ShellClient::transientPlacementHint() const | 1581 | QPoint ShellClient::transientPlacementHint() const | ||
1581 | { | 1582 | { | ||
1582 | if (m_shellSurface) { | 1583 | if (m_shellSurface) { | ||
1583 | return m_shellSurface->transientOffset(); | 1584 | return m_shellSurface->transientOffset(); | ||
1584 | } | 1585 | } | ||
1585 | if (m_xdgShellPopup) { | 1586 | if (m_xdgShellPopup) { | ||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |