]> git.mdlowis.com Git - proto/labwc.git/commit
xwayland: Prevents usage of invalid data pointer
authorJens Peters <jp7677@gmail.com>
Fri, 22 Dec 2023 10:20:42 +0000 (11:20 +0100)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 22 Dec 2023 10:24:49 +0000 (11:24 +0100)
commit44c79c4963c80e951a0733158250050fab55a910
tree870f14461f346c1ff07ccf465f21638a53188c1c
parent1e807ce654dc0acfb9f761a306f77a18ce735b4f
xwayland: Prevents usage of invalid data pointer

There are situations where the data pointer of a parent is NULL.
Checking for NULL first fixes e.g. a segmentation fault in CLion
when opening the settings window from a popup menu.

See also https://github.com/labwc/labwc/issues/1351#issuecomment-1867475324
src/xwayland.c