tell windows to fullscreen on keybind

This commit is contained in:
vaxerski 2022-03-30 17:39:04 +02:00
parent d01c7c07d8
commit 7439246efb
3 changed files with 11 additions and 0 deletions

View file

@ -174,4 +174,12 @@ void CHyprXWaylandManager::checkBorders(CWindow* pWindow) {
if (pWindow->m_uSurface.xwayland->parent) {
pWindow->m_bX11DoesntWantBorders = true;
}
}
void CHyprXWaylandManager::setWindowFullscreen(CWindow* pWindow, bool fullscreen) {
if (pWindow->m_bIsX11) {
wlr_xwayland_surface_set_fullscreen(pWindow->m_uSurface.xwayland, fullscreen);
} else {
wlr_xdg_toplevel_set_fullscreen(pWindow->m_uSurface.xdg->toplevel, fullscreen);
}
}