tell windows to fullscreen on keybind
This commit is contained in:
parent
d01c7c07d8
commit
7439246efb
3 changed files with 11 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue