Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Dec 6, 2020
1 parent 3fe4c77 commit 306d7cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ static EVENT_CALLBACK(EVENT_HANDLER_MOUSE_DRAGGED)
if (point.x > frame_mid.x) direction |= HANDLE_RIGHT;
if (point.y > frame_mid.y) direction |= HANDLE_BOTTOM;

_window_manager_resize_window_relative(g_mouse_state.window, frame, direction, dx, dy);
window_manager_resize_window_relative_internal(g_mouse_state.window, frame, direction, dx, dy);

g_mouse_state.last_moved_time = event_time;
g_mouse_state.down_location = point;
Expand Down
4 changes: 2 additions & 2 deletions src/window_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ enum window_op_error window_manager_move_window_relative(struct window_manager *
return WINDOW_OP_ERROR_SUCCESS;
}

void _window_manager_resize_window_relative(struct window *window, CGRect frame, int direction, float dx, float dy)
void window_manager_resize_window_relative_internal(struct window *window, CGRect frame, int direction, float dx, float dy)
{
int x_mod = (direction & HANDLE_LEFT) ? -1 : (direction & HANDLE_RIGHT) ? 1 : 0;
int y_mod = (direction & HANDLE_TOP) ? -1 : (direction & HANDLE_BOTTOM) ? 1 : 0;
Expand Down Expand Up @@ -407,7 +407,7 @@ enum window_op_error window_manager_resize_window_relative(struct window_manager
window_manager_resize_window(window, dx, dy);
});
} else {
_window_manager_resize_window_relative(window, window_frame(window), direction, dx, dy);
window_manager_resize_window_relative_internal(window, window_frame(window), direction, dx, dy);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/window_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void window_manager_remove_application(struct window_manager *wm, pid_t pid);
void window_manager_add_application(struct window_manager *wm, struct application *application);
struct window **window_manager_find_application_windows(struct window_manager *wm, struct application *application, int *window_count);
enum window_op_error window_manager_move_window_relative(struct window_manager *wm, struct window *window, int type, float dx, float dy);
void _window_manager_resize_window_relative(struct window *window, CGRect frame, int direction, float dx, float dy);
void window_manager_resize_window_relative_internal(struct window *window, CGRect frame, int direction, float dx, float dy);
enum window_op_error window_manager_resize_window_relative(struct window_manager *wm, struct window *window, int direction, float dx, float dy);
void window_manager_set_purify_mode(struct window_manager *wm, enum purify_mode mode);
void window_manager_set_active_window_opacity(struct window_manager *wm, float opacity);
Expand Down

0 comments on commit 306d7cc

Please sign in to comment.