xdgshell: bump to 6, send suspended states
This commit is contained in:
parent
5c7e23f86b
commit
d5811283d2
5 changed files with 32 additions and 2 deletions
|
|
@ -511,6 +511,8 @@ void CWindow::setHidden(bool hidden) {
|
|||
if (hidden && g_pCompositor->m_pLastWindow == this) {
|
||||
g_pCompositor->m_pLastWindow = nullptr;
|
||||
}
|
||||
|
||||
setSuspended(hidden);
|
||||
}
|
||||
|
||||
bool CWindow::isHidden() {
|
||||
|
|
@ -1007,3 +1009,13 @@ bool CWindow::shouldSendFullscreenState() {
|
|||
const auto MODE = g_pCompositor->getWorkspaceByID(m_iWorkspaceID)->m_efFullscreenMode;
|
||||
return m_bFakeFullscreenState || (m_bIsFullscreen && (MODE == FULLSCREEN_FULL));
|
||||
}
|
||||
|
||||
void CWindow::setSuspended(bool suspend) {
|
||||
if (suspend == m_bSuspended)
|
||||
return;
|
||||
|
||||
if (m_bIsX11)
|
||||
return;
|
||||
|
||||
wlr_xdg_toplevel_set_suspended(m_uSurface.xdg->toplevel, suspend);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue