layout: Remove layout_tile_switch, useless now
This commit is contained in:
parent
22431c203c
commit
0d8a10f0b9
@ -37,10 +37,10 @@
|
|||||||
* \param x X position
|
* \param x X position
|
||||||
* \param y Y position
|
* \param y Y position
|
||||||
* \param w BarWindow Width
|
* \param w BarWindow Width
|
||||||
* \param h BarWindow HeightXS
|
* \param h BarWindow Height
|
||||||
* \param color BarWindow color
|
* \param color BarWindow color
|
||||||
* \param entermask Bool for know if the EnterMask mask is needed
|
* \param entermask Bool for know if the EnterMask mask is needed
|
||||||
* \return The new BarWindow pointer
|
* \return The BarWindow pointer
|
||||||
*/
|
*/
|
||||||
BarWindow*
|
BarWindow*
|
||||||
bar_create(Window parent,
|
bar_create(Window parent,
|
||||||
|
|||||||
@ -88,7 +88,8 @@ infobar_draw(void)
|
|||||||
draw_text(infobar->bar->dr,
|
draw_text(infobar->bar->dr,
|
||||||
MAXW - textw(infobar->statustext),
|
MAXW - textw(infobar->statustext),
|
||||||
font->height,
|
font->height,
|
||||||
conf.colors.text, 0, infobar->statustext);
|
conf.colors.text, 0,
|
||||||
|
infobar->statustext);
|
||||||
|
|
||||||
bar_refresh(infobar->bar);
|
bar_refresh(infobar->bar);
|
||||||
|
|
||||||
|
|||||||
26
src/layout.c
26
src/layout.c
@ -109,32 +109,6 @@ layoutswitch(Bool b)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tile layout switching function
|
|
||||||
* \param b Bool True : next False : previous
|
|
||||||
*/
|
|
||||||
void
|
|
||||||
layout_tile_switch(Bool b)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for(i = 0; i < conf.ntilelayout; ++i)
|
|
||||||
{
|
|
||||||
if(tags[seltag].layout.func == conf.layout[i].func
|
|
||||||
&& (conf.layout[i].func != freelayout
|
|
||||||
&& conf.layout[i].func != maxlayout))
|
|
||||||
{
|
|
||||||
if(b)
|
|
||||||
tags[seltag].layout = conf.layout[(i + 1) % conf.ntilelayout];
|
|
||||||
else
|
|
||||||
tags[seltag].layout = conf.layout[(i + conf.ntilelayout - 1) % conf.ntilelayout];
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
arrange();
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set the next layout
|
/** Set the next layout
|
||||||
* \param cmd uicb_t type unused
|
* \param cmd uicb_t type unused
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -187,7 +187,6 @@ void uicb_tagtransfert(uicb_t);
|
|||||||
void arrange(void);
|
void arrange(void);
|
||||||
void freelayout(void);
|
void freelayout(void);
|
||||||
void layoutswitch(Bool b);
|
void layoutswitch(Bool b);
|
||||||
void layout_tile_switch(Bool b);
|
|
||||||
void maxlayout(void);
|
void maxlayout(void);
|
||||||
Client *nexttiled(Client *c);
|
Client *nexttiled(Client *c);
|
||||||
/* tile {{{ */
|
/* tile {{{ */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user