Re: Xinerama support for IconBox style?

2001-08-20 Thread Dominik Vogt
On Sun, Aug 19, 2001 at 07:35:15PM -0400, Dan Espen wrote:
 Dominik Vogt [EMAIL PROTECTED] writes:
  Dan, I looked at the icon box code in style.c because I wanted to
  make it work with changes of the Xinerama state, but the matter is
  too complex to write a patch in short time for me.
  
  What I want to do:
  
   1) Default to using the primary screen for icon box specs
  (already works for X geometry like specs and is easy to do for
  the other syntax).
   2) Recalculate all icon boxes when the Xinerama layout of the
  screen changes (switched on or off).
  
  The difficult part is (2) because all the calculations are done
  when the style is defined.  The precise spec string is thrown away
  afterwards.  So doing this requires to remove the calculations
  from style.c and do them somewhere is icons.c.  Can you take a
  look at this, please?  I think this could wait until after 2.4.1.
 
 Done.  You may want to test this on a system that supports
 Xinerama.  I tested it with:
 
 Style * IconBox -80 240 -1 -1, IconGrid 80 67, \
   IconBox 1040x20+0-40,  IconGrid 80 80, IconFill r t
 
 which tests both formats and some negative coordinates.

Great!  I am still unsure about a few things that could be done:

 - Should each screen have a default icon box?
 - Should icons always be placed in an icon box that overlaps the
   window's screen first?
 - Is it worthwhile to prevent icons from being placed between
   screens if the icon box spans the whole desktop? (I guess not).

I already wrote the code to update the icon boxes when the
Xinerama layout changes, but it needs yet to be tested.

Bye

Dominik ^_^  ^_^

-- 
Dominik Vogt, email: [EMAIL PROTECTED]
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: CVS domivogt: * Applied Xinerama patch for Maximize command but changed syntax to

2001-08-20 Thread Dmitry Yu. Bolkhovityanov
On Sun, 19 Aug 2001, FVWM CVS wrote:

 Log message:
 * Applied Xinerama patch for Maximize command but changed syntax to
 Maximize Screen screen-spec.

fvwm.org seems to be offline, so the question: would it be
possible to maximize on the same screen where the window currently is?
I.e., if the window is completely on screen 2, and I'm issuing Next
(WINNAME) Maximize from FvwmCommand on screen 3 (i.e. c==3), the window
gets geometry [EMAIL PROTECTED]

_
  Dmitry Yu. Bolkhovityanov
  [EMAIL PROTECTED]
  The Budker Institute of Nuclear Physics


--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Xinerama support for IconBox style?

2001-08-20 Thread Dominik Vogt
On Mon, Aug 20, 2001 at 04:19:19PM +0700, Dmitry Yu. Bolkhovityanov wrote:
 On Mon, 20 Aug 2001, Dominik Vogt wrote:
 
  On Sun, Aug 19, 2001 at 07:35:15PM -0400, Dan Espen wrote:
   Dominik Vogt [EMAIL PROTECTED] writes:
Dan, I looked at the icon box code in style.c because I wanted to
make it work with changes of the Xinerama state, but the matter is
too complex to write a patch in short time for me.

What I want to do:

 1) Default to using the primary screen for icon box specs
(already works for X geometry like specs and is easy to do for
the other syntax).
 2) Recalculate all icon boxes when the Xinerama layout of the
screen changes (switched on or off).

The difficult part is (2) because all the calculations are done
when the style is defined.  The precise spec string is thrown away
afterwards.  So doing this requires to remove the calculations
from style.c and do them somewhere is icons.c.  Can you take a
look at this, please?  I think this could wait until after 2.4.1.
   
   Done.  You may want to test this on a system that supports
   Xinerama.  I tested it with:
   
   Style * IconBox -80 240 -1 -1, IconGrid 80 67, \
 IconBox 1040x20+0-40,  IconGrid 80 80, IconFill r t
   
   which tests both formats and some negative coordinates.
  
  Great!  I am still unsure about a few things that could be done:
  
   - Should each screen have a default icon box?
 
   Yes.  The natural way is to place icon on the same screen where
 the window is.

   - Should icons always be placed in an icon box that overlaps the
 window's screen first?
 
   Can you please explain what you mean by that?

