aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
authoroga2008-01-14 15:21:10 +0000
committeroga2008-01-14 15:21:10 +0000
commit923c9f8936be6a656e3f9b6607c69a820b411330 (patch)
treea6af6b773f95cc8f4d00ade3cc49f812cb873cdd /group.c
parent13d8a3a4a43bbca611050d5fd8dca3871225b8fb (diff)
downloadcwm-923c9f8936be6a656e3f9b6607c69a820b411330.tar.gz
Rewrite most of grab_menu in grab.c (it was partly 9wm code).
This should work functionally the same, with a few simplifications. Changes: - we don't care if you're holding another button when you release the menu key if you don't want to select anything, move off the menu. - remove the hysteresis from the menu selection (before you had to move more than three pixels onto a new menu entry before it selected it) - simplify a lot of the selection code - kill dead code. - do what the XXX comment said and cache the screensize (i may tweak this later). As far as I can tell, the only code remaining from 9wm is the list of fonts in calmwm.c. Others appear to concur. ok marc@, looked over and tested by a few others. Reminders from okan@.
Diffstat (limited to 'group.c')
-rw-r--r--group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/group.c b/group.c
index 7ddfa06..8147fa8 100644
--- a/group.c
+++ b/group.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: group.c,v 1.3 2008/01/11 16:06:44 oga Exp $
+ * $Id: group.c,v 1.4 2008/01/14 15:21:10 oga Exp $
*/
#include "headers.h"
@@ -92,7 +92,7 @@ _group_purge(struct group_ctx *gc)
struct client_ctx *cc;
if (gc == NULL)
- errx(1, "_group_commit: ctx is null");
+ errx(1, "_group_purge: ctx is null");
TAILQ_FOREACH(cc, &gc->clients, group_entry)
if (cc->groupcommit == 0)