mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
fix popups appearing outside the monitor
and a potentially crash
This commit is contained in:
parent
c9a0a8bf6d
commit
19b5d47a9e
1 changed files with 1 additions and 1 deletions
2
dwl.c
2
dwl.c
|
@ -914,7 +914,7 @@ createnotify(struct wl_listener *listener, void *data)
|
|||
return;
|
||||
xdg_surface->surface->data = wlr_scene_xdg_surface_create(
|
||||
xdg_surface->popup->parent->data, xdg_surface);
|
||||
if ((!l || !l->mon) || (!c || !c->mon))
|
||||
if ((l && !l->mon) || (c && !c->mon))
|
||||
return;
|
||||
box = type == LayerShell ? l->mon->m : c->mon->w;
|
||||
box.x -= (type == LayerShell ? l->geom.x : c->geom.x);
|
||||
|
|
Loading…
Reference in a new issue