X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=src%2Ffloating.c;h=1c35c8d0e854bb3364bd47e761dd26224b36e040;hp=166e054cf67f93942013a0c1f3f6092971db4129;hb=9c15b9504ec4c7201376781234e5611215d120ee;hpb=ac74a6366226ec3e3cc048486b9ff085a074753a diff --git a/src/floating.c b/src/floating.c index 166e054c..1c35c8d0 100644 --- a/src/floating.c +++ b/src/floating.c @@ -535,12 +535,12 @@ void floating_resize_window(Con *con, const bool proportional, * a bitmask of the nearest borders (BORDER_LEFT, BORDER_RIGHT, …) */ border_t corner = 0; - if (event->event_x <= (con->rect.width / 2)) + if (event->event_x <= (int16_t)(con->rect.width / 2)) corner |= BORDER_LEFT; else corner |= BORDER_RIGHT; int cursor = 0; - if (event->event_y <= (con->rect.height / 2)) { + if (event->event_y <= (int16_t)(con->rect.height / 2)) { corner |= BORDER_TOP; cursor = (corner & BORDER_LEFT) ? XCURSOR_CURSOR_TOP_LEFT_CORNER : XCURSOR_CURSOR_TOP_RIGHT_CORNER;