mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 02:04:14 +00:00
hide-behind-fullscreen
This commit is contained in:
parent
8ba581f2ae
commit
94f0c85179
@ -13,7 +13,7 @@ static const float rootcolor[] = {0.3, 0.3, 0.3, 1.0};
|
|||||||
static const float bordercolor[] = {0.5, 0.5, 0.5, 1.0};
|
static const float bordercolor[] = {0.5, 0.5, 0.5, 1.0};
|
||||||
static const float focuscolor[] = {1.0, 0.0, 0.0, 1.0};
|
static const float focuscolor[] = {1.0, 0.0, 0.0, 1.0};
|
||||||
/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */
|
/* To conform the xdg-protocol, set the alpha to zero to restore the old behavior */
|
||||||
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 1.0};
|
static const float fullscreen_bg[] = {0.1, 0.1, 0.1, 0.0};
|
||||||
|
|
||||||
/* tagging */
|
/* tagging */
|
||||||
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
||||||
|
|||||||
18
dwl.c
18
dwl.c
@ -586,11 +586,27 @@ applyrules(Client *c)
|
|||||||
void
|
void
|
||||||
arrange(Monitor *m)
|
arrange(Monitor *m)
|
||||||
{
|
{
|
||||||
Client *c;
|
LayerSurface *l;
|
||||||
|
Client *c, *sel = selclient();
|
||||||
|
int i;
|
||||||
wl_list_for_each(c, &clients, link)
|
wl_list_for_each(c, &clients, link)
|
||||||
if (c->mon == m)
|
if (c->mon == m)
|
||||||
wlr_scene_node_set_enabled(c->scene, VISIBLEON(c, m));
|
wlr_scene_node_set_enabled(c->scene, VISIBLEON(c, m));
|
||||||
|
|
||||||
|
if (sel && sel->isfullscreen && VISIBLEON(sel, m)) {
|
||||||
|
for (i = 3; i > ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND; i--)
|
||||||
|
wl_list_for_each(l, &sel->mon->layers[i], link)
|
||||||
|
wlr_scene_node_set_enabled(l->scene, 0);
|
||||||
|
|
||||||
|
wl_list_for_each(c, &clients, link)
|
||||||
|
wlr_scene_node_set_enabled(c->scene, (sel->isfullscreen && c == sel)
|
||||||
|
|| !sel->isfullscreen);
|
||||||
|
}
|
||||||
|
if (!sel || (!sel->isfullscreen && VISIBLEON(sel, m)))
|
||||||
|
for (i = 3; i > ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND; i--)
|
||||||
|
wl_list_for_each(l, &m->layers[i], link)
|
||||||
|
wlr_scene_node_set_enabled(l->scene, 1);
|
||||||
|
|
||||||
if (m && m->lt[m->sellt]->arrange)
|
if (m && m->lt[m->sellt]->arrange)
|
||||||
m->lt[m->sellt]->arrange(m);
|
m->lt[m->sellt]->arrange(m);
|
||||||
motionnotify(0, NULL, 0, 0, 0, 0);
|
motionnotify(0, NULL, 0, 0, 0, 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user