Change win property at net_wm_state_fullscreen management

This commit is contained in:
Martin Duquesnoy 2011-12-25 17:17:33 +01:00
parent 6c75b86256
commit 146be54b66

View File

@ -148,6 +148,8 @@ ewmh_manage_state(long data[], struct client *c)
XReparentWindow(W->dpy, c->win, W->root, c->screen->geo.x, c->screen->geo.y);
XResizeWindow(W->dpy, c->win, c->screen->geo.w, c->screen->geo.h);
XChangeProperty(W->dpy, c->win, W->net_atom[net_wm_state], XA_ATOM, 32, PropModeReplace,
(unsigned char*)&W->net_atom[net_wm_state_fullscreen], true);
client_focus(c);
@ -159,6 +161,9 @@ ewmh_manage_state(long data[], struct client *c)
c->flags &= ~CLIENT_FULLSCREEN;
XReparentWindow(W->dpy, c->win, c->frame, c->wgeo.x, c->wgeo.y);
XChangeProperty(W->dpy, c->win, W->net_atom[net_wm_state], XA_ATOM, 32, PropModeReplace,
(unsigned char*)&W->net_atom[net_wm_state_fullscreen], false);
client_moveresize(c, &c->geo);
}
}