Remove an unnecessary variable
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
4d9bbf0ba6
commit
bc6d06a305
|
@ -1501,7 +1501,6 @@ static void
|
||||||
client_resize_do(client_t *c, area_t geometry)
|
client_resize_do(client_t *c, area_t geometry)
|
||||||
{
|
{
|
||||||
lua_State *L = globalconf_get_lua_State();
|
lua_State *L = globalconf_get_lua_State();
|
||||||
bool hide_titlebars = c->fullscreen;
|
|
||||||
|
|
||||||
screen_t *new_screen = c->screen;
|
screen_t *new_screen = c->screen;
|
||||||
if(!screen_area_in_screen(new_screen, geometry))
|
if(!screen_area_in_screen(new_screen, geometry))
|
||||||
|
@ -1516,7 +1515,7 @@ client_resize_do(client_t *c, area_t geometry)
|
||||||
|
|
||||||
/* Configure the client for its new size */
|
/* Configure the client for its new size */
|
||||||
area_t real_geometry = geometry;
|
area_t real_geometry = geometry;
|
||||||
if (!hide_titlebars)
|
if (!c->fullscreen)
|
||||||
{
|
{
|
||||||
real_geometry.x = c->titlebar[CLIENT_TITLEBAR_LEFT].size;
|
real_geometry.x = c->titlebar[CLIENT_TITLEBAR_LEFT].size;
|
||||||
real_geometry.y = c->titlebar[CLIENT_TITLEBAR_TOP].size;
|
real_geometry.y = c->titlebar[CLIENT_TITLEBAR_TOP].size;
|
||||||
|
@ -1570,7 +1569,7 @@ client_resize_do(client_t *c, area_t geometry)
|
||||||
/* Convert to global coordinates */
|
/* Convert to global coordinates */
|
||||||
area.x += geometry.x;
|
area.x += geometry.x;
|
||||||
area.y += geometry.y;
|
area.y += geometry.y;
|
||||||
if (hide_titlebars)
|
if (c->fullscreen)
|
||||||
area.width = area.height = 0;
|
area.width = area.height = 0;
|
||||||
drawable_set_geometry(L, -1, area);
|
drawable_set_geometry(L, -1, area);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue