Jeremy Hankins said: (by the date of Thu, 22 Oct 2009 08:12:42 -0500) > Janek Kozicki <[email protected]> writes: > > Janek Kozicki said: (by the date of Wed, 21 Oct 2009 19:27:59 +0200) > > > >> Jeremy Hankins said: (by the date of Tue, 20 Oct 2009 16:41:31 -0500) > >> > Does current-head work for windows outside of the current viewport? > >> > To test: > >> > - Create a couple of windows with unique names (e.g., via xterm -title > >> > "Foo" and -title "Bar") Make sure that they're in different heads. > >> > - In sawfish-client run: (current-head (get-window-by-name "Foo")), and > >> > the same thing for "Bar". You'll get the head ID of the head with > >> > the window. > >> > - Go to another viewport and fire up sawfish-client, run the same > >> > commands as before. Does the output match, or did switching > >> > viewports change the head IDs? > >> > Even if they don't apply you can still run the test above, as that's not > dependent on my patches.
OK, there you go (without your patches, currently): I made three windows, called "1st" "2nd" and "3rd" respectively. The results when in the same viewport: user> (current-head (get-window-by-name "1st")) 0 user> (current-head (get-window-by-name "2nd")) 1 user> (current-head (get-window-by-name "3rd")) 2 user> So it works when in the same viewport. The results when in different viewport (I tried several different viewports, in all 8 directions respectively to original one): user> (current-head (get-window-by-name "1st")) 0 user> (current-head (get-window-by-name "2nd")) 0 user> (current-head (get-window-by-name "3rd")) 0 But then I moved all three windows to another viewport and did the test again (from all 8 directions in other viewports): user> (current-head (get-window-by-name "2nd")) 1 user> (current-head (get-window-by-name "3rd")) 1 user> (current-head (get-window-by-name "1st")) 1 Then I moved all the windows back to original viewport and tested from all 8 directions: user> (current-head (get-window-by-name "2nd")) 1 user> (current-head (get-window-by-name "3rd")) 1 user> (current-head (get-window-by-name "1st")) 0 It looks to be semi-random, when in different viewport. Previously I had everywhere '0' at this point. Did you ask for any other dual(triple:) head test, in any other email, and I missed your post? I mean - do you want me to run more such tests? :) best regards -- Janek Kozicki |
