Skip to content

Commit

Permalink
core: make sure to not call pointer_notify_enter() with NULL
Browse files Browse the repository at this point in the history
This is now not allowed in wlroots.
  • Loading branch information
ammen99 committed Jun 24, 2020
1 parent 248b577 commit 0e4e29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/seat/pointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void wf::LogicalPointer::update_cursor_focus(wf::surface_interface_t *focus,

cursor_focus = focus;
wlr_surface *next_focus_wlr_surface = nullptr;
if (focus && !compositor_surface_from_surface(focus))
if (focus && focus->get_wlr_surface())
{
next_focus_wlr_surface = focus->get_wlr_surface();
wlr_seat_pointer_notify_enter(input->seat, next_focus_wlr_surface,
Expand Down

0 comments on commit 0e4e29a

Please sign in to comment.