mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Remove useless code
This commit is contained in:
parent
119f1822b6
commit
466ed47c2a
2 changed files with 0 additions and 19 deletions
10
client.c
10
client.c
|
@ -422,18 +422,8 @@ client_manage(Window w, XWindowAttributes *wa, int screen)
|
||||||
client_setfloating(c, rettrans || c->isfixed);
|
client_setfloating(c, rettrans || c->isfixed);
|
||||||
|
|
||||||
if(!(flags & (USPosition | PPosition)))
|
if(!(flags & (USPosition | PPosition)))
|
||||||
{
|
|
||||||
c->f_geometry =
|
c->f_geometry =
|
||||||
globalconf.screens[c->screen].floating_placement(c->f_geometry, c->border, c->screen);
|
globalconf.screens[c->screen].floating_placement(c->f_geometry, c->border, c->screen);
|
||||||
switch(c->titlebar.position)
|
|
||||||
{
|
|
||||||
case Top:
|
|
||||||
c->f_geometry.y += c->titlebar.sw->geometry.height;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
XSelectInput(globalconf.display, w, StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
|
XSelectInput(globalconf.display, w, StructureNotifyMask | PropertyChangeMask | EnterWindowMask);
|
||||||
|
|
||||||
|
|
|
@ -82,15 +82,6 @@ placement_smart(area_t geometry, int border, int screen)
|
||||||
newgeometry = c->f_geometry;
|
newgeometry = c->f_geometry;
|
||||||
newgeometry.width += 2 * c->border;
|
newgeometry.width += 2 * c->border;
|
||||||
newgeometry.height += 2 * c->border;
|
newgeometry.height += 2 * c->border;
|
||||||
switch(c->titlebar.position)
|
|
||||||
{
|
|
||||||
case Top:
|
|
||||||
newgeometry.height += c->titlebar.sw->geometry.height;
|
|
||||||
newgeometry.y -= c->titlebar.sw->geometry.height;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
area_list_remove(&arealist, &newgeometry);
|
area_list_remove(&arealist, &newgeometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue