about summary refs log tree commit diff
path: root/parse.y
diff options
context:
space:
mode:
authorokan <okan>2016-10-24 20:44:08 +0000
committerokan <okan>2016-10-24 20:44:08 +0000
commitdcb741d2b1378432e226bbeea274c2e5e2508c2d (patch)
treeb9a0fcb7200417e49167e78a687632b23cdbf812 /parse.y
parentfa06851b0ee5b49138f782e500e12646455dd171 (diff)
parentdb93599a0fb302271e10a9dcbcbe6cafdc8aa2cb (diff)
downloadcwm-dcb741d2b1378432e226bbeea274c2e5e2508c2d.tar.gz
cwm-dcb741d2b1378432e226bbeea274c2e5e2508c2d.tar.xz
cwm-dcb741d2b1378432e226bbeea274c2e5e2508c2d.zip
cvsimport
* refs/heads/master: (34 commits)
  Make it clear these are flags.
  Remove duplicate check that strsubmatch() already does; while here, fix a comment.
  Sprinkle __func__ in appropriate error messages.
  Get rid of 'matchname'; it's too surprising to have the menu change during client search as different potential str matches are cycled through. If there's interest, the only string that doesn't exist in the listing is the window's class - that can be added of course, but it makes the line too long imho.
  clean up search_match_client(); no behaviour change
  Refactor callbacks to take a void * so as to not try and generalize into client_ctx in keypress and buttonpress event handlers; pass appropriate *ctx's based on context.
  remove another unused proto
  Rename 2 kbfunc to match closer to what they do
  Add an argument to the callbacks to pass the xevent context, button or key press. This allows to remove a few hacks to duplicate functions only for behaviour changes; now differing behaviours are pushed down to the callback. Also will allow for previously unavailable actions to be bind-able down the road.
  Check the ptr bounds in the new client during cycling, since not all actions do ptrsave, such as restoring client geometry; adapted from a diff by Vadim Vygonets.
  More accurate to say 'toggle', rather than 'select', for group[n]/nogroup.
  Add CM-a for 'nogroup' (CM-0 stays for now); update manpage to reflect.
  Stash wmname into conf.
  When removing xrandr regions, ensure clients are within the bounds of the screen; adapted from an ancient diff from Sviatoslav Chagaev. Things in this area will likely change, but put this in so it works now and serves as a reminder.
  Calculate client nameqlen in client_setname(), the only place it's needed/used.
  Turn CALMWM_NGROUPS define into variable, ngroups.
  Start simplifying menu code; and in turn, remove a cursor no longer needed.
  Defaults are split between defines and conf_init(); normalize these, as well as give 'sticky' groups its own variable.
  For both kb and mouse move, it is possible to grab a client and move it completely off the screen/region; instead, if the pointer is outside of the client bounds, warp the pointer to the closest edge before moving.
  client_ptrwarp should not deal with unhiding or raising clients (non ptr requests); most callers do this already - deal with the few that do not. client_ptrwarp becomes a simple wrapper (setpos) but it will be expanded.
  ...
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/parse.y b/parse.y
index 1c04e2a..abd3224 100644
--- a/parse.y
+++ b/parse.y
@@ -114,10 +114,7 @@ main		: FONTNAME STRING		{
 			conf->font = $2;
 		}
 		| STICKY yesno {
-			if ($2 == 0)
-				conf->flags &= ~CONF_STICKY_GROUPS;
-			else
-				conf->flags |= CONF_STICKY_GROUPS;
+			conf->stickygroups = $2;
 		}
 		| BORDERWIDTH NUMBER {
 			if ($2 < 0 || $2 > UINT_MAX) {