Revert "fix clang warnings"

This reverts commit 94ab5472b9.
This commit is contained in:
seanpringle
2012-09-25 11:01:15 +10:00
parent 94ab5472b9
commit e5aee3e6b1
2 changed files with 5 additions and 6 deletions

View File

@@ -105,8 +105,8 @@ void action_focus_monitor(void *data, int num, client *cli)
void action_fullscreen(void *data, int num, client *cli)
{
if (!cli) return;
if (cli->full && GETPROP_LONG(cli->window, atoms[XOAT_SPOT], &cli->spot, 1));
else SETPROP_LONG(cli->window, atoms[XOAT_SPOT], &cli->spot, 1);
if (cli->full) GETPROP_LONG(cli->window, atoms[XOAT_SPOT], &cli->spot, 1);
else SETPROP_LONG(cli->window, atoms[XOAT_SPOT], &cli->spot, 1);
client_toggle_state(cli, atoms[_NET_WM_STATE_FULLSCREEN]);
client_place_spot(cli, cli->full ? SPOT1: cli->spot, cli->monitor, 1);
client_update_border(cli);

View File

@@ -63,8 +63,8 @@ client* window_build_client(Window win)
{
c->visible = c->attr.map_state == IsViewable ? 1:0;
XGetTransientForHint(display, c->window, &c->transient);
if (!GETPROP_ATOM(win, atoms[_NET_WM_WINDOW_TYPE], &c->type, 1)) c->type = 0;
if (!GETPROP_WIND(win, atoms[WM_CLIENT_LEADER], &c->leader, 1)) c->leader = None;
GETPROP_ATOM(win, atoms[_NET_WM_WINDOW_TYPE], &c->type, 1);
GETPROP_WIND(win, atoms[WM_CLIENT_LEADER], &c->leader, 1);
c->manage = !c->attr.override_redirect
&& c->type != atoms[_NET_WM_WINDOW_TYPE_DESKTOP]
@@ -91,8 +91,7 @@ client* window_build_client(Window win)
if (c->visible)
{
if (!GETPROP_ATOM(c->window, atoms[_NET_WM_STATE], c->states, ATOMLIST))
memset(c->states, 0, sizeof(Atom) * ATOMLIST);
GETPROP_ATOM(c->window, atoms[_NET_WM_STATE], c->states, ATOMLIST);
c->urgent = client_has_state(c, atoms[_NET_WM_STATE_DEMANDS_ATTENTION]);
c->full = client_has_state(c, atoms[_NET_WM_STATE_FULLSCREEN]);
c->above = client_has_state(c, atoms[_NET_WM_STATE_ABOVE]);