Skip to content

Commit

Permalink
xwayland: Don't attempt to restack OR surfaces
Browse files Browse the repository at this point in the history
This leads to a crash on wlroots 0.18, as wlroots handles this already.
  • Loading branch information
soreau committed Aug 27, 2024
1 parent 1db9aeb commit 0ec609a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/view/xwayland.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@ void wf::xwayland_bring_to_front(wlr_surface *surface)

if (wlr_xwayland_surface *xwayland_surface = wlr_xwayland_surface_try_from_wlr_surface(surface))
{
wlr_xwayland_surface_restack(xwayland_surface, NULL, XCB_STACK_MODE_ABOVE);
if (!xwayland_surface->override_redirect)
{
wlr_xwayland_surface_restack(xwayland_surface, NULL, XCB_STACK_MODE_ABOVE);
}
}

#endif
Expand Down

0 comments on commit 0ec609a

Please sign in to comment.