Config dialogs take up all zone space even in dual mode (until I'm told
otherwise). SVN revision: 44282
This commit is contained in:
parent
e32dbce033
commit
06a58496d9
|
@ -5,9 +5,6 @@
|
||||||
#include "e_mod_layout_illume.h"
|
#include "e_mod_layout_illume.h"
|
||||||
#include "e_kbd.h"
|
#include "e_kbd.h"
|
||||||
|
|
||||||
/* local function prototypes */
|
|
||||||
static void _border_calc_position(E_Zone *z, E_Border *bd, int *x, int *y, int *w, int *h);
|
|
||||||
|
|
||||||
/* local variables */
|
/* local variables */
|
||||||
static int shelfsize = 0;
|
static int shelfsize = 0;
|
||||||
static int kbdsize = 0;
|
static int kbdsize = 0;
|
||||||
|
@ -128,6 +125,13 @@ _zone_layout(E_Zone *z)
|
||||||
if ((bd->x != z->x) || (bd->y != (z->y + ((z->h - mh) / 2))))
|
if ((bd->x != z->x) || (bd->y != (z->y + ((z->h - mh) / 2))))
|
||||||
e_border_fx_offset(bd, z->x, (z->y + ((z->h - mh) / 2)));
|
e_border_fx_offset(bd, z->x, (z->y + ((z->h - mh) / 2)));
|
||||||
}
|
}
|
||||||
|
else if (strstr(bd->client.icccm.class, "config"))
|
||||||
|
{
|
||||||
|
if ((bd->w != z->w) || (bd->h != (z->h - shelfsize - panelsize)))
|
||||||
|
e_border_resize(bd, z->w, (z->h - shelfsize - panelsize));
|
||||||
|
if ((bd->x != z->x) || (bd->y != (z->y + shelfsize)))
|
||||||
|
e_border_fx_offset(bd, z->x, (z->y + shelfsize));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (!il_cfg->policy.mode.dual)
|
if (!il_cfg->policy.mode.dual)
|
||||||
|
@ -201,29 +205,6 @@ _border_activate(E_Border *bd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* local functions */
|
|
||||||
static void
|
|
||||||
_border_calc_position(E_Zone *z, E_Border *bd, int *x, int *y, int *w, int *h)
|
|
||||||
{
|
|
||||||
if ((!z) || (!bd)) return;
|
|
||||||
if (x) *x = z->x;
|
|
||||||
if (y) *y = (z->y + shelfsize);
|
|
||||||
if (w) *w = z->w;
|
|
||||||
if (illume_border_is_conformant(bd))
|
|
||||||
{
|
|
||||||
if (h) *h = (z->h - shelfsize);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (h) *h = (z->h - shelfsize - panelsize);
|
|
||||||
}
|
|
||||||
if (il_cfg->policy.mode.dual)
|
|
||||||
{
|
|
||||||
/* we ignore config dialogs as we want them fullscreen in dual mode */
|
|
||||||
if (strstr(bd->client.icccm.class, "config")) return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
const Illume_Layout_Mode laymode =
|
const Illume_Layout_Mode laymode =
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue