Skip to content

Commit

Permalink
small fixes for window maximization functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tudurom committed May 7, 2017
1 parent 18b5ff3 commit 1f2c04f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ maximize_window(struct client *client, int16_t mon_x, int16_t mon_y, uint16_t mo
if (client == NULL)
return;

if (client->vmaxed || client->hmaxed || client->monocled)
if (is_maxed(client))
unmaximize_window(client);

/* maximized windows don't have borders */
Expand Down Expand Up @@ -1034,7 +1034,7 @@ hmaximize_window(struct client *client, int16_t mon_x, uint16_t mon_width)
if (client == NULL)
return;

if (client->maxed || client->vmaxed || client->monocled)
if (is_maxed(client))
unmaximize_window(client);

if (client->geom.width != mon_width)
Expand All @@ -1055,7 +1055,7 @@ vmaximize_window(struct client *client, int16_t mon_y, uint16_t mon_height)
if (client == NULL)
return;

if (client->maxed || client->hmaxed || client->monocled)
if (is_maxed(client))
unmaximize_window(client);

if (client->geom.height != mon_height)
Expand All @@ -1077,7 +1077,7 @@ monocle_window(struct client *client, int16_t mon_x, int16_t mon_y, uint16_t mon
if (client == NULL)
return;

if (client->maxed || client->vmaxed || client->monocled)
if (is_maxed(client))
unmaximize_window(client);

save_original_size(client);
Expand Down

0 comments on commit 1f2c04f

Please sign in to comment.