diff options
author | okan | 2014-08-24 15:37:45 +0000 |
---|---|---|
committer | okan | 2014-08-24 15:37:45 +0000 |
commit | 9beba1401a7ba0614ef2f779392ff8fd3ed54a52 (patch) | |
tree | f7ca64c5d4aec3c39c89a16aa83559c443f8a245 /calmwm.h | |
parent | 6ccf70f82d9136844ae8f2bb68b43aa31fd09d25 (diff) | |
download | cwm-9beba1401a7ba0614ef2f779392ff8fd3ed54a52.tar.gz |
gc->hidden has never consistently kept track of a group's state;
group_show() and group_hide() are not the only ways a group can change
state - if all clients in a group are either hidden or unhidden, then
that group's state should change, as well as the various EWMH ways.
Instead of trying to keep track in a wide variety of places, simply
query the clients in a group before needing to take action based on the
group's state. Solves long standing confusion of when a group is hidden
or not.
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: calmwm.h,v 1.262 2014/08/20 15:15:29 okan Exp $ + * $OpenBSD: calmwm.h,v 1.263 2014/08/24 15:37:45 okan Exp $ */ #ifndef _CALMWM_H_ @@ -204,7 +204,6 @@ struct group_ctx { TAILQ_ENTRY(group_ctx) entry; struct client_ctx_q clients; int num; - int hidden; }; TAILQ_HEAD(group_ctx_q, group_ctx); @@ -413,7 +412,6 @@ void group_init(struct screen_ctx *); void group_menu(struct screen_ctx *); void group_movetogroup(struct client_ctx *, int); void group_only(struct screen_ctx *, int); -void group_set_state(struct screen_ctx *); void group_sticky(struct client_ctx *); void group_sticky_toggle_enter(struct client_ctx *); void group_sticky_toggle_exit(struct client_ctx *); |