mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 15:45:59 +01:00
xwayland: ignore OR activate requests if surface doesn't want focus
This commit is contained in:
parent
e3e7e1fdda
commit
cdcc5aba06
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue