forked from enlightenment/enlightenment
Whitespace removal.
Add some printfs to start working on window stacks. SVN revision: 43986
This commit is contained in:
parent
3598e6ca4a
commit
536e398969
|
@ -109,7 +109,7 @@ _e_kbd_free(E_Kbd *kbd)
|
|||
kbds = eina_list_remove(kbds, kbd);
|
||||
if (kbd->animator) ecore_animator_del(kbd->animator);
|
||||
if (kbd->delay_hide) ecore_timer_del(kbd->delay_hide);
|
||||
// FIXME: thought right - on shutdoiwn, this might point to freed data
|
||||
// FIXME: thought right - on shutdown, this might point to freed data
|
||||
// if (kbd->border) kbd->border->stolen = 0;
|
||||
EINA_LIST_FREE(kbd->waiting_borders, bd)
|
||||
bd->stolen = 0;
|
||||
|
|
|
@ -179,8 +179,9 @@ illume_border_is_keyboard(E_Border *bd)
|
|||
Eina_Bool
|
||||
illume_border_is_bottom_panel(E_Border *bd)
|
||||
{
|
||||
if ((bd->client.netwm.type == ECORE_X_WINDOW_TYPE_DOCK) ||
|
||||
(bd->client.qtopia.soft_menu))
|
||||
if (((bd->client.netwm.type == ECORE_X_WINDOW_TYPE_DOCK) ||
|
||||
(bd->client.qtopia.soft_menu)) ||
|
||||
(bd->client.icccm.name) && ((!strcmp(bd->client.icccm.name, "Illume-Softkey"))))
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
@ -190,7 +191,7 @@ Eina_Bool
|
|||
illume_border_is_top_shelf(E_Border *bd)
|
||||
{
|
||||
if ((bd->client.icccm.name) &&
|
||||
(strstr(bd->client.icccm.name, "xfce4-panel")))
|
||||
(strstr(bd->client.icccm.name, "Illume-Indicator")))
|
||||
return 1;
|
||||
// FIXME: detect
|
||||
return 0;
|
||||
|
|
|
@ -20,13 +20,12 @@ struct _Illume_Layout_Mode
|
|||
const char *name;
|
||||
const char *label;
|
||||
// may need more things later, but name + label will do for now
|
||||
struct {
|
||||
// ---
|
||||
struct
|
||||
{
|
||||
void (*border_add) (E_Border *bd);
|
||||
void (*border_del) (E_Border *bd);
|
||||
void (*border_focus_in) (E_Border *bd);
|
||||
void (*border_focus_out) (E_Border *bd);
|
||||
// ---
|
||||
void (*zone_layout) (E_Zone *zone);
|
||||
void (*zone_move_resize) (E_Zone *zone);
|
||||
// --- add more below (activate callback, and more)
|
||||
|
|
|
@ -7,6 +7,10 @@ static void
|
|||
_border_add(E_Border *bd)
|
||||
{ // handle a border being added
|
||||
printf("Border Add\n");
|
||||
if (bd->client.icccm.transient_for)
|
||||
printf("Transient For\n");
|
||||
else if (bd->client.icccm.client_leader)
|
||||
printf("Client Leader\n");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue