From balleen.plonstic at gmail.com Wed Aug 6 11:51:56 2008 From: balleen.plonstic at gmail.com (balleen.plonstic) Date: Wed, 6 Aug 2008 13:51:56 +0200 Subject: [clfswm-devel] grab-pointer problem in main mode Message-ID: <20080806135156.29000603@plonstic-laptop> Hi, First of all I'd like to apology for my English level. Secondly, I'm a newbie to common lisp scripting so please be tolerant of my responses and my remarques. My problem is that clfswm crashes when I want to move a frame in main mode with mouse-1 & mod-1 shortcut. Whereas there is no problem in second mode. I have clisp 2.42 (2007-10-16). I suppose that i had new-clx module support. Its the clisp given by the package of ubuntu 8.04, and i can run new-clx demos. I downloaded the cvs version of clfswm but my problem persists. CLFSWM returns "*** -XLIB:GRAB-POINTER: NIL is not of type XLIB:CURSOR" and nothing else. Is there a way to get more error messages ? Concerning multi frames for the gimp, I'll see in detail clfswm code, keeping in mind your remarques. Thanks, Alain > Salut, bienvenu ? bord :) > > Pour ton probl?me de grab-pointer, quelle version de CLFSWM > utilises-tu ? (Il vaut mieux utiliser le version SVN/GIT). Quelle est > ta version de clisp et quelle version de CLX utilises-tu (MIT ou New > clx) ? Sinon, peux-tu donner le message complet ? > > Pour le GIMP, je suis en train de travailler dessus avec un layout > d?dier ? ses fen?tres. Sinon, j'ai fais une petite vid?o pour le > layout du Gimp : live-hack.ogv. On peut definir un hook ? la creation > de la fen?tre et rep?rer si c'est une fen?tre du Gimp avec les > fonctions xlib:window-name et xlib:get-wm-class et ensuite arranger > les frames comme on veut. > > Philippe > > PS: Cette discution a tout ? fait sa place sur la mailing list. Elle > est en anglais mais tu peux parler en fran?ais et on traduira si le > besoin s'en fait sentir. > > > > bonjour, > > > > j'utilise depuis quelques temps clfswm et je le trouve fort > > pratique. Je suis d'abord pass? par des wm "classiques" comme > > m?tacity puis par ceux un peu moins commun comme wmii sur lequel je > > travaille majoritairement encore. Je reste cependant sur clfswm ? > > la maison. Je n'ai pas encore exploit? toutes ses propri?t?s mais > > pour ce que j'y ai d?j? d?couvert c'est tip top. Je n'ai pas encore > > tous saisi du fonctionnement et je suis nouveau dans le monde de > > common lisp. Donc veuillez excusez mes remarques si elles ne semble > > pas fond?es. > > > > Je me trouve confronter ? un probl?me lorsque je souhaite utiliser > > le d?placement de fen?tre en utilisant le raccourci sourie-1 & > > mod-1 dans le mode principale. clfswm s'arr?te et retourne "*** - > > XLIB:GRAB-POINTER: NIL is not of type XLIB:CURSOR". Il arrive la > > m?me chose lorsque je clic sur le fond d'une frame qui n'a pas de > > fen?tre et qui n'est pas mise en premier plan. > > > > Autrement, existerait-il une m?thode permettant de d?finir une > > organisation de frames au lancement d'une application particuli?re, > > par exemple GIMP ? Peut-?tre en cr?ant un "hook" ? > > > > Pour informations, j'utilise une distribution GNU/Linux Ubuntu. Je > > lance clfswm avec un script .xsession par GDM. CLFSWM est lanc? par > > "clisp -K full "$XDG_DATA_HOME/clfswm/load.lisp" & wmpid=$!" From xma at gnu.org Thu Aug 7 05:59:51 2008 From: xma at gnu.org (Xavier Maillard) Date: Thu, 07 Aug 2008 07:59:51 +0200 Subject: [clfswm-devel] grab-pointer problem in main mode In-Reply-To: <20080806135156.29000603@plonstic-laptop> References: <20080806135156.29000603@plonstic-laptop> Message-ID: <10852.1218088791@localhost> balleen.plonstic wrote: > Hi, > > First of all I'd like to apology for my English level. Not a problem since author's tongue is french :) > I have clisp 2.42 (2007-10-16). I suppose that i had new-clx > module Do not suppose here. Please what does *FEATURES* report in the REPL ? Here I have: (:ASDF-INSTALL :ASDF :CLX-ANSI-COMMON-LISP :CLX :REGEXP :SYSCALLS :I18N :LOOP :COMPILER :CLOS :MOP :CLISP :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :SOCKETS :GENERIC-STREAMS :LOGICAL-PATHNAMES :SCREEN :GETTEXT :UNICODE :BASE-CHAR=CHARACTER :PC386 :UNIX) > CLFSWM returns "*** -XLIB:GRAB-POINTER: NIL is not of type XLIB:CURSOR" > and nothing else. Is there a way to get more error messages ? I ought to have something like that too in the past. Are you running latest stable snapshot from CLFSWM or do you follow SVN repo ? Regards, Xavier From balleen.plonstic at gmail.com Fri Aug 8 10:47:56 2008 From: balleen.plonstic at gmail.com (balleen.plonstic) Date: Fri, 8 Aug 2008 12:47:56 +0200 Subject: [clfswm-devel] grab-pointer problem in main mode In-Reply-To: <10852.1218088791@localhost> References: <20080806135156.29000603@plonstic-laptop> <10852.1218088791@localhost> Message-ID: <20080808124756.67a65a0e@plonstic-laptop> Le Thu, 07 Aug 2008 07:59:51 +0200, Xavier Maillard a ?crit : Hi, > Not a problem since author's tongue is french :) thanks! > Do not suppose here. Please what does *FEATURES* report in the > REPL ? > Here I have: > (:ASDF-INSTALL :ASDF :CLX-ANSI-COMMON-LISP :CLX :REGEXP :SYSCALLS > :I18N :LOOP :COMPILER :CLOS :MOP :CLISP :ANSI-CL :COMMON-LISP > :LISP=CL :INTERPRETER :SOCKETS :GENERIC-STREAMS > :LOGICAL-PATHNAMES :SCREEN :GETTEXT :UNICODE > :BASE-CHAR=CHARACTER :PC386 :UNIX) *FEATURES* gives to me : (:ASDF :CLX-ANSI-COMMON-LISP :CLX :GTK :RAWSOCK :ZLIB :WILDCARD :PCRE :LIBSVM :GDBM :READLINE :REGEXP :SYSCALLS :I18N :LOOP :COMPILER :CLOS :MOP :CLISP :ANSI-CL :COMMON-LISP :LISP=CL :INTERPRETER :SOCKETS :GENERIC-STREAMS :LOGICAL-PATHNAMES :SCREEN :FFI :GETTEXT :UNICODE :BASE-CHAR=CHARACTER :PC386 :UNIX) There is no :ASDF-INSTALL in my *FEATURES*. Is it important ? > I ought to have something like that too in the past. Are you > running latest stable snapshot from CLFSWM or do you follow SVN > repo ? I have the latest svn repo snapshot but same problem. Regards, Alain -- Balleen Plonstic mel : balleen.plonstic at gmail.com From pbrochard at common-lisp.net Sat Aug 23 21:09:52 2008 From: pbrochard at common-lisp.net (Philippe Brochard) Date: Sat, 23 Aug 2008 23:09:52 +0200 Subject: [clfswm-devel] grab-pointer problem in main mode In-Reply-To: <20080806135156.29000603@plonstic-laptop> (balleen plonstic's message of "Wed\, 6 Aug 2008 13\:51\:56 +0200") References: <20080806135156.29000603@plonstic-laptop> Message-ID: <84bpzj30bj.fsf@grigri.elcforest> balleen plonstic writes: > Hi, > Hi, sorry for the lag. > First of all I'd like to apology for my English level. > Not a problem for me too as my english is far from perfect :) But maybe there is really a need for a french mailing list. > Secondly, I'm a newbie to common lisp scripting so please be tolerant > of my responses and my remarques. > > My problem is that clfswm crashes when I want to move a frame in main > mode with mouse-1 & mod-1 shortcut. Whereas there is no problem in > second mode. > > I have clisp 2.42 (2007-10-16). I suppose that i had new-clx module > support. Its the clisp given by the package of ubuntu 8.04, and i can > run new-clx demos. > I downloaded the cvs version of clfswm but my problem persists. > > CLFSWM returns "*** -XLIB:GRAB-POINTER: NIL is not of type XLIB:CURSOR" > and nothing else. Is there a way to get more error messages ? > You can get more error messages with the backtrace: type ':bt' at the error prompt. Can you put a debugging output in the xgrab-pointer in the xlib-util.lisp file: ---------------------------------------------------------------------- (defun xgrab-pointer (root cursor-char cursor-mask-char &optional (pointer-mask '(:enter-window :pointer-motion :button-press :button-release)) owner-p) :background white)) .............. (setf cursor nil)) (dbg cursor-char cursor-mask-char cursor) ;; <- here (xlib:grab-pointer root pointer-mask :owner-p owner-p :sync-keyboard-p nil :sync-pointer-p nil :cursor cursor))) ---------------------------------------------------------------------- What are the values of cursor-char cursor-mask-char cursor just before the error? Another test you can do is to stay with the default cursor. In the same function, remove the ':cursor cursor' in xlib:grab-pointer. Something like this: ---------------------------------------------------------------------- .... (xlib:grab-pointer root pointer-mask :owner-p owner-p :sync-keyboard-p nil :sync-pointer-p nil) ---------------------------------------------------------------------- And as always with this type of error you can try to repoduce the bug with clisp/MIT-CLX, sbcl and cmucl. You can also test clfswm with a newer version of clisp (we are near from the 2.47 version) and new-clx. Here are some explanations on how to build clisp: http://trac.common-lisp.net/clfswm/wiki/BuildClisp > Concerning multi frames for the gimp, I'll see in detail clfswm code, > keeping in mind your remarques. > > Thanks, > Alain > Philippe >> Salut, bienvenu ? bord :) >> >> Pour ton probl?me de grab-pointer, quelle version de CLFSWM >> utilises-tu ? (Il vaut mieux utiliser le version SVN/GIT). Quelle est >> ta version de clisp et quelle version de CLX utilises-tu (MIT ou New >> clx) ? Sinon, peux-tu donner le message complet ? >> >> Pour le GIMP, je suis en train de travailler dessus avec un layout >> d?dier ? ses fen?tres. Sinon, j'ai fais une petite vid?o pour le >> layout du Gimp : live-hack.ogv. On peut definir un hook ? la creation >> de la fen?tre et rep?rer si c'est une fen?tre du Gimp avec les >> fonctions xlib:window-name et xlib:get-wm-class et ensuite arranger >> les frames comme on veut. >> >> Philippe >> >> PS: Cette discution a tout ? fait sa place sur la mailing list. Elle >> est en anglais mais tu peux parler en fran?ais et on traduira si le >> besoin s'en fait sentir. >> >> >> > bonjour, >> > >> > j'utilise depuis quelques temps clfswm et je le trouve fort >> > pratique. Je suis d'abord pass? par des wm "classiques" comme >> > m?tacity puis par ceux un peu moins commun comme wmii sur lequel je >> > travaille majoritairement encore. Je reste cependant sur clfswm ? >> > la maison. Je n'ai pas encore exploit? toutes ses propri?t?s mais >> > pour ce que j'y ai d?j? d?couvert c'est tip top. Je n'ai pas encore >> > tous saisi du fonctionnement et je suis nouveau dans le monde de >> > common lisp. Donc veuillez excusez mes remarques si elles ne semble >> > pas fond?es. >> > >> > Je me trouve confronter ? un probl?me lorsque je souhaite utiliser >> > le d?placement de fen?tre en utilisant le raccourci sourie-1 & >> > mod-1 dans le mode principale. clfswm s'arr?te et retourne "*** - >> > XLIB:GRAB-POINTER: NIL is not of type XLIB:CURSOR". Il arrive la >> > m?me chose lorsque je clic sur le fond d'une frame qui n'a pas de >> > fen?tre et qui n'est pas mise en premier plan. >> > >> > Autrement, existerait-il une m?thode permettant de d?finir une >> > organisation de frames au lancement d'une application particuli?re, >> > par exemple GIMP ? Peut-?tre en cr?ant un "hook" ? >> > >> > Pour informations, j'utilise une distribution GNU/Linux Ubuntu. Je >> > lance clfswm avec un script .xsession par GDM. CLFSWM est lanc? par >> > "clisp -K full "$XDG_DATA_HOME/clfswm/load.lisp" & wmpid=$!" > _______________________________________________ > clfswm-devel mailing list > clfswm-devel at common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/clfswm-devel > > -- Philippe Brochard http://hocwp.free.fr From pbrochard at common-lisp.net Sat Aug 23 21:48:12 2008 From: pbrochard at common-lisp.net (Philippe Brochard) Date: Sat, 23 Aug 2008 23:48:12 +0200 Subject: [clfswm-devel] Massive commit. Message-ID: <843akvjtcz.fsf@grigri.elcforest> Hi, As I've been disconnected for a while, here is a big commit. New features are: - Fast layout switch: You can switch from a layout to another. - Switch to last child: Quick switch between two children. Usage: 1) Select the first child 2) Press shift-tab (by default) 3) Select the second child 4) You can switch between children with shift-tab... - Colors nearly everywhere: The info mode is new colored. So the help is now colored, keys in key binding help are highlighted... See in clfswm-info.lisp how to use this new feature. - Simple way for corners configuration: I have generalized corners actions. You can associate a function to a corner and a mouse button press event. For example, here are the actions associated in the main mode and the left button: (defparameter *corner-main-mode-left-button* '((:top-left nil) (:top-right present-virtual-keyboard) (:bottom-right present-windows) (:bottom-left nil)) "Config(Corner group): Actions on corners in the main mode with the left mouse button") Some of the possible actions are an expos? like with present-(all)-windows, a virtual keyboard, an hidden terminal (something a la quake console)... See in clfswm-corners.lisp and config.lisp for more details. The documentation for corners is automatically generated with the autodoc functions. See here for the current state: http://trac.common-lisp.net/clfswm/browser/clfswm/doc/corner.html?format=raw - Show configuration variables: You can see at any time a variable value with F1 (help) g (show all configurable variables). The next step is to change them while clfswm is running and store the result in the configuration file. Coming soon: a new layout for the Gimp and a focus policy by frame. Have fun, Philippe -- Philippe Brochard http://hocwp.free.fr