maximize in the client menu is enabled when it's not full-maxed

This commit is contained in:
Dana Jansens 2007-05-08 22:57:27 +00:00
parent 709ebbb6a2
commit f017556fed

View file

@ -74,7 +74,7 @@ static gboolean client_update(ObMenuFrame *frame, gpointer data)
e = menu_find_entry_id(menu, CLIENT_MAXIMIZE);
e->data.normal.enabled =
(frame->client->functions & OB_CLIENT_FUNC_MAXIMIZE) &&
!frame->client->max_horz && !frame->client->max_vert;
(!frame->client->max_horz || !frame->client->max_vert);
e = menu_find_entry_id(menu, CLIENT_SHADE);
e->data.normal.enabled = frame->client->functions & OB_CLIENT_FUNC_SHADE;