Skip to content

Commit

Permalink
Don't render selection if has_selection is false.
Browse files Browse the repository at this point in the history
Commit 74a7cff removed a condition where we checked if has_selection
was true before rendering the selection. This puts it back.
  • Loading branch information
tmccombs committed Sep 8, 2020
1 parent 96f5213 commit 8dc2a66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion render.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ void render(struct slurp_output *output) {
if (!seat->wl_pointer) {
continue;
}


if (!current_selection->has_selection) {
continue;
}

if (!box_intersect(&output->logical_geometry,
&current_selection->selection)) {
continue;
Expand Down

0 comments on commit 8dc2a66

Please sign in to comment.