Newer
Older
XFWM_FLAG_HAS_MENU | XFWM_FLAG_HAS_MOVE |
XFWM_FLAG_HAS_RESIZE | XFWM_FLAG_HAS_STICK);
Olivier Fourdan
committed
}
}
else
{
TRACE ("no \"net\" atom detected");
c->type = UNSET;
c->initial_layer = c->win_layer;
}
Olivier Fourdan
committed
if (clientIsValidTransientOrModal (c))
Olivier Fourdan
committed
{
Client *c2;
TRACE ("Window \"%s\" is a transient or a modal", c->name);
c2 = clientGetHighestTransientOrModalFor (c);
if ((c2) && (c->initial_layer < c2->win_layer))
Olivier Fourdan
committed
{
c->initial_layer = c2->win_layer;
Olivier Fourdan
committed
TRACE ("Applied layer is %i", c->initial_layer);
}
FLAG_UNSET (c->xfwm_flags, XFWM_FLAG_HAS_HIDE | XFWM_FLAG_HAS_STICK);
FLAG_UNSET (c->flags, CLIENT_FLAG_STICKY);
Olivier Fourdan
committed
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
}
if ((old_type != c->type) || (c->initial_layer != c->win_layer))
{
TRACE ("setting layer %i", c->initial_layer);
clientSetNetState (c);
clientSetLayer (c, c->initial_layer);
}
}
void
clientUpdateAboveState (Client * c)
{
int layer;
g_return_if_fail (c != NULL);
TRACE ("entering clientUpdateAboveState");
TRACE ("Update above state for client \"%s\" (0x%lx)", c->name, c->window);
if (FLAG_TEST (c->flags, CLIENT_FLAG_ABOVE))
{
layer = WIN_LAYER_ABOVE_DOCK;
}
else
{
layer = c->initial_layer;
}
clientSetNetState (c);
clientSetLayer (c, layer);
}
void
clientUpdateBelowState (Client * c)
{
int layer;
g_return_if_fail (c != NULL);
TRACE ("entering clientUpdateBelowState");
TRACE ("Update below state for client \"%s\" (0x%lx)", c->name, c->window);
if (FLAG_TEST (c->flags, CLIENT_FLAG_BELOW))
{
layer = WIN_LAYER_BELOW;
}
else
{
layer = c->initial_layer;
}
clientSetNetState (c);
clientSetLayer (c, layer);
}