Skip to content

Commit

Permalink
Schedule a configure for popups when Popup is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
serebit committed Jul 13, 2024
1 parent 85a0d8f commit 1de2890
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/surface/popup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ Popup::Popup(Surface& parent, wlr_xdg_popup& wlr) noexcept
scene_node->data = this;
wlr.base->surface->data = this;

// just in case the popup hasn't been configured already (2024-07-13)
wlr_xdg_surface_schedule_configure(wlr.base);

listeners.map.notify = popup_map_notify;
wl_signal_add(&wlr.base->surface->events.map, &listeners.map);
listeners.destroy.notify = popup_destroy_notify;
Expand Down

0 comments on commit 1de2890

Please sign in to comment.