Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-commits
Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-commits@g.o
From: "Ben de Groot (yngwin)" <yngwin@g.o>
Subject: gentoo-x86 commit in x11-wm/echinus/files: echinus.desktop echinus-0.3.1-modkey.patch
Date: Fri, 22 Aug 2008 23:20:33 +0000
yngwin      08/08/22 23:20:33

  Added:                echinus.desktop echinus-0.3.1-modkey.patch
  Log:
  Initial commit. Ebuild by Nico Wohlgemuth.
  (Portage version: 2.2_rc8/cvs/Linux 2.6.26-hh1 i686)

Revision  Changes    Path
1.1                  x11-wm/echinus/files/echinus.desktop

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/echinus/files/echinus.desktop?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/echinus/files/echinus.desktop?rev=1.1&content-type=text/plain

Index: echinus.desktop
===================================================================
[Desktop Entry]
Encoding=UTF-8
Name=echinus
Comment=echinus wm
Exec=echinus
TryExec=echinus
Icon=
Type=Application



1.1                  x11-wm/echinus/files/echinus-0.3.1-modkey.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/echinus/files/echinus-0.3.1-modkey.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-wm/echinus/files/echinus-0.3.1-modkey.patch?rev=1.1&content-type=text/plain

Index: echinus-0.3.1-modkey.patch
===================================================================
diff -r ffa4f6eba0b2 echinus.c
--- a/echinus.c	Tue Aug 19 22:53:23 2008 +0400
+++ b/echinus.c	Wed Aug 20 03:20:40 2008 +0200
@@ -276,6 +276,7 @@
 int nrules = 0;
 Bool dectiled = 0;
 Bool hidebastards = 0;
+unsigned int modkey = 0;
 /* configuration, allows nested code to access above variables */
 #include "config.h"
 #include "ewmh.c"
@@ -488,7 +489,7 @@
         focus(c);
         restack();
         XAllowEvents(dpy, ReplayPointer, CurrentTime);
-        if(CLEANMASK(ev->state) != MODKEY)
+        if(CLEANMASK(ev->state) != modkey)
            return;
         if(ev->button == Button1) {
                 if((layouts[ltidxs[curtag]].arrange == floating) || c->isfloating)
@@ -959,8 +960,8 @@
 void
 grabbuttons(Client *c, Bool focused) {
     unsigned int Buttons[] = {Button1, Button2, Button3};            
-    unsigned int Modifiers[] = {MODKEY, MODKEY|LockMask,
-               MODKEY|numlockmask, MODKEY|numlockmask|LockMask};                                                                                              
+    unsigned int Modifiers[] = {modkey, modkey|LockMask,
+               modkey|numlockmask, modkey|numlockmask|LockMask};                                                                                              
     int i, j;   
     XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
 
@@ -1779,6 +1780,30 @@
         xrdb = XrmGetFileDatabase("echinusrc");
         if(!xrdb)
             eprint("echinus: cannot open configuration file\n");
+
+	/* init modkey */
+		char* key;
+		if(!(key = getresource("modkey", NULL)))
+			modkey = MODKEY;
+		else {
+			switch(atoi(key)) {
+				case 1:
+					modkey = Mod1Mask;
+					break;
+				case 2:
+					modkey = Mod2Mask;
+					break;
+				case 3:
+					modkey = Mod3Mask;
+					break;
+				case 4:
+					modkey = Mod4Mask;
+					break;
+				default:
+					modkey = MODKEY;
+					break;
+			}
+		}	
 
 	/* init tags */
         inittags();
diff -r ffa4f6eba0b2 echinusrc
--- a/echinusrc	Tue Aug 19 22:53:23 2008 +0400
+++ b/echinusrc	Wed Aug 20 03:20:40 2008 +0200
@@ -41,6 +41,7 @@
 Echinus*tags.layout1: m
 Echinus*tags.layout3: b
 
+Echinus*modkey: 1
 Echinus*togglestruts: A + b
 Echinus*focusnext: A + j
 Echinus*focusprev: A + k





Navigation:
Lists: gentoo-commits: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
gentoo-x86 commit in x11-wm/echinus/files: - New directory
Next by thread:
gentoo-x86 commit in x11-wm/echinus: echinus-0.3.1.ebuild metadata.xml Manifest ChangeLog
Previous by date:
gentoo-x86 commit in net-voip/linphone: metadata.xml ChangeLog
Next by date:
gentoo-x86 commit in x11-wm/echinus: echinus-0.3.1.ebuild metadata.xml Manifest ChangeLog


Updated Apr 12, 2011

Summary: Archive of the gentoo-commits mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.