mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-04-08 08:21:00 -04:00
constraint popups to monitor
This commit is contained in:
parent
1183a319a0
commit
c07a22a923
1 changed files with 3 additions and 1 deletions
4
dwl.c
4
dwl.c
|
|
@ -886,8 +886,10 @@ createnotify(struct wl_listener *listener, void *data)
|
|||
struct wlr_xdg_surface *xdg_surface = data;
|
||||
Client *c;
|
||||
|
||||
if (xdg_surface->role != WLR_XDG_SURFACE_ROLE_TOPLEVEL)
|
||||
if (xdg_surface->role != WLR_XDG_SURFACE_ROLE_TOPLEVEL) {
|
||||
wlr_xdg_popup_unconstrain_from_box(xdg_surface->popup, &selmon->m);
|
||||
return;
|
||||
}
|
||||
|
||||
/* Allocate a Client for this surface */
|
||||
c = xdg_surface->data = calloc(1, sizeof(*c));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue