diff options
author | vaxerski <[email protected]> | 2022-08-21 23:24:57 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-21 23:24:57 +0200 |
commit | f273ebed9cab738b2f6000a73df7fad08a279c15 (patch) | |
tree | 6a0453d579ea8a41aa48c295dea4ee327aa9483b | |
parent | 3cb30e7fb09cdd0f6b41fe57173f5dab8bdc0093 (diff) | |
download | Hyprland-0.11.0beta.tar.gz Hyprland-0.11.0beta.zip |
fix another edge case for fullscreen default windowsv0.11.0beta
-rw-r--r-- | src/events/Windows.cpp | 2 | ||||
-rw-r--r-- | src/managers/XWaylandManager.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 3c8d0009..a52553e2 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -107,7 +107,7 @@ void Events::listener_mapWindow(void* owner, void* data) { const auto WINDOWRULES = g_pConfigManager->getMatchingRules(PWINDOW); std::string requestedWorkspace = ""; bool workspaceSilent = false; - bool requestsFullscreen = PWINDOW->m_bWantsInitialFullscreen; + bool requestsFullscreen = PWINDOW->m_bWantsInitialFullscreen || (!PWINDOW->m_bIsX11 && PWINDOW->m_uSurface.xdg->role == WLR_XDG_SURFACE_ROLE_TOPLEVEL && PWINDOW->m_uSurface.xdg->toplevel->requested.fullscreen); for (auto& r : WINDOWRULES) { if (r.szRule.find("monitor") == 0) { diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp index 655ba75a..14642878 100644 --- a/src/managers/XWaylandManager.cpp +++ b/src/managers/XWaylandManager.cpp @@ -34,7 +34,6 @@ wlr_surface* CHyprXWaylandManager::getWindowSurface(CWindow* pWindow) { void CHyprXWaylandManager::activateSurface(wlr_surface* pSurface, bool activate) { if (wlr_surface_is_xdg_surface(pSurface)) { const auto PSURF = wlr_xdg_surface_from_wlr_surface(pSurface); - if (PSURF->role == WLR_XDG_SURFACE_ROLE_TOPLEVEL) { wlr_xdg_toplevel_set_activated(PSURF->toplevel, activate); } |