Skip to content

Commit

Permalink
Update platform/wayland/cog-platform-wl.c
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Perez <[email protected]>
  • Loading branch information
psaavedra and aperezdc authored Nov 23, 2023
1 parent e6c7be5 commit 3369bd2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions platform/wayland/cog-platform-wl.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,9 @@ keyboard_on_enter(void *data,
struct wl_surface *surface,
struct wl_array *keys)
{
if (!surface) {
g_warning("%s: Not surface associated.", G_STRFUNC);
// We might be reading pending events after destroying the surface.
if (!surface)
return;
}

CogWlSeat *seat = data;

Expand Down

0 comments on commit 3369bd2

Please sign in to comment.