Make policy handle if top shelf, bottom panel, etc, are sticky.

SVN revision: 44086
This commit is contained in:
Christopher Michael 2009-12-01 10:07:24 +00:00
parent 052d2a0ec0
commit dced54c0bb
1 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#include "e.h"
#include "e_mod_main.h"
#include "e_mod_config.h"
#include "e_mod_layout.h"
#include "e_mod_layout_illume.h"
@ -77,11 +78,13 @@ _zone_layout(E_Zone *z)
if (illume_border_is_top_shelf(bd))
{
e_border_move_resize(bd, z->x, z->y, z->w, shelfsize);
e_border_stick(bd);
if (bd->layer != 200) e_border_layer_set(bd, 200);
}
else if (illume_border_is_bottom_panel(bd))
{
e_border_move_resize(bd, z->x, z->y + z->h - panelsize, z->w, panelsize);
e_border_stick(bd);
if (bd->layer != 100) e_border_layer_set(bd, 100);
}
else if (illume_border_is_keyboard(bd))
@ -102,7 +105,14 @@ _zone_layout(E_Zone *z)
}
else
{
e_border_move_resize(bd, z->x, z->y + shelfsize, z->w, z->h - shelfsize - kbdsize);
if (il_cfg->policy.mode.dual)
{
/* determine where to place this border based on if any
* other borders are present, and also based on what the
* current policy 'side' is set to */
}
else
e_border_move_resize(bd, z->x, z->y + shelfsize, z->w, z->h - shelfsize - kbdsize);
if (bd->layer != 100) e_border_layer_set(bd, 100);
}
}