consider fullscreen windows to be in spot1.
This commit is contained in:
1
xoat.1
1
xoat.1
@@ -63,6 +63,7 @@ Close a window.
|
||||
.TP
|
||||
.B Mod4-f
|
||||
Toggle fullscreen.
|
||||
While in fullscreen mode, an window is considered to be in tile 1.
|
||||
.RS
|
||||
.RE
|
||||
.TP
|
||||
|
||||
6
xoat.c
6
xoat.c
@@ -457,9 +457,8 @@ Window spot_active(int spot, int mon, Window except)
|
||||
for (i = 0; i < wins.depth; i++)
|
||||
{
|
||||
client *o = wins.clients[i];
|
||||
if (o->window != except && o->manage
|
||||
&& INTERSECT(x + w/2, y + h/2, 1, 1,
|
||||
o->attr.x, o->attr.y, o->attr.width, o->attr.height))
|
||||
if (o->window != except && o->manage && o->spot == spot
|
||||
&& INTERSECT(x + w/2, y + h/2, 1, 1, o->attr.x, o->attr.y, o->attr.width, o->attr.height))
|
||||
{
|
||||
client_raise(o);
|
||||
client_active(o);
|
||||
@@ -798,6 +797,7 @@ void key_press(XKeyEvent *e)
|
||||
{
|
||||
client_add_state(c, atoms[_NET_WM_STATE_FULLSCREEN]);
|
||||
window_set_cardinal_prop(c->window, atoms[XOAT_SPOT], &spot, 1);
|
||||
c->spot = SPOT1;
|
||||
}
|
||||
client_review(c);
|
||||
client_spot(c, c->spot, 1);
|
||||
|
||||
Reference in New Issue
Block a user