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 :
--- 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"),
 })
 
 
>> [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            -  --'

Attachment: pgpkgQlpA5PZm.pgp
Description: PGP signature

Reply via email to