diff options
author | okan <okan> | 2013-11-27 00:01:23 +0000 |
---|---|---|
committer | okan <okan> | 2013-11-27 00:01:23 +0000 |
commit | fa25915a75551c36495c8a0fa2754ac3091c529e (patch) | |
tree | 33848b2566de918ee7f1165f662918359811d3fc /calmwm.h | |
parent | 03b19f1487135d8e8a80e0aad5aef447776c7c11 (diff) | |
download | cwm-fa25915a75551c36495c8a0fa2754ac3091c529e.tar.gz cwm-fa25915a75551c36495c8a0fa2754ac3091c529e.tar.xz cwm-fa25915a75551c36495c8a0fa2754ac3091c529e.zip |
Rewrite active/inactive client handling in client_setactive();
client_leave() served no real purpose, likewise no reason to handle LeaveNotify events since an EnterNotify will process the next active client (and we don't have anything important to process anyway), so xev_handle_leavenotify() goes as well. Allows a simplification of client_mtf() and client_cycle_leave() for clarity. While here, unify a few client_current() checks. No intended behaviour change.
Diffstat (limited to 'calmwm.h')
-rw-r--r-- | calmwm.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/calmwm.h b/calmwm.h index d65b437..e3cedd1 100644 --- a/calmwm.h +++ b/calmwm.h @@ -368,8 +368,7 @@ void client_applysizehints(struct client_ctx *); void client_config(struct client_ctx *); struct client_ctx *client_current(void); void client_cycle(struct screen_ctx *, int); -void client_cycle_leave(struct screen_ctx *, - struct client_ctx *); +void client_cycle_leave(struct screen_ctx *); void client_delete(struct client_ctx *); void client_draw_border(struct client_ctx *); struct client_ctx *client_find(Window); @@ -378,7 +377,6 @@ void client_getsizehints(struct client_ctx *); void client_hide(struct client_ctx *); void client_hmaximize(struct client_ctx *); void client_htile(struct client_ctx *); -void client_leave(struct client_ctx *); void client_lower(struct client_ctx *); void client_map(struct client_ctx *); void client_maximize(struct client_ctx *); @@ -390,7 +388,7 @@ void client_ptrwarp(struct client_ctx *); void client_raise(struct client_ctx *); void client_resize(struct client_ctx *, int); void client_send_delete(struct client_ctx *); -void client_setactive(struct client_ctx *, int); +void client_setactive(struct client_ctx *); void client_setname(struct client_ctx *); int client_snapcalc(int, int, int, int, int); void client_transient(struct client_ctx *); |