X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=src%2Fhandlers.c;h=b96779178c35151fbefa2e6ac159d18f704ab27c;hp=2cd45b7978fb4dc95318447b867742c474cf2843;hb=HEAD;hpb=ebf40889a13d71b95bec72cbe822c6ffb773dca3 diff --git a/src/handlers.c b/src/handlers.c index 2cd45b79..b9677917 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -908,7 +908,7 @@ static void handle_client_message(xcb_client_message_event_t *event) { case _NET_WM_MOVERESIZE_MOVE: floating_drag_window(con->parent, &fake); break; - case _NET_WM_MOVERESIZE_SIZE_TOPLEFT... _NET_WM_MOVERESIZE_SIZE_LEFT: + case _NET_WM_MOVERESIZE_SIZE_TOPLEFT ... _NET_WM_MOVERESIZE_SIZE_LEFT: floating_resize_window(con->parent, false, &fake); break; default: @@ -949,8 +949,8 @@ static void handle_client_message(xcb_client_message_event_t *event) { } } -bool handle_window_type(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window, - xcb_atom_t atom, xcb_get_property_reply_t *reply) { +static bool handle_window_type(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window, + xcb_atom_t atom, xcb_get_property_reply_t *reply) { Con *con; if ((con = con_by_window_id(window)) == NULL || con->window == NULL) return false; @@ -1072,7 +1072,7 @@ static bool handle_normal_hints(void *data, xcb_connection_t *conn, uint8_t stat /* Convert numerator/denominator to a double */ double min_aspect = (double)size_hints.min_aspect_num / size_hints.min_aspect_den; - double max_aspect = (double)size_hints.max_aspect_num / size_hints.min_aspect_den; + double max_aspect = (double)size_hints.max_aspect_num / size_hints.max_aspect_den; DLOG("Aspect ratio set: minimum %f, maximum %f\n", min_aspect, max_aspect); DLOG("width = %f, height = %f\n", width, height);