Re: min_tabs with latest ion.

[email protected] (Michaël Cadilhac)
Newsgroups gmane.comp.window-managers.ion.general
Organization Epita/LRDE
Message-ID <[email protected]>
Tuomo Valkonen <[email protected]> writes:

> On 2007-05-14, Michaël Cadilhac <[email protected]> wrote:
>> Any idea how to fix that ?
>
> WFrame.mode(_)=='floating', etc.

Thank you very much! FYI, the changes I had to make are the following :


>> [1]  Speaking of which, is there a way to restore the old behavior of
>>      the =AB mouse on window selects it =BB ? Or at least, when clicking on
>>      a window ? Well, and my M-<tab> doesn't work now, but it's probably
>>      just a wrong config line.
>
> It's a bug.

Oh, well...  So let's hope you'll kill it then :-) Thanks again !

-- 
 |   Michaël `Micha' Cadilhac       |   An error can become exact            |
 |   http://michael.cadilhac.name   |     as the one who committed it        |
 |   JID/MSN:                       |  made a mistake or not.                |
 `----  [email protected]  |          -- Pierre Dac            -  --'
min_tabs.diff (application/octet-stream, 1.3 KB)
--- min_tabs.lua	2007-05-12 17:59:44.000000000 +0200
+++ min_tabs.lua	2007-05-14 22:45:23.000000000 +0200
@@ -18,9 +18,9 @@
 
 	- Easier to work with using a style with slightly wider frame
 	  borders and more vivid "active frame" colours.
-	- The keybinding MOD1..T is defined at the end of the file: this
+	- The keybinding META..T is defined at the end of the file: this
 	  should override the normal binging, thus min_tabs should be
-	  loaded *after* the normal definition of MOD1..T. It is not
+	  loaded *after* the normal definition of META..T. It is not
 	  appropriate to have key bindings hard-coded in extensions, but I
 	  don't currently know of a better way.
 	- Currently supports ion3 with old toggling as well as new
@@ -33,7 +33,7 @@
 ]]
 
 function show_only_necessary_tabs_in_frame(fp)
-    if obj_typename(fp) ~= "WFrame" then
+    if WFrame.mode(fp) == 'floating' then
 	-- Escape: floatws thing should not be handled
         return
     end
@@ -109,9 +109,9 @@
 	Special keybinding override for this extension
 ]]
 
-defbindings("WFrame", {
+defbindings("WMPlex.toplevel", {
     bdoc("Tag current object within the frame."),
-    kpress(MOD1.."T", "min_tabs_tag_wrapper(_,_sub)", "_sub:non-nil"),
+    kpress(META.."T", "min_tabs_tag_wrapper(_,_sub)", "_sub:non-nil"),
 })
signature.asc (application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.2 (GNU/Linux)

iD8DBQFGSMtmUJhDmOfFA3URAtFYAJ9KhaOj6fcGOCBdxiM6Sdh6bUi+5ACgqUQi
zLzEOnXskVKWD6jRWf2BY5s=
=89eG
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.