mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-02 06:46:29 -04:00
opt: compatible with some strange popup request
This commit is contained in:
parent
1632ab634f
commit
bb7b9caa09
1 changed files with 4 additions and 0 deletions
|
|
@ -2556,6 +2556,10 @@ void destroydecoration(struct wl_listener *listener, void *data) {
|
|||
static void popup_unconstrain(Popup *popup) {
|
||||
struct wlr_xdg_popup *wlr_popup = popup->wlr_popup;
|
||||
|
||||
if (!wlr_popup || !wlr_popup->parent) {
|
||||
return;
|
||||
}
|
||||
|
||||
struct wlr_scene_node *parent_node = wlr_popup->parent->data;
|
||||
if (!parent_node) {
|
||||
wlr_log(WLR_ERROR, "Popup parent has no scene node");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue