Skip to content

Commit

Permalink
xwayland: ignore OR activate requests if surface doesn't want focus
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Feb 17, 2024
1 parent e3e7e1f commit cdcc5ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/events/Windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,9 @@ void Events::listener_activateX11(void* owner, void* data) {
if (g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->getPID() != PWINDOW->getPID())
return;

if (!wlr_xwayland_or_surface_wants_focus(PWINDOW->m_uSurface.xwayland))
return;

g_pCompositor->focusWindow(PWINDOW);
return;
}
Expand Down

0 comments on commit cdcc5ab

Please sign in to comment.