cmd_move_window_to_position: improve error message

This commit is contained in:
Orestis Floros
2018-03-18 02:41:12 +02:00
parent 174dc389ff
commit 5e8a3f3f0c
3 changed files with 8 additions and 5 deletions

View File

@ -864,12 +864,12 @@ drag_result_t drag_pointer(Con *con, const xcb_button_press_event_t *event, xcb_
* outputs.
*
*/
void floating_reposition(Con *con, Rect newrect) {
bool 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)) {
ELOG("No output found at destination coordinates. Not repositioning.\n");
return;
return false;
}
con->rect = newrect;
@ -881,6 +881,7 @@ void floating_reposition(Con *con, Rect newrect) {
con->scratchpad_state = SCRATCHPAD_CHANGED;
tree_render();
return true;
}
/*