mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 22:26:00 +01:00
layout: allow changing float status of fullscreen windows
This commit is contained in:
parent
b8f38dcbd3
commit
981386d2ae
1 changed files with 2 additions and 5 deletions
|
@ -394,11 +394,8 @@ void IHyprLayout::onMouseMove(const Vector2D& mousePos) {
|
||||||
void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) {
|
void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) {
|
||||||
|
|
||||||
if (pWindow->m_bIsFullscreen) {
|
if (pWindow->m_bIsFullscreen) {
|
||||||
Debug::log(LOG, "Rejecting a change float order because window is fullscreen.");
|
Debug::log(LOG, "changeWindowFloatingMode: fullscreen");
|
||||||
|
g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);
|
||||||
// restore its' floating mode
|
|
||||||
pWindow->m_bIsFloating = !pWindow->m_bIsFloating;
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pWindow->m_bPinned = false;
|
pWindow->m_bPinned = false;
|
||||||
|
|
Loading…
Reference in a new issue