forked from enlightenment/enlightenment
Don't need to pass coords to e_hints_window_saved_size_(get|set)()
SVN revision: 15821
This commit is contained in:
parent
60aebeadff
commit
dfed003f00
|
@ -1131,7 +1131,7 @@ e_border_maximize(E_Border *bd, E_Maximize max)
|
|||
bd->saved.y = bd->y;
|
||||
bd->saved.w = bd->w;
|
||||
bd->saved.h = bd->h;
|
||||
e_hints_window_saved_size_set(bd, bd->x, bd->y, bd->w, bd->h);
|
||||
e_hints_window_saved_size_set(bd);
|
||||
}
|
||||
|
||||
e_border_raise(bd);
|
||||
|
@ -1274,7 +1274,7 @@ e_border_unmaximize(E_Border *bd)
|
|||
|
||||
e_border_move_resize(bd, bd->saved.x, bd->saved.y, bd->saved.w, bd->saved.h);
|
||||
bd->saved.x = bd->saved.y = bd->saved.w = bd->saved.h = 0;
|
||||
e_hints_window_saved_size_set(bd, 0, 0, 0, 0);
|
||||
e_hints_window_saved_size_set(bd);
|
||||
|
||||
edje_object_signal_emit(bd->bg_object, "unmaximize", "");
|
||||
}
|
||||
|
@ -1302,7 +1302,7 @@ e_border_fullscreen(E_Border *bd)
|
|||
bd->saved.y = bd->y;
|
||||
bd->saved.w = bd->w;
|
||||
bd->saved.h = bd->h;
|
||||
e_hints_window_saved_size_set(bd, bd->x, bd->y, bd->w, bd->h);
|
||||
e_hints_window_saved_size_set(bd);
|
||||
}
|
||||
|
||||
bd->client_inset.sl = bd->client_inset.l;
|
||||
|
|
|
@ -399,7 +399,7 @@ e_hints_window_init(E_Border *bd)
|
|||
e_border_shade(bd, e_hints_window_shade_direction_get(bd));
|
||||
if ((bd->client.netwm.state.maximized_v) && (bd->client.netwm.state.maximized_h))
|
||||
{
|
||||
e_hints_window_saved_size_get(bd, &bd->saved.x, &bd->saved.y, &bd->saved.w, &bd->saved.h);
|
||||
e_hints_window_saved_size_get(bd);
|
||||
e_border_maximize(bd, e_config->maximize_policy);
|
||||
}
|
||||
if (bd->client.netwm.state.fullscreen)
|
||||
|
@ -998,19 +998,19 @@ e_hints_window_shade_direction_get(E_Border *bd)
|
|||
}
|
||||
|
||||
void
|
||||
e_hints_window_saved_size_set(E_Border *bd, int x, int y, int w, int h)
|
||||
e_hints_window_saved_size_set(E_Border *bd)
|
||||
{
|
||||
unsigned int sizes[4];
|
||||
|
||||
sizes[0] = x;
|
||||
sizes[1] = y;
|
||||
sizes[2] = w;
|
||||
sizes[3] = h;
|
||||
sizes[0] = bd->saved.x;
|
||||
sizes[1] = bd->saved.y;
|
||||
sizes[2] = bd->saved.w;
|
||||
sizes[3] = bd->saved.h;
|
||||
ecore_x_window_prop_card32_set(bd->client.win, E_ATOM_SAVED_SIZE, sizes, 4);
|
||||
}
|
||||
|
||||
int
|
||||
e_hints_window_saved_size_get(E_Border *bd, int *x, int *y, int *w, int *h)
|
||||
e_hints_window_saved_size_get(E_Border *bd)
|
||||
{
|
||||
int ret;
|
||||
int sizes[4];
|
||||
|
@ -1018,10 +1018,10 @@ e_hints_window_saved_size_get(E_Border *bd, int *x, int *y, int *w, int *h)
|
|||
memset(sizes, 0, sizeof(sizes));
|
||||
ret = ecore_x_window_prop_card32_get(bd->client.win, E_ATOM_SAVED_SIZE,
|
||||
sizes, 4);
|
||||
if (x) *x = sizes[0];
|
||||
if (y) *y = sizes[1];
|
||||
if (w) *w = sizes[2];
|
||||
if (h) *h = sizes[3];
|
||||
bd->saved.x = sizes[0];
|
||||
bd->saved.y = sizes[1];
|
||||
bd->saved.w = sizes[2];
|
||||
bd->saved.h = sizes[3];
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -30,10 +30,8 @@ EAPI void e_hints_window_hidden_set(E_Border *bd);
|
|||
EAPI void e_hints_window_shade_direction_set(E_Border *bd, E_Direction dir);
|
||||
EAPI E_Direction e_hints_window_shade_direction_get(E_Border *bd);
|
||||
|
||||
EAPI void e_hints_window_saved_size_set(E_Border *bd,
|
||||
int x, int y, int w, int h);
|
||||
EAPI int e_hints_window_saved_size_get(E_Border *bd,
|
||||
int *x, int *y, int *w, int *h);
|
||||
EAPI void e_hints_window_saved_size_set(E_Border *bd);
|
||||
EAPI int e_hints_window_saved_size_get(E_Border *bd);
|
||||
|
||||
EAPI void e_hints_window_shaded_set(E_Border *bd, int on);
|
||||
EAPI void e_hints_window_maximized_set(E_Border *bd, int on);
|
||||
|
|
Loading…
Reference in New Issue