Currently, fvwm uses the icon boxes in the order of creation.  So,
if one icon box is created on screen 0 and one is created on
screen 1, all icons are placed on screen 0 until the icon box is
full, then all icons are put on screen 1.  My question was if it
is necessary to skip icon boxes that are not on the same screen as
the window.

   - Is it worthwhile to prevent icons from being placed between
 screens if the icon box spans the whole desktop? (I guess not).
 
   Agreed.  If the user makes a global iconbox, his choice should
 be obeyed.

Bye

Dominik ^_^  ^_^

-- 
Dominik Vogt, email: [EMAIL PROTECTED]
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: CVS domivogt: * Applied Xinerama patch for Maximize command but changed syntax to

2001-08-20 Thread Dominik Vogt
On Mon, Aug 20, 2001 at 04:40:52PM +0700, Dmitry Yu. Bolkhovityanov wrote:
 On Sun, 19 Aug 2001, FVWM CVS wrote:
 
  Log message:
  * Applied Xinerama patch for Maximize command but changed syntax to
  Maximize Screen screen-spec.
 
   fvwm.org seems to be offline, so the question: would it be
 possible to maximize on the same screen where the window currently is?
 I.e., if the window is completely on screen 2, and I'm issuing Next
 (WINNAME) Maximize from FvwmCommand on screen 3 (i.e. c==3), the window
 gets geometry [EMAIL PROTECTED]

Isn't that the default behaviour of your patch without global?
I only changed the syntax of the additional key words:

  Maximize global ...

becomes

  Maximize screen g ...

Im addition you can specify

  Maximize screen p ...
  Maximize screen c ...
  Maximize screen 0 ...
  Maximize screen 1 ...
  ...

Bye

Dominik ^_^  ^_^

-- 
Dominik Vogt, email: [EMAIL PROTECTED]
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


CVS dane: fix bug

2001-08-20 Thread FVWM CVS
CVSROOT:/home/cvs/fvwm
Module name:fvwm
Changes by: dane01/08/20 08:39:12

Modified files:
.  : ChangeLog 
fvwm   : icons.c 

Log message:
fix bug

--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Xinerama support for IconBox style?

2001-08-20 Thread Dan Espen
Dominik Vogt fvwm-workers@fvwm.org writes:
 On Sun, Aug 19, 2001 at 06:45:32PM -0400, Dan Espen wrote:
  Is there a way to test screen size changes without Xinerama working?
 
 With Xinerama emulation.  Run configure with
 
   $ ./configure --enable-xinerama-emulation
 
 The screen is then split into two fake Xinerama screens and a
 blank area that doesn't belong to any screen.  To switch
 Xinerama on and off just use
 
   Xinerama off
 
 or
 
   Xinerama on
 
 or
 
   Xinerama primary_screen_number

Hmm, none of these actually change where the icon box is.
I tried on, off, 0-3.

I'm not sure if they should.  I sort of thought if I had
on followed by 0, it might use the smaller box on the left
as the primary screen but it didn't seem to do that.

It must be pretty neat to watch FvwmAnimate draw lines from one
screen to another.

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214   E-mail: [EMAIL PROTECTED]
Piscataway, NJ 08854 Phone: (732) 699-5570
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Problems building snap-20010820

2001-08-20 Thread Jason L Tibbitts III
Dammit, why do machines always fry on Sunday?

Anyway, the machine is running again, and because I'm not sure what's
causing the flakiness, I'm putting together a replacement.

 - J

--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Xinerama support for IconBox style?

2001-08-20 Thread Dan Espen
Dominik Vogt fvwm-workers@fvwm.org writes:
 Currently, fvwm uses the icon boxes in the order of creation.  So,
 if one icon box is created on screen 0 and one is created on
 screen 1, all icons are placed on screen 0 until the icon box is
 full, then all icons are put on screen 1.  My question was if it
 is necessary to skip icon boxes that are not on the same screen as
 the window.

I don't think we'd want to apply the same screen test unless the
user indicated that the iconbox was for a specific screen.
Right now, theres no way to do that.

I don't think that just because the iconbox lies completely within
a screen is sufficient reason to only use it for one screen.

Since I don't have a setup,  I can only guess, but my guess is
that we don't need a iconbox for each screen feature.

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214   E-mail: [EMAIL PROTECTED]
Piscataway, NJ 08854 Phone: (732) 699-5570
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Problems with maillist?

2001-08-20 Thread Dmitry Yu. Bolkhovityanov
Hi!

