aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2014-09-17 18:41:44 +0000
committerokan2014-09-17 18:41:44 +0000
commit83a14a0e1508598ad1d3c333ee7ae6e06f0454e5 (patch)
treeabd2334334d4ad767926c801299bbef4d107ee06 /xutil.c
parentb8f5bceb1e3eb570c672162836c310335254a3dc (diff)
downloadcwm-83a14a0e1508598ad1d3c333ee7ae6e06f0454e5.tar.gz
these client actions are just toggles; less confusing with better names
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/xutil.c b/xutil.c
index 1ba435e..fe1d535 100644
--- a/xutil.c
+++ b/xutil.c
@@ -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);
}