Skip to content

Commit

Permalink
Fix get error focus capability for xwayland
Browse files Browse the repository at this point in the history
  • Loading branch information
wineee authored and zccrs committed Oct 17, 2024
1 parent 0663991 commit 68b6927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/protocols/wxwaylandsurface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 68b6927

Please sign in to comment.