mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-10 09:01:55 -07:00
report sizes to all windows on fullscreen
This commit is contained in:
@@ -1405,6 +1405,8 @@ void CCompositor::setWindowFullscreen(CWindow* pWindow, bool on, eFullscreenMode
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv(), true);
|
g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv(), true);
|
||||||
|
|
||||||
|
forceReportSizesToWindowsOnWorkspace(pWindow->m_iWorkspaceID);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCompositor::moveUnmanagedX11ToWindows(CWindow* pWindow) {
|
void CCompositor::moveUnmanagedX11ToWindows(CWindow* pWindow) {
|
||||||
@@ -1605,3 +1607,11 @@ Vector2D CCompositor::parseWindowVectorArgsRelative(const std::string& args, con
|
|||||||
|
|
||||||
return Vector2D(X + relativeTo.x, Y + relativeTo.y);
|
return Vector2D(X + relativeTo.x, Y + relativeTo.y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CCompositor::forceReportSizesToWindowsOnWorkspace(const int& wid) {
|
||||||
|
for (auto& w : m_vWindows) {
|
||||||
|
if (w->m_iWorkspaceID == wid && w->m_bIsMapped && !w->m_bHidden) {
|
||||||
|
g_pXWaylandManager->setWindowSize(w.get(), w->m_vRealSize.vec(), true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -158,6 +158,7 @@ public:
|
|||||||
SLayerSurface* getLayerSurfaceFromSurface(wlr_surface*);
|
SLayerSurface* getLayerSurfaceFromSurface(wlr_surface*);
|
||||||
void closeWindow(CWindow*);
|
void closeWindow(CWindow*);
|
||||||
Vector2D parseWindowVectorArgsRelative(const std::string&, const Vector2D&);
|
Vector2D parseWindowVectorArgsRelative(const std::string&, const Vector2D&);
|
||||||
|
void forceReportSizesToWindowsOnWorkspace(const int&);
|
||||||
|
|
||||||
|
|
||||||
std::string explicitConfigPath;
|
std::string explicitConfigPath;
|
||||||
|
Reference in New Issue
Block a user