Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ edge_from_cursor(struct seat *seat, struct output **dest_output,
*edge1 = LAB_EDGE_NONE;
*edge2 = LAB_EDGE_NONE;

if (!view_is_floating(server.grabbed_view)) {
/*
* Overlay updates can also be requested by compositor protocols while no
* interactive move is active. In that case there is no edge-snap
* candidate. Do not pass the NULL grabbed view to view_is_floating().
*/
if (!server.grabbed_view || !view_is_floating(server.grabbed_view)) {
return false;
}

Expand Down
4 changes: 4 additions & 0 deletions src/protocols/singularity-tiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ handle_set_drop_preview(struct wl_client *client, struct wl_resource *resource,
.width = width,
.height = height,
};
if (!manager->drop_preview_active) {
overlay_finish(&server.seat);
return;
}
overlay_update(&server.seat);
}

Expand Down
2 changes: 1 addition & 1 deletion src/regions.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ regions_should_snap(void)
if (server.input_mode != LAB_INPUT_STATE_MOVE
|| wl_list_empty(&rc.regions)
|| server.seat.region_prevent_snap
|| !server.grabbed_view
|| !view_is_floating(server.grabbed_view)) {
return false;
}
Expand Down Expand Up @@ -170,4 +171,3 @@ regions_destroy(struct seat *seat, struct wl_list *regions)
zfree(region);
}
}