contained_by_output: return output and rename to output_containing_rect

This commit is contained in:
Orestis Floros
2018-03-17 17:42:49 +02:00
parent 8f5c1cb6b8
commit e09861f73f
3 changed files with 23 additions and 14 deletions

View File

@ -867,7 +867,7 @@ drag_result_t drag_pointer(Con *con, const xcb_button_press_event_t *event, xcb_
void floating_reposition(Con *con, Rect newrect) {
/* Sanity check: Are the new coordinates on any output? If not, we
* ignore that request. */
if (!contained_by_output(newrect)) {
if (!output_containing_rect(newrect)) {
ELOG("No output found at destination coordinates. Not repositioning.\n");
return;
}