On 18-Aug I've submitted a patch for Wharf which haven't popped in
the list.  Our mail server's /var/log/maillog shows that
for msgid=[EMAIL PROTECTED]
relay=karazm.math.uh.edu, Message accepted for delivery, but...

Maybe I should resend the message?

_
  Dmitry Yu. Bolkhovityanov
  [EMAIL PROTECTED]
  The Budker Institute of Nuclear Physics


--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Xinerama support for IconBox style?

2001-08-20 Thread Dmitry Yu. Bolkhovityanov
On Mon, 20 Aug 2001, Dan Espen wrote:

 Dominik Vogt fvwm-workers@fvwm.org writes:
  Currently, fvwm uses the icon boxes in the order of creation.  So,
  if one icon box is created on screen 0 and one is created on
  screen 1, all icons are placed on screen 0 until the icon box is
  full, then all icons are put on screen 1.  My question was if it
  is necessary to skip icon boxes that are not on the same screen as
  the window.
 
 I don't think we'd want to apply the same screen test unless the
 user indicated that the iconbox was for a specific screen.
 Right now, theres no way to do that.

Would it be possible to remember the screen# together with
translated geometry?

 I don't think that just because the iconbox lies completely within
 a screen is sufficient reason to only use it for one screen.
 
 Since I don't have a setup,  I can only guess, but my guess is
 that we don't need a iconbox for each screen feature.

Well, maybe not iconbox for each screen, but iconify on the
same screen.  It seems most natural that windows iconify on the same
screen where they are.  

