diff options
author | okan | 2014-09-17 18:41:44 +0000 |
---|---|---|
committer | okan | 2014-09-17 18:41:44 +0000 |
commit | 83a14a0e1508598ad1d3c333ee7ae6e06f0454e5 (patch) | |
tree | abd2334334d4ad767926c801299bbef4d107ee06 /xutil.c | |
parent | b8f5bceb1e3eb570c672162836c310335254a3dc (diff) | |
download | cwm-83a14a0e1508598ad1d3c333ee7ae6e06f0454e5.tar.gz |
these client actions are just toggles; less confusing with better names
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 22 |
1 files changed, 11 insertions, 11 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: xutil.c,v 1.94 2014/09/17 16:00:44 okan Exp $ + * $OpenBSD: xutil.c,v 1.95 2014/09/17 18:41:44 okan Exp $ */ #include <sys/param.h> @@ -372,19 +372,19 @@ xu_ewmh_handle_net_wm_state_msg(struct client_ctx *cc, int action, } handlers[] = { { _NET_WM_STATE_STICKY, CLIENT_STICKY, - client_sticky }, + client_toggle_sticky }, { _NET_WM_STATE_MAXIMIZED_VERT, CLIENT_VMAXIMIZED, - client_vmaximize }, + client_toggle_vmaximize }, { _NET_WM_STATE_MAXIMIZED_HORZ, CLIENT_HMAXIMIZED, - client_hmaximize }, + client_toggle_hmaximize }, { _NET_WM_STATE_HIDDEN, CLIENT_HIDDEN, - client_hidden }, + client_toggle_hidden }, { _NET_WM_STATE_FULLSCREEN, CLIENT_FULLSCREEN, - client_fullscreen }, + client_toggle_fullscreen }, { _NET_WM_STATE_DEMANDS_ATTENTION, CLIENT_URGENCY, client_urgency }, @@ -418,15 +418,15 @@ xu_ewmh_restore_net_wm_state(struct client_ctx *cc) atoms = xu_ewmh_get_net_wm_state(cc, &n); for (i = 0; i < n; i++) { if (atoms[i] == ewmh[_NET_WM_STATE_STICKY]) - client_sticky(cc); + client_toggle_sticky(cc); if (atoms[i] == ewmh[_NET_WM_STATE_MAXIMIZED_HORZ]) - client_hmaximize(cc); + client_toggle_hmaximize(cc); if (atoms[i] == ewmh[_NET_WM_STATE_MAXIMIZED_VERT]) - client_vmaximize(cc); + client_toggle_vmaximize(cc); if (atoms[i] == ewmh[_NET_WM_STATE_HIDDEN]) - client_hidden(cc); + client_toggle_hidden(cc); if (atoms[i] == ewmh[_NET_WM_STATE_FULLSCREEN]) - client_fullscreen(cc); + client_toggle_fullscreen(cc); if (atoms[i] == ewmh[_NET_WM_STATE_DEMANDS_ATTENTION]) client_urgency(cc); } |