diff options
author | vaxerski <[email protected]> | 2023-02-21 20:47:02 +0000 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-02-21 20:47:02 +0000 |
commit | 66e3679ba3dd1412f47e08c52872b7583deff291 (patch) | |
tree | ffa70d7c09927074beb31a7b49cb2bae377a5299 /src/Compositor.cpp | |
parent | 708bb014e9979e55a04c4d254416b7af695594d1 (diff) | |
download | Hyprland-66e3679ba3dd1412f47e08c52872b7583deff291.tar.gz Hyprland-66e3679ba3dd1412f47e08c52872b7583deff291.zip |
Conform to X11 OR surfaces wanting focus
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r-- | src/Compositor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index d4b67a89..8ab741da 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -632,7 +632,7 @@ CWindow* CCompositor::vectorToWindowIdeal(const Vector2D& pos) { if (wlr_box_contains_point(&box, m_sWLRCursor->x, m_sWLRCursor->y)) { - if ((*w)->m_iX11Type == 2) { + if ((*w)->m_bIsX11 && (*w)->m_iX11Type == 2 && !wlr_xwayland_or_surface_wants_focus((*w)->m_uSurface.xwayland)) { // Override Redirect return g_pCompositor->m_pLastWindow; // we kinda trick everything here. // TODO: this is wrong, we should focus the parent, but idk how to get it considering it's nullptr in most cases. |