forked from enlightenment/enlightenment
Trap for quickpanel windows. Not actually doing anything with them yet tho.
SVN revision: 44694
This commit is contained in:
parent
69581f2d37
commit
5906ab2010
|
@ -219,6 +219,12 @@ e_mod_border_is_conformant(E_Border *bd)
|
||||||
return ecore_x_e_illume_conformant_get(bd->client.win);
|
return ecore_x_e_illume_conformant_get(bd->client.win);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Eina_Bool
|
||||||
|
e_mod_border_is_quickpanel(E_Border *bd)
|
||||||
|
{
|
||||||
|
return ecore_x_e_illume_quickpanel_get(bd->client.win);
|
||||||
|
}
|
||||||
|
|
||||||
Eina_List *
|
Eina_List *
|
||||||
e_mod_border_valid_borders_get(E_Zone *zone)
|
e_mod_border_valid_borders_get(E_Zone *zone)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,7 @@ Eina_Bool e_mod_border_is_side_pane_left(E_Border *bd);
|
||||||
Eina_Bool e_mod_border_is_side_pane_right(E_Border *bd);
|
Eina_Bool e_mod_border_is_side_pane_right(E_Border *bd);
|
||||||
Eina_Bool e_mod_border_is_overlay(E_Border *bd);
|
Eina_Bool e_mod_border_is_overlay(E_Border *bd);
|
||||||
Eina_Bool e_mod_border_is_conformant(E_Border *bd);
|
Eina_Bool e_mod_border_is_conformant(E_Border *bd);
|
||||||
|
Eina_Bool e_mod_border_is_quickpanel(E_Border *bd);
|
||||||
|
|
||||||
Eina_List *e_mod_border_valid_borders_get(E_Zone *zone);
|
Eina_List *e_mod_border_valid_borders_get(E_Zone *zone);
|
||||||
E_Border *e_mod_border_valid_border_get(E_Zone *zone);
|
E_Border *e_mod_border_valid_border_get(E_Zone *zone);
|
||||||
|
|
|
@ -8,12 +8,12 @@
|
||||||
|
|
||||||
/* define some values here for easily changing layers so we don't have to
|
/* define some values here for easily changing layers so we don't have to
|
||||||
* grep through code to change layers */
|
* grep through code to change layers */
|
||||||
#define IL_TOP_SHELF_LAYER 180
|
#define IL_TOP_SHELF_LAYER 200
|
||||||
#define IL_BOTTOM_PANEL_LAYER 100
|
#define IL_BOTTOM_PANEL_LAYER 100
|
||||||
#define IL_KEYBOARD_LAYER 150
|
#define IL_KEYBOARD_LAYER 150
|
||||||
#define IL_DIALOG_LAYER 120
|
#define IL_DIALOG_LAYER 120
|
||||||
#define IL_CONFORM_LAYER 140
|
#define IL_CONFORM_LAYER 140
|
||||||
#define IL_FULLSCREEN_LAYER 200
|
#define IL_FULLSCREEN_LAYER 140
|
||||||
#define IL_QUICK_PANEL_LAYER 160
|
#define IL_QUICK_PANEL_LAYER 160
|
||||||
#define IL_APP_LAYER 100
|
#define IL_APP_LAYER 100
|
||||||
|
|
||||||
|
@ -334,6 +334,15 @@ _zone_layout(E_Zone *z)
|
||||||
if (bd->layer != IL_DIALOG_LAYER)
|
if (bd->layer != IL_DIALOG_LAYER)
|
||||||
e_border_layer_set(bd, IL_DIALOG_LAYER);
|
e_border_layer_set(bd, IL_DIALOG_LAYER);
|
||||||
}
|
}
|
||||||
|
else if (e_mod_border_is_quickpanel(bd))
|
||||||
|
{
|
||||||
|
int mw, mh;
|
||||||
|
|
||||||
|
printf("Found Quickpanel Window: %s\n", bd->client.icccm.class);
|
||||||
|
e_mod_border_min_get(bd, &mw, &mh);
|
||||||
|
if (bd->layer != IL_QUICK_PANEL_LAYER)
|
||||||
|
e_border_layer_set(bd, IL_QUICK_PANEL_LAYER);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (e_mod_border_is_conformant(bd))
|
if (e_mod_border_is_conformant(bd))
|
||||||
|
|
Loading…
Reference in New Issue