mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-15 22:05:20 -05:00
opt: animations logic all use the int type
This commit is contained in:
parent
e5cfd4e4fc
commit
7d019b7032
21 changed files with 835 additions and 820 deletions
|
|
@ -112,7 +112,7 @@ void dwl_ipc_output_printstatus_to(DwlIpcOutput *ipc_output) {
|
|||
Client *c = NULL, *focused = NULL;
|
||||
struct wlr_keyboard *keyboard;
|
||||
xkb_layout_index_t current;
|
||||
int tagmask, state, numclients, focused_client, tag;
|
||||
int32_t tagmask, state, numclients, focused_client, tag;
|
||||
const char *title, *appid, *symbol;
|
||||
char kb_layout[32];
|
||||
focused = focustop(monitor);
|
||||
|
|
@ -287,7 +287,7 @@ void dwl_ipc_output_dispatch(struct wl_client *client,
|
|||
const char *arg3, const char *arg4,
|
||||
const char *arg5) {
|
||||
|
||||
int (*func)(const Arg *);
|
||||
int32_t (*func)(const Arg *);
|
||||
Arg arg;
|
||||
func = parse_func_name((char *)dispatch, &arg, (char *)arg1, (char *)arg2,
|
||||
(char *)arg3, (char *)arg4, (char *)arg5);
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ static void remove_workspace_by_tag(uint32_t tag, Monitor *m) {
|
|||
}
|
||||
}
|
||||
|
||||
static void add_workspace_by_tag(int tag, Monitor *m) {
|
||||
static void add_workspace_by_tag(int32_t tag, Monitor *m) {
|
||||
const char *name = get_name_from_tag(tag);
|
||||
|
||||
struct workspace *workspace = ecalloc(1, sizeof(*workspace));
|
||||
|
|
@ -162,7 +162,7 @@ void dwl_ext_workspace_printstatus(Monitor *m) {
|
|||
}
|
||||
|
||||
void refresh_monitors_workspaces_status(Monitor *m) {
|
||||
int i;
|
||||
int32_t i;
|
||||
|
||||
if (m->isoverview) {
|
||||
for (i = 1; i <= LENGTH(tags); i++) {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ Monitor *output_from_wlr_output(struct wlr_output *wlr_output) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
Monitor *output_nearest_to(int lx, int ly) {
|
||||
Monitor *output_nearest_to(int32_t lx, int32_t ly) {
|
||||
double closest_x, closest_y;
|
||||
wlr_output_layout_closest_point(output_layout, NULL, lx, ly, &closest_x,
|
||||
&closest_y);
|
||||
|
|
@ -225,7 +225,7 @@ static void update_popup_position(struct dwl_input_method_popup *popup) {
|
|||
Monitor *output = NULL;
|
||||
struct wlr_xdg_positioner_rules pointer_rules;
|
||||
struct wlr_box output_box;
|
||||
int lx, ly;
|
||||
int32_t lx, ly;
|
||||
struct wlr_box popup_box;
|
||||
|
||||
if (!text_input || !relay->focused_surface ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue