mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
Change WL_ZOMBIE_OBJECT from 0x2 to an actual pointer
In order to use the second-lowest bit of each pointer in wl_map for the WL_MAP_ENTRY_LEGACY flag, every pointer has to be a multiple of 4. This was a good assumption, except with WL_ZOMBIE_OBJECT. This commit creates an actual static variable to which WL_ZOMBIE_OBJECT now points. Since things are only every compared to WL_ZOMBIE_OBJECT with "==" or "!=", the only thing that matters is that it is unique. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
a3870a297c
commit
8fd60c683a
2 changed files with 5 additions and 2 deletions
|
|
@ -29,6 +29,8 @@
|
|||
#include "wayland-util.h"
|
||||
#include "wayland-private.h"
|
||||
|
||||
struct wl_object global_zombie_object;
|
||||
|
||||
WL_EXPORT void
|
||||
wl_list_init(struct wl_list *list)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue