consider fullscreen windows to be in spot1.

This commit is contained in:
seanpringle
2012-09-02 16:15:01 +10:00
parent 02035c5ffd
commit a41a8537e1
3 changed files with 5 additions and 4 deletions

1
xoat.1
View File

@@ -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
View File

@@ -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);

View File

@@ -48,7 +48,7 @@ Mod4-Escape
: Close a window.
Mod4-f
: Toggle fullscreen.
: Toggle fullscreen. While in fullscreen mode, an window is considered to be in tile 1.
Mod4-Right
: Focus next monitor.