forked from mirror/dwl
unconstrain layer shell popups from monitor size
unconstrain other popups from monitor usable area
This commit is contained in:
parent
c1578bc14d
commit
097b4a30f5
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -956,7 +956,7 @@ createnotify(struct wl_listener *listener, void *data)
|
||||||
xdg_surface->popup->parent->data, xdg_surface);
|
xdg_surface->popup->parent->data, xdg_surface);
|
||||||
if (!(c = toplevel_from_popup(xdg_surface->popup)) || !c->mon)
|
if (!(c = toplevel_from_popup(xdg_surface->popup)) || !c->mon)
|
||||||
return;
|
return;
|
||||||
box = c->mon->w;
|
box = c->type == LayerShell ? c->mon->m : c->mon->w;
|
||||||
box.x -= c->geom.x;
|
box.x -= c->geom.x;
|
||||||
box.y -= c->geom.y;
|
box.y -= c->geom.y;
|
||||||
wlr_xdg_popup_unconstrain_from_box(xdg_surface->popup, &box);
|
wlr_xdg_popup_unconstrain_from_box(xdg_surface->popup, &box);
|
||||||
|
|
Loading…
Reference in a new issue