A possible way to achieve this behaviour is to define a floating
iconbox: i.e. IconBox -80x200-1-1 will create an iconbox which will be
treated as @w (w is window's current screen).  Not sure about
implementation details, though -- I'm speaking of this mainly as a user of
several multiheaded machines.

BTW, there's a little problem with specifying iconboxes separately
for each screen: this is okay for a static configuration, but what about
an XDM server which works for several different-headed machines? So
there's a need in a single command to bind iconboxes to all screens.

I have yet to test the latest CVS, so sorry if everything is
already done.

_
  Dmitry Yu. Bolkhovityanov
  [EMAIL PROTECTED]
  The Budker Institute of Nuclear Physics


--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Problems building snap-20010820

2001-08-20 Thread Dominik Vogt
On Mon, Aug 20, 2001 at 08:54:52AM -0500, Jason L Tibbitts III wrote:
 Dammit, why do machines always fry on Sunday?
 
 Anyway, the machine is running again, and because I'm not sure what's
 causing the flakiness, I'm putting together a replacement.

I still cant reach the machine.

Bye

Dominik ^_^  ^_^

-- 
Dominik Vogt, email: [EMAIL PROTECTED]
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Xinerama support for IconBox style?

2001-08-20 Thread Dominik Vogt
On Mon, Aug 20, 2001 at 09:45:11AM -0400, Dan Espen wrote:
 Dominik Vogt fvwm-workers@fvwm.org writes:
  On Sun, Aug 19, 2001 at 06:45:32PM -0400, Dan Espen wrote:
   Is there a way to test screen size changes without Xinerama working?
  
  With Xinerama emulation.  Run configure with
  
$ ./configure --enable-xinerama-emulation
  
  The screen is then split into two fake Xinerama screens and a
  blank area that doesn't belong to any screen.  To switch
  Xinerama on and off just use
  
Xinerama off
  
  or
  
Xinerama on
  
  or
  
Xinerama primary_screen_number
 
 Hmm, none of these actually change where the icon box is.
 I tried on, off, 0-3.

I don't know if you did this, but I only made the X geometry like
syntax work with screens.  The other syntax still addresses the
global screen if you did not write this.  Try

  Style * IconBox [EMAIL PROTECTED]

 I'm not sure if they should.  I sort of thought if I had
 on followed by 0, it might use the smaller box on the left
 as the primary screen but it didn't seem to do that.

The proper syntax is

  Xinerama 3

not

  Xinerama on 3

I guess this should be changed anyway since it interferes with the
paring of 0/1 values of the bool argument.

Bye

Dominik ^_^  ^_^

-- 
Dominik Vogt, email: [EMAIL PROTECTED]
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Problems with maillist?

2001-08-20 Thread Jason L Tibbitts III
 DYB == Dmitry Yu Bolkhovityanov [EMAIL PROTECTED] writes:

DYB On 18-Aug I've submitted a patch for Wharf which haven't popped
DYB in the list.

It bounced to the owner for approval.  Unfortunately someone also chose to
mailbomb me that day as well with over a gigabyte of crap, which resulted
in me losing a some useful mail.  Your message might have been in there.
I had hoped that I hadn't lost anything, but it looks like I was overly
optimistic.

Regular list mail wasn't effected, as that doesn't go anywhere near my main
mailbox.

DYB Maybe I should resend the message?

Please do.

 - J
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Xinerama support for IconBox style?

2001-08-20 Thread Dan Espen
Dominik Vogt fvwm-workers@fvwm.org writes:
 On Mon, Aug 20, 2001 at 09:45:11AM -0400, Dan Espen wrote:
  Dominik Vogt fvwm-workers@fvwm.org writes:
   On Sun, Aug 19, 2001 at 06:45:32PM -0400, Dan Espen wrote:
Is there a way to test screen size changes without Xinerama working?
   
   With Xinerama emulation.  Run configure with
...
  Hmm, none of these actually change where the icon box is.
  I tried on, off, 0-3.
 
 I don't know if you did this, but I only made the X geometry like
 syntax work with screens.  The other syntax still addresses the
 global screen if you did not write this.  Try
 
   Style * IconBox [EMAIL PROTECTED]

Neat.

Issuing the Style command moves the icons around.
It looks good to me.

The man page needs work.

  I'm not sure if they should.  I sort of thought if I had
  on followed by 0, it might use the smaller box on the left
  as the primary screen but it didn't seem to do that.
 
 The proper syntax is
 
   Xinerama 3
 not
   Xinerama on 3

I meant to say, I issued:

Xinerama on
Xinerama 0

 I guess this should be changed anyway since it interferes with the
 parsing of 0/1 values of the bool argument.

My biggest problem is spelling the command.

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214   E-mail: [EMAIL PROTECTED]
Piscataway, NJ 08854 Phone: (732) 699-5570
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: Xinerama support for IconBox style?

2001-08-20 Thread Dan Espen
Dmitry Yu. Bolkhovityanov [EMAIL PROTECTED] writes:
 On Mon, 20 Aug 2001, Dan Espen wrote:
 
  Dominik Vogt fvwm-workers@fvwm.org writes:
   Currently, fvwm uses the icon boxes in the order of creation.  So,
   if one icon box is created on screen 0 and one is created on
   screen 1, all icons are placed on screen 0 until the icon box is
   full, then all icons are put on screen 1.  My question was if it
   is necessary to skip icon boxes that are not on the same screen as
   the window.
  
  I don't think we'd want to apply the same screen test unless the
  user indicated that the iconbox was for a specific screen.
  Right now, theres no way to do that.
 
   Would it be possible to remember the screen# together with
 translated geometry?

It can be saved, but what for?

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214   E-mail: [EMAIL PROTECTED]
Piscataway, NJ 08854 Phone: (732) 699-5570
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


One more Xinerama patch for FvwmWharf

2001-08-20 Thread Dmitry Yu. Bolkhovityanov
Hi!

This patch deals with withdrawing Wharf to corners and with
in which direction panels should open.

BTW, there's a strange error in drawing the panel's host button.
When a vertical Wharf is at the right border (and a panel slides to the
left), after a panel completely appears, the host button is in two
halves: the right half is pressed, while the left one is depressed.

Presence of this effect depends on X server, but I can 100%
reproduce it in Xnest ran on Matrox G450 under XFree86 4.0.3 (RH7.1,
AnotherLevel).  Interestingly, on the host server itself the effect seems
to be 100% unreproducible.  I can post a screenshot of this effect if
required.

BTW2: wouldn't it be wise to add an item 15.5.5.5 to todo-3.0,
stating Remove FvwmWharf (It's an FvwmButtons with trivial enhancements)?

_
  Dmitry Yu. Bolkhovityanov
  [EMAIL PROTECTED]
  The Budker Institute of Nuclear Physics



wharf.diff.gz
Description: Binary data


Re: Problems with maillist?

2001-08-20 Thread Jason L Tibbitts III
Well, I found what looks to be all of the mail I thought I had lost, and in
it was the patch, which I sent through.

 - J
--
Visit the official FVWM web page at URL:http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm-workers in the
body of a message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]