cursor-renderer: Popups need to set cursors, too

Popups could not set the cursor image, because the cursor tracker would
ignore window cursors if we had a popup active. The correct condition to
check for is already in should_block_wayland. Rename this to the more
sensible name windows_are_interactable, and use it in the cursor tracker.
This commit is contained in:
Jasper St. Pierre
2014-08-15 13:30:31 -04:00
parent f8dcea3975
commit 471e6b9e13
3 changed files with 8 additions and 10 deletions

View File

@ -61,7 +61,7 @@ get_displayed_cursor (MetaCursorTracker *tracker)
if (!tracker->is_showing)
return NULL;
if (display->grab_op == META_GRAB_OP_NONE)
if (meta_grab_op_windows_are_interactable (display->grab_op))
{
if (tracker->has_window_cursor)
return tracker->window_cursor;