mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 05:50:04 +01:00
xwayland: Stop using event address as event_id
Nothing should be relying on this anymore, so use a counter like other
places in the tree instead. This ensures that the event_id doesn't get
cast back into a pointer again in future, and also may be slightly less
confusing in cases where calloc reuses an address as debug logs would
show the same event_id for those but now they will be distinct.
Signed-off-by: Jessica Clarke <jrtc27@jrtc27.com>
(cherry picked from commit 13e513d2f0)
This commit is contained in:
parent
30dc81f4f5
commit
f24e14ef41
1 changed files with 2 additions and 1 deletions
|
|
@ -930,6 +930,7 @@ xwl_present_pixmap(WindowPtr window,
|
|||
present_notify_ptr notifies,
|
||||
int num_notifies)
|
||||
{
|
||||
static uint64_t xwl_present_event_id;
|
||||
uint64_t ust = 0;
|
||||
uint64_t target_msc;
|
||||
uint64_t crtc_msc = 0;
|
||||
|
|
@ -995,7 +996,7 @@ xwl_present_pixmap(WindowPtr window,
|
|||
return BadAlloc;
|
||||
}
|
||||
|
||||
vblank->event_id = (uintptr_t)event;
|
||||
vblank->event_id = ++xwl_present_event_id;
|
||||
|
||||
/* Xwayland presentations always complete (at least) one frame after they
|
||||
* are executed
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue