File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -643,6 +643,10 @@ void Helper::setActivatedSurface(SurfaceWrapper *newActivateSurface)
643
643
644
644
if (newActivateSurface) {
645
645
newActivateSurface->stackToLast ();
646
+ if (newActivateSurface->type () == SurfaceWrapper::Type::XWayland) {
647
+ auto xwaylandSurface = qobject_cast<WXWaylandSurface *>(newActivateSurface->shellSurface ());
648
+ xwaylandSurface->restack (nullptr , WXWaylandSurface::XCB_STACK_MODE_ABOVE);
649
+ }
646
650
}
647
651
648
652
if (m_activatedSurface)
Original file line number Diff line number Diff line change @@ -565,7 +565,12 @@ void WXWaylandSurface::close()
565
565
566
566
void WXWaylandSurface::restack (WXWaylandSurface *sibling, StackMode mode)
567
567
{
568
- handle ()->restack (*sibling->handle (), static_cast <xcb_stack_mode_t >(mode));
568
+ if (sibling) {
569
+ handle ()->restack (*sibling->handle (), static_cast <xcb_stack_mode_t >(mode));
570
+ return ;
571
+ }
572
+
573
+ handle ()->restack (nullptr , static_cast <xcb_stack_mode_t >(mode));
569
574
}
570
575
571
576
WAYLIB_SERVER_END_NAMESPACE
You can’t perform that action at this time.
0 commit comments