diff --git a/src/server/protocols/wxwaylandsurface.cpp b/src/server/protocols/wxwaylandsurface.cpp index 54baf621..95364a87 100644 --- a/src/server/protocols/wxwaylandsurface.cpp +++ b/src/server/protocols/wxwaylandsurface.cpp @@ -339,8 +339,8 @@ bool WXWaylandSurface::hasCapability(Capability cap) const switch (cap) { using enum Capability; case Focus: - return !wlr_xwayland_or_surface_wants_focus(d->nativeHandle()) - || wlr_xwayland_icccm_input_model(d->nativeHandle()) == WLR_ICCCM_INPUT_MODEL_NONE; + return wlr_xwayland_or_surface_wants_focus(d->nativeHandle()) + && wlr_xwayland_icccm_input_model(d->nativeHandle()) != WLR_ICCCM_INPUT_MODEL_NONE; case Activate: case Maximized: case FullScreen: