Skip to content

Commit

Permalink
fix another edge case for fullscreen default windows
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Aug 21, 2022
1 parent 3cb30e7 commit f273ebe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/events/Windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion src/managers/XWaylandManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f273ebe

Please sign in to comment.