aboutsummaryrefslogtreecommitdiff
path: root/src/resize.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/resize.c')
-rw-r--r--src/resize.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resize.c b/src/resize.c
index 3b90f3aa..7a9e82dc 100644
--- a/src/resize.c
+++ b/src/resize.c
@@ -50,15 +50,17 @@ DRAGGING_CB(resize_callback) {
if (params->orientation == HORIZ) {
/* Check if the new coordinates are within screen boundaries */
if (new_x > (output->rect.x + output->rect.width - 25) ||
- new_x < (output->rect.x + 25))
+ new_x < (output->rect.x + 25)) {
return;
+ }
*(params->new_position) = new_x;
xcb_configure_window(conn, params->helpwin, XCB_CONFIG_WINDOW_X, params->new_position);
} else {
if (new_y > (output->rect.y + output->rect.height - 25) ||
- new_y < (output->rect.y + 25))
+ new_y < (output->rect.y + 25)) {
return;
+ }
*(params->new_position) = new_y;
xcb_configure_window(conn, params->helpwin, XCB_CONFIG_WINDOW_Y, params->new_position);