Style StrEquals/bsearch problem

2002-08-29 Thread Dave Trollope

Hi Domonik

I was returning to the discussion we had at the start of the month where 
you wanted to replace the if/else chain with a bsearch. We had a 
detailed discussion about changing the data structures etc and I see you 
have modified the macros along some of the lines we discussed, but the 
bsearch problem hasn't been implemented yet and I had another perhaps 
simpler idea.


Instead of trying to get the bitfield address of the field(s) to change 
and storing that in a bsearchable array, perhaps a simpler solution 
would be this - and this is flexible to complex styles as well as simple 
styles.


For each style, create a simple static function to set the data 
appropriately, then in the array of names, use a function pointer. E.G.


Instead of:

if(StrEquals(token,Sticky))
{ S_SET_STICKY(MCF(...),on)
  S_SET_STICKY(MCM...,1)
  S_SET 
}else if(StrEquals.

You could do this:

static void f_Set_Sticky(int on) {
  S_SET_STICKY(MCF(...),on)
  S_SET_STICKY(MCM...),1)
  S_SET 
}

struct setstyle { char *name; void (*func)(int on); } = {
. { Sticky, f_Set_Sticky }, ...
}


ss = bsearch(setstyle,token)
if(ss) ss-func(on)
else { /* do other style checking */ }

This retains the whole data model, and avoids the whole bit mask address 
problem while also being flexible to more complex processing for some 
styles. This does create a lot of functions, but if they are static, 
they should be minimum overhead.


What do you think?

Cheers
Dave

--
Dave, Diane  Kringle
http://www.geocities.com/SiliconValley/7499


--
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: Notification: incoming/919

2002-08-29 Thread Dominik Vogt
On Wed, Aug 28, 2002 at 11:27:47AM -0500, fvwm-bug wrote:
 FVWM Bug Tracking notification
 
 new message incoming/919
 
 Message summary for PR#919
   From: [EMAIL PROTECTED]
   Subject: Mozilla 1.1 maximize window drift
   Date: Wed, 28 Aug 2002 11:27:44 -0500
   0 replies   0 followups
 
 Full_Name: Tore Nordstrand
 Version: 2.5.3
 CVS_Date: 
 OS: suse 8
 X_Server: xfree86 nvidia
 Submission from: (NULL) (80.212.160.173)
 
 
 The new maximize (f11) function in mozilla causes mozilla yo absorb the
 total size of window + border, leading to window drift.

Please report this to the mozilla developers.  If they want to
maximize the window they should be using the protocol defined in
the Extended Window Manager Hints spec to avoid this kind of
problem.

Bye

Dominik ^_^  ^_^

 --
Dominik Vogt, mail: [EMAIL PROTECTED], phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
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 domivogt: * Fixed SidePic background drawing w/ B/D gradient backgrounds.

2002-08-29 Thread FVWM CVS
CVSROOT:/home/cvs/fvwm
Module name:fvwm
Changes by: domivogt02/08/29 08:48:46

Modified files:
.  : ChangeLog 
fvwm   : menus.c 

Log message:
* Fixed SidePic background drawing w/ B/D gradient backgrounds.

--
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 domivogt: * Fixed SidePic background drawing w/ B/D gradient backgrounds.

2002-08-29 Thread FVWM CVS
CVSROOT:/home/cvs/fvwm
Module name:fvwm
Changes by: domivogt02/08/29 08:49:05

Modified files:
.  : Tag: branch-2_4 ChangeLog NEWS 
fvwm   : Tag: branch-2_4 menus.c 

Log message:
* Fixed SidePic background drawing w/ B/D gradient backgrounds.

--
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]


odd highlighed window problem with 2.4.9

2002-08-29 Thread Charles Hines

Howdy all.

I switched to v2.4.9 the other day (from v2.4.3) and noticed this odd thing...
I use a modified version of xbuffy (v3.3) that I changed to never take the
focus (since it pops up a new window briefly when mail comes in), and after
switching to v2.4.9 I noticed the focus appearing to change, but not really...

The xbuffy window will get highlighted like it's got the focus, but the focus
never actually changes.  And I can't restore the correct window highlighting
until I click in yet another window (I use click to focus, in case you hadn't
guessed) and back to the original one.

I was going to look into this problem myself, but since I haven't looked at
the code in a real long time I figured I'd be better off just asking if anyone
has seen similar behavior first.  And since Dominik usually figures these
things out about 2 minutes after they are posted to the list... :)

If no one has any ideas off the tops of their heads, I'll look into it myself
tommorrow.

Thanks,
Chuck

-- 
Charles K. Hines   [EMAIL PROTECTED]   [EMAIL PROTECTED]
Principal Scientist at ReQuest Technologies Inc   (http://www.ReQuestTech.com/)

  dis ting could have possabiwities if I put my twisted widdle mind to it!
- Bugs Bunny

--
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]


FVWM: PNG support in 2.5.3

2002-08-29 Thread Scott Smedley
Hi all,

I decided to upgrade to 2.5.3 for the PNG support.

I'm assuming I can do stuff like this now:

AddToMenu [EMAIL PROTECTED]@ MuLTiMeDia Title
+ ...

but I get an error:

[FVWM][scanForPixmap]: WARNING Couldn't load image from gtcd.png

The 'scanForPixmap' looks ominous. Can anyone help me out? Is there
some docco on png support anywhere?

yes, I did compile in PNG support.

DeePBLue grep PNG config.h
#define HAVE_PNG 1
DeePBLue uname -a
Linux deepblue.milkyway.com.au 2.4.18-5custom #5 SMP Tue Aug 13 19:53:37 EST 
2002 i686 unknown
DeePBLue fvwm --version
fvwm version 2.5.3 compiled on Aug 29 2002 at 19:55:58
fvwm comes with NO WARRANTY, to the extent permitted
by law.  You may redistribute copies of fvwm under
the terms of the GNU General Public License.  For
more information about these matters, see the file
named COPYING.
with support for: ReadLine, XPM, PNG, GNOME WM hints, EWMH hints, Shape, SM, 
Xinerama, XFT

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


Re: FVWM: PNG support in 2.5.3

2002-08-29 Thread Mikhael Goikhman
On 29 Aug 2002 21:10:27 +1000, Scott Smedley wrote:
 
 I decided to upgrade to 2.5.3 for the PNG support.
 
 I'm assuming I can do stuff like this now:
 
 AddToMenu [EMAIL PROTECTED]@ MuLTiMeDia Title
 + ...
 
 but I get an error:
 
 [FVWM][scanForPixmap]: WARNING Couldn't load image from gtcd.png

Are you sure you have the correct ImagePath?
You may always specify the full file name, like /my/images/gtcd.png.

Can you view this image using some image viewer?

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


Re: FVWM: PNG support in 2.5.3

2002-08-29 Thread Scott Smedley
Hi,

Thanks for the quick reply.

 Are you sure you have the correct ImagePath?

yup, my .png images are stored with all my .xpm images.

DeePBLue grep ImagePath .fvwm2rc 
ImagePath$HOME/images/icons

 You may always specify the full file name, like /my/images/gtcd.png.

hmmm, well using an absolute path worked! Does 'ImagePath' only
apply to xpms? Is there a 'PNGPath' or similar?

DeePBLue grep yellowStar menu 
+CoNTRoL%yellowStar.png%Exec exec rxvt -e aumix 
+Testing%/home/deepblue/scott/images/icons/yellowStar.xpm%Nop

In the above test I did, I got no image next to 'CoNTRoL', but
I *did* get the image next to 'Testing' ... go figure ...

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


Re: FVWM: PNG support in 2.5.3

2002-08-29 Thread Mikhael Goikhman
On 29 Aug 2002 21:44:23 +1000, Scott Smedley wrote:
 
  Are you sure you have the correct ImagePath?
 
 yup, my .png images are stored with all my .xpm images.
 
 DeePBLue grep ImagePath .fvwm2rc 
 ImagePath$HOME/images/icons
 
  You may always specify the full file name, like /my/images/gtcd.png.
 
 hmmm, well using an absolute path worked! Does 'ImagePath' only
 apply to xpms? Is there a 'PNGPath' or similar?
 
 DeePBLue grep yellowStar menu 
 +CoNTRoL%yellowStar.png%Exec exec rxvt -e aumix 
 +Testing%/home/deepblue/scott/images/icons/yellowStar.xpm%Nop
 
 In the above test I did, I got no image next to 'CoNTRoL', but
 I *did* get the image next to 'Testing' ... go figure ...

Just tested, everything works for me.

Well, if you have these lines exactly, it means you have yellowStar.xpm,
but not yellowStar.png. Or you don't have png support compiled in.
Or ImagePath is incorrect. Or you run the wrong fvwm executable. :)
Or there is some problem with your png library if it can't load the image.

There is also a small change for a bug somewhere, but until you make it
reproducible using a minimal config and 1-2 pngs, nothing can be done.

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


Re: FVWM: PNG support in 2.5.3

2002-08-29 Thread Scott Smedley

 Just tested, everything works for me.

Bugger! My mistake - I had yellowStar.png in another subdirectory.

You'd think after 3 years of playing with fvwm I could've nutted it out!

Still, thanks so much for your help.

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


FVWM: keys...

2002-08-29 Thread Thomas Gardiner

Hi,

I have the following keys defined in my config file

Key LeftA   M   GotoDesk -1
Key Right   A   M   GotoDesk +1

and usually these work, but with OpenOffice, I'm finding that they don't.

Does anyone have an idea why with this particular application they should
fail?

Thanks,

Tom

Ps. I'm using fvwm 2.4.7



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


FVWM: background rendering of SidePic

2002-08-29 Thread Scott Smedley
Hi all,

I've had this problem for a while  thought upgrading to 2.5.3
would fix it. In short, the background of 'SidePic' is not rendered
when I invoke WindowList from the Keyboard (but it works fine if it's
invoked from the Mouse).

Best illustrated with a simple .fvwm2rc:

deepblue% cat .fvwm/.fvwm2rc 
ImagePath $HOME/images/icons
MenuStyle * MenuFace DGradient 255 2 darkgray 50 MidnightBlue 50 white
MenuStyle * SidePic happy.xpm
Mouse 3 R A WindowList
# Alt-Tab is set up in ConfigFvwmDefaults as:
# Key Tab A M WindowList Root c c NoDeskSort
Mouse 2 R A WindowList Root c c NoDeskSort
Key F2 A M WindowList

Note: you will need to put happy.xpm (or substitute) in ImagePath.

press Mouse 2 or 3  works fine.
press Alt-F2 or Alt-Tab ... not so good.

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


Re: FVWM: keys...

2002-08-29 Thread Dominik Vogt
On Thu, Aug 29, 2002 at 09:12:11AM -0400, Thomas Gardiner wrote:
 
 Hi,
 
 I have the following keys defined in my config file
 
 Key LeftA   M   GotoDesk -1
 Key Right   A   M   GotoDesk +1
 
 and usually these work, but with OpenOffice, I'm finding that they don't.
 
 Does anyone have an idea why with this particular application they should
 fail?

The same hapens with Gnome.  It's pretty annoying, and I have no
idea how some applications manage to do this.  Fvwm grabs the key
combinations on the root window and any further grabs by the
applications should fail.  Yet, they still manage to do this.

Bye

Dominik ^_^  ^_^

 --
Dominik Vogt, mail: [EMAIL PROTECTED], phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: keys...

2002-08-29 Thread Sam Izzo
 The same hapens with Gnome.  It's pretty annoying, and I have no
 idea how some applications manage to do this.  Fvwm grabs the key
 combinations on the root window and any further grabs by the
 applications should fail.  Yet, they still manage to do this.

I've had the occasional strange problem with my key bindings.  Sometimes they
just stop working (all of them, that is).  It's a little annoying; I'll press
my alt-f1 or f2 to raise/lower a window, or alt-left to go to my left desktop,
and it just won't work!  They just stop working entirely.  I'm using Gnome 1.4
(but no nautilus managing the desktop) and fvwm 2.5.1.  Is this related to the
above problem?  I have to quit X entirely and restart it to get my bindings
back again.

sam

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


Re: FVWM: keys...

2002-08-29 Thread Dominik Vogt
On Thu, Aug 29, 2002 at 11:46:52PM +1000, Sam Izzo wrote:
  The same hapens with Gnome.  It's pretty annoying, and I have no
  idea how some applications manage to do this.  Fvwm grabs the key
  combinations on the root window and any further grabs by the
  applications should fail.  Yet, they still manage to do this.
 
 I've had the occasional strange problem with my key bindings.  Sometimes they
 just stop working (all of them, that is).  It's a little annoying; I'll press
 my alt-f1 or f2 to raise/lower a window, or alt-left to go to my left desktop,
 and it just won't work!  They just stop working entirely.  I'm using Gnome 1.4
 (but no nautilus managing the desktop) and fvwm 2.5.1.  Is this related to the
 above problem?  I have to quit X entirely and restart it to get my bindings
 back again.

Or just press the num-lock key again ;-)  See question 0.1 in the
FAQ.

Bye

Dominik ^_^  ^_^

 --
Dominik Vogt, mail: [EMAIL PROTECTED], phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: keys...

2002-08-29 Thread Thomas Gardiner

I don't know Sam.  Are you sure none of your num-lock or scroll-lock keys
are pressed?

For me, I can move my cursor over the root window or any other window and
my key bindings for switching pages return (I use focuss follows mouse),
so it's really a question of the application getting in the way.

Dominik, one thing I have noticed is that it does not occur like this all
of the time.  Sometimes my key bindings work, while other times they
don't.  It seems to be related to where the program is in handling
switching modes, or saving...  basically whether it is accepting input.
Unfortunately, it seems a bit tricky to make it occur on will.

Silly question...  Could it be the focus policy?  Sometimes it seems as if
no window has focus.  Can this occur, and will fvwm cope properly?

Thanks,

Tom


On Thu, 29 Aug 2002, Sam Izzo wrote:

  The same hapens with Gnome.  It's pretty annoying, and I have no
  idea how some applications manage to do this.  Fvwm grabs the key
  combinations on the root window and any further grabs by the
  applications should fail.  Yet, they still manage to do this.

 I've had the occasional strange problem with my key bindings.  Sometimes they
 just stop working (all of them, that is).  It's a little annoying; I'll press
 my alt-f1 or f2 to raise/lower a window, or alt-left to go to my left desktop,
 and it just won't work!  They just stop working entirely.  I'm using Gnome 1.4
 (but no nautilus managing the desktop) and fvwm 2.5.1.  Is this related to the
 above problem?  I have to quit X entirely and restart it to get my bindings
 back again.

 sam

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


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


Re: FVWM: background rendering of SidePic

2002-08-29 Thread Dominik Vogt
On Thu, Aug 29, 2002 at 11:22:14PM +1000, Scott Smedley wrote:
 Hi all,
 
 I've had this problem for a while  thought upgrading to 2.5.3
 would fix it. In short, the background of 'SidePic' is not rendered
 when I invoke WindowList from the Keyboard (but it works fine if it's
 invoked from the Mouse).
 
 Best illustrated with a simple .fvwm2rc:
 
 deepblue% cat .fvwm/.fvwm2rc 
 ImagePath $HOME/images/icons
 MenuStyle * MenuFace DGradient 255 2 darkgray 50 MidnightBlue 50 white
 MenuStyle * SidePic happy.xpm
 Mouse 3 R A WindowList
 # Alt-Tab is set up in ConfigFvwmDefaults as:
 # Key Tab A M WindowList Root c c NoDeskSort
 Mouse 2 R A WindowList Root c c NoDeskSort
 Key F2 A M WindowList
 
 Note: you will need to put happy.xpm (or substitute) in ImagePath.
 
 press Mouse 2 or 3  works fine.
 press Alt-F2 or Alt-Tab ... not so good.

Fixed.

Bye

Dominik ^_^  ^_^

 --
Dominik Vogt, mail: [EMAIL PROTECTED], phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: keys...

2002-08-29 Thread Dominik Vogt
On Thu, Aug 29, 2002 at 09:53:03AM -0400, Thomas Gardiner wrote:
 For me, I can move my cursor over the root window or any other window and
 my key bindings for switching pages return (I use focuss follows mouse),
 so it's really a question of the application getting in the way.

Hm, so the application seems to have grabbed the key on its window
and fvwm has grabbed it everywhere else.  I have to look this up
in the X manuals.

 Dominik, one thing I have noticed is that it does not occur like this all
 of the time.  Sometimes my key bindings work, while other times they
 don't.  It seems to be related to where the program is in handling
 switching modes, or saving...  basically whether it is accepting input.
 Unfortunately, it seems a bit tricky to make it occur on will.

It may be important if you start OpenOffice first or fvwm.  After
an fvwm restart things may look very differently.  In X it's just
first come - first serve:  whoever requests the grab first gets
it.

 Silly question...  Could it be the focus policy?

No, that has nothing to do with it.  Focus policy affects only
mouse button handling.

 Sometimes it seems as if
 no window has focus.  Can this occur, and will fvwm cope properly?

   The same hapens with Gnome.  It's pretty annoying, and I have no
   idea how some applications manage to do this.  Fvwm grabs the key
   combinations on the root window and any further grabs by the
   applications should fail.  Yet, they still manage to do this.

Bye

Dominik ^_^  ^_^

 --
Dominik Vogt, mail: [EMAIL PROTECTED], phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: keys...

2002-08-29 Thread Thomas Gardiner
Well, I can add a little more information.

OpenOffice contains a tool called Impress (You know star office 6.0...).
The problem with loosing key binding occurs after switching back from
a full screen presentation or slide show view to normal editing view.

The open office window will respond to mouse clicks, though some of its
functionality is lost i.e. some of the menu items do nothing.

Does this suggest any more ideas on what might be causing this problem?

Thanks,

Tom



On Thu, 29 Aug 2002, Dominik Vogt wrote:

 On Thu, Aug 29, 2002 at 09:53:03AM -0400, Thomas Gardiner wrote:
  For me, I can move my cursor over the root window or any other window and
  my key bindings for switching pages return (I use focuss follows mouse),
  so it's really a question of the application getting in the way.

 Hm, so the application seems to have grabbed the key on its window
 and fvwm has grabbed it everywhere else.  I have to look this up
 in the X manuals.

  Dominik, one thing I have noticed is that it does not occur like this all
  of the time.  Sometimes my key bindings work, while other times they
  don't.  It seems to be related to where the program is in handling
  switching modes, or saving...  basically whether it is accepting input.
  Unfortunately, it seems a bit tricky to make it occur on will.

 It may be important if you start OpenOffice first or fvwm.  After
 an fvwm restart things may look very differently.  In X it's just
 first come - first serve:  whoever requests the grab first gets
 it.

  Silly question...  Could it be the focus policy?

 No, that has nothing to do with it.  Focus policy affects only
 mouse button handling.

  Sometimes it seems as if
  no window has focus.  Can this occur, and will fvwm cope properly?

The same hapens with Gnome.  It's pretty annoying, and I have no
idea how some applications manage to do this.  Fvwm grabs the key
combinations on the root window and any further grabs by the
applications should fail.  Yet, they still manage to do this.

 Bye

 Dominik ^_^  ^_^

  --
 Dominik Vogt, mail: [EMAIL PROTECTED], phone: 0721/91374-382
 Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
 --
 Visit the official FVWM web page at URL: http://www.fvwm.org/.
 To unsubscribe from the list, send unsubscribe fvwm in the body of a
 message to [EMAIL PROTECTED]
 To report problems, send mail to [EMAIL PROTECTED]


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


Re: FVWM: keys... (fwd)

2002-08-29 Thread Thomas Gardiner

Sorry Dominik, I didn't intend for this to go directly to you...

Tom


-- Forwarded message --
Date: Thu, 29 Aug 2002 13:24:30 -0400 (EDT)
From: Thomas Gardiner [EMAIL PROTECTED]
To: Dominik Vogt fvwm@fvwm.org
Subject: Re: FVWM: keys...

Well, I can add a little more information.

OpenOffice contains a tool called Impress (You know star office 6.0...).
The problem with loosing key binding occurs after switching back from
a full screen presentation or slide show view to normal editing view.

The open office window will respond to mouse clicks, though some of its
functionality is lost i.e. some of the menu items do nothing.

Does this suggest any more ideas on what might be causing this problem?

Thanks,

Tom



On Thu, 29 Aug 2002, Dominik Vogt wrote:

 On Thu, Aug 29, 2002 at 09:53:03AM -0400, Thomas Gardiner wrote:
  For me, I can move my cursor over the root window or any other window and
  my key bindings for switching pages return (I use focuss follows mouse),
  so it's really a question of the application getting in the way.

 Hm, so the application seems to have grabbed the key on its window
 and fvwm has grabbed it everywhere else.  I have to look this up
 in the X manuals.

  Dominik, one thing I have noticed is that it does not occur like this all
  of the time.  Sometimes my key bindings work, while other times they
  don't.  It seems to be related to where the program is in handling
  switching modes, or saving...  basically whether it is accepting input.
  Unfortunately, it seems a bit tricky to make it occur on will.

 It may be important if you start OpenOffice first or fvwm.  After
 an fvwm restart things may look very differently.  In X it's just
 first come - first serve:  whoever requests the grab first gets
 it.

  Silly question...  Could it be the focus policy?

 No, that has nothing to do with it.  Focus policy affects only
 mouse button handling.

  Sometimes it seems as if
  no window has focus.  Can this occur, and will fvwm cope properly?

The same hapens with Gnome.  It's pretty annoying, and I have no
idea how some applications manage to do this.  Fvwm grabs the key
combinations on the root window and any further grabs by the
applications should fail.  Yet, they still manage to do this.

 Bye

 Dominik ^_^  ^_^

  --
 Dominik Vogt, mail: [EMAIL PROTECTED], phone: 0721/91374-382
 Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
 --
 Visit the official FVWM web page at URL: http://www.fvwm.org/.
 To unsubscribe from the list, send unsubscribe fvwm in the body of a
 message to [EMAIL PROTECTED]
 To report problems, send mail to [EMAIL PROTECTED]



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


FVWM: keys...

2002-08-29 Thread Thomas Gardiner

Sorry for inundating you folks, but this is a funny thing.

One more observation:

After going to slide-show view and returning, the main Open Office window
has focus.  However, there are sub-windows which only exist within the
Open Office main window, but do not have focus.  By simply moving my mouse
to the border or title bar of the window focus is restored for all windows.

Oh, sorry I forgot to mention...  My key bindings for switching pages
return as soon as my mouse touches the border or title bar of the main
open office window.

So, this problem does appear to be connected to focus somehow.

Does this help?

Tom



On Thu, 29 Aug 2002, Thomas Gardiner wrote:

 -- Forwarded message --
 Date: Thu, 29 Aug 2002 13:24:30 -0400 (EDT)
 From: Thomas Gardiner [EMAIL PROTECTED]
 To: Dominik Vogt fvwm@fvwm.org
 Subject: Re: FVWM: keys...

 Well, I can add a little more information.

 OpenOffice contains a tool called Impress (You know star office 6.0...).
 The problem with loosing key binding occurs after switching back from
 a full screen presentation or slide show view to normal editing view.

 The open office window will respond to mouse clicks, though some of its
 functionality is lost i.e. some of the menu items do nothing.

 Does this suggest any more ideas on what might be causing this problem?

 Thanks,

 Tom

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


Re: FVWM: i can't run fvwm 2.4

2002-08-29 Thread John Latham
 Date: Thu, 29 Aug 2002 10:17:29 +0200
 From: Dominik Vogt fvwm@fvwm.org

  I  was building a Red Hat ready fvwm2.5.2 RPM

  which we are probably going to use here at Manchester CS.

 Don't do that!  It's not even alpha quality.

I can't decide whether your are advising using 2.5.3, or 2.4.9 instead! :-)

2.5.2 does *seem* very stable. I have used it everyday since early July, and
it has not crashed. :-) All (certainly most) of the ~700 users will be using
the same configuration package as I have been using, i.e. AnotherLevelUp
(otherwise it would be a little dangerous, I agree). I have added a patch to
fix the task bar start button context problem I reported yesterday (thanks for
fixing in CVS, Mikhael). The most persuasive motive for using 2.5 rather than
2.4 is it's extra features that *might* help in the desperate war against the
Java/FVWM mismatch -- which has reached critical status now that all our
undergraduates write so much Java :-(

Meanwhile, I have switched to using 2.5.3 personally -- so far so good. I have
probably got about 3 weeks to try 2.5.3 and use that instead if there have
been no serious problems.

My current reasoning is this: 2.5.2 was alpha last month, and the problems
found in it since did not screw up AnotherLevelUp. Now, 2.5.3 is alpha, but it
has not been tested with AnotherLevelUp for a month! Maybe the problems in
2.5.3 will screw up AnotherLevelUp -- I'll let you know if they do, but while
I find out, 2.5.2 is actually a safer bet

Of course, I'll have RPMS for 2.4.[6-9] up my sleeve in case the worst should
happen.


 Bye

 Dominik ^_^  ^_^

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


FVWM: appearing/disappearing pager at press/release of some key

2002-08-29 Thread fiesh
hello,

since i use alt+cursor_keys for virtual desktop navigation, i wondered
if it is possible to have the FvwmPager appear/disappear on
press/release of the alt key.  yet my attempts didn't really work,
-transient only makes the pager disappear when pressing Alt_L (or
whatever key specified) again.  is there some way to make this work?
would be a nice feature, imo.

thanks in advance,

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


FVWM: Still slight cosmetic problem with HGradient menus

2002-08-29 Thread John Latham
This is probably one for Dominic...

You may recall a few weeks ago you fixed a bug in the menus when they have a
HGradient -- certain menu items left `up' after scanning over them? It works
much better now in 2.5.3, thanks very much, but I have noticed one little
imperfection that I didn't notice before. Say you put the pointer on a menu
item which causes a sub-menu to pop up. Then move the pointer up one place.
The sub-menu is cleared away, however, it also wipes off the bottom edge of
the 3D `up' relief of the item at the new pointer position (i.e. what was the
top of the 3D relief of the previous position). This `absent bottom' feature
is disabled if there is a NOP between the two items.

Here is a bit of ascii art in case my description is not clear.

- marks pointer position

 I* are menu items

 --
[..] is 3d 1up' effect
 --

Before:

 I1

 I2
 --
-  [I3] - Sub-menu
 --
 I4

Then move the pointer up one place.

After:

 I1
 --
-  [I2]
 
 I3
 
 I4

MenuStyle settings:

MenuStyle * mwm
MenuStyle * Font *helvetica*medium-r*12*
MenuStyle * Greyed grey35
MenuStyle * Foreground #FF
MenuStyle * MenuFace HGradient 128 2 #D2E1F5 30 #2D61F5 70 #D2E1F5
MenuStyle * PopupAsRootMenu


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


FVWM: alt-tab request

2002-08-29 Thread Joe Morris
After reading section 3.3 of the FAQ, I'm just curious if anyone has 
discovered a way to make fvwm do Alt-Tab switch to the last window 
(Windoze style), instead of the current window; it's a small thing, but 
it's much nicer to have that than the default alt-tab-tab switching.  If 
not, I guess consider that a feature request...


joe

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


FVWM: Binding incr console to one key

2002-08-29 Thread Ripalda-Marin, Miguel-Angel
Hi,

I would like to know whether it is possible or not to bind one key of a
customized keyboard to the feature of switching all the virtual screens of
my system... I'm in a hurry and have got lost in the manual pages...

Thanks you all in advance and best regards,

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


Re: FVWM: appearing/disappearing pager at press/release of some key

2002-08-29 Thread Ulrich Fahrenberg
On Thu, 29 Aug 2002, fiesh wrote:

 since i use alt+cursor_keys for virtual desktop navigation, i
 wondered if it is possible to have the FvwmPager appear/disappear
 on press/release of the alt key.  yet my attempts didn't really
 work, -transient only makes the pager disappear when pressing
 Alt_L (or whatever key specified) again.  is there some way to
 make this work? would be a nice feature, imo.

This is a FAQ, question 7.12. Instead of using what this answer says,
you might try the following:

AddToFunc TogglePager   I None (FvwmPager) Module FvwmPager * *
+   I Next (FvwmPager) Close

Key F1  A   C   TogglePager

As my pager is sticky and always on top, I don't need the other lines
(in the answer to Q7.12).

Regards,
Uli

-- 
Ulrich Fahrenberg -- http://www.math.auc.dk/~uli

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


Re: FVWM: .fvwm2rc syntax guide?

2002-08-29 Thread Felix Karpfen
szonyi calin wrote:
 There was a good manual viewer (X11 based) which
 was acting like a browser (i.e. you had a TOC at the
 beginning and when you pressed the word on that TOC 
 the program took you right to the place where it was
  in the manual.) but it seems it's not on the net
 anymore. 
 
For the benefit of other recent arrivals to Fvwm2 - who are equally
dismayed by the size (and number) of the relevant man pages:

Typing on the command line info fvwm2 loads the man page and all the
routines (emacs bindings, I believe) for reading an info file.

This can lighten the reading load (yet to be tried).

There is also a vim plugin for loading the man page into vim and then
use the features of vim (e.g. search, mark, fold, etc) to make the
reading of the man page less daunting (tried it and it works).

Felix Karpfen 
-- 
Felix Karpfen
[EMAIL PROTECTED]
Public Key 72FDF9DF (DH/DSA)

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


FVWM: Regarding FAQ 3.5

2002-08-29 Thread S. Anderson
Hi,
I just found a program that might help askers of
FAQ 3.5: You can bind mouse movements to keystrokes, how about mouse
presses?

http://hoopajoo.net/projects/xautomation.html
 Control X from the command line for scripts, and do visual scraping
to find things on the screen. The conrol interface allows mouse
movement, clicking, button up/down, key up/down, etc, and uses the XTest
extension so you don't have the annoying problems that xse has when apps
ignore sent events. The visgrep program find images inside of images and
reports the coordinates, allowing progams to find buttons, etc, on the
screen to click on.

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


Re: FVWM: alt-tab request

2002-08-29 Thread S. Anderson
On Thu, Aug 29, 2002 at 11:59:44AM -0700, Joe Morris wrote:
 After reading section 3.3 of the FAQ, I'm just curious if anyone has 
 discovered a way to make fvwm do Alt-Tab switch to the last window 
 (Windoze style), instead of the current window; it's a small thing, but 
 it's much nicer to have that than the default alt-tab-tab switching.  If 
 not, I guess consider that a feature request...
 
 joe

with a recent fvwm version you can do this:
Key Tab A M WindowList CurrentAtEnd
to get the desired effect.
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: keys...

2002-08-29 Thread Sam Izzo
 Or just press the num-lock key again ;-)  See question 0.1 in the
 FAQ.

Oh my god, what an idiot am i!!!  I feel so stupid :)

Thanks!
sam

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


Re: FVWM: keys...

2002-08-29 Thread Paul Smith
%% Sam Izzo [EMAIL PROTECTED] writes:

   Or just press the num-lock key again ;-)  See question 0.1 in the
   FAQ.

  si Oh my god, what an idiot am i!!!  I feel so stupid :)

Don't feel stupid.  You'll notice that's question 0.1 in the
FAQ... there's a reason for that after all :).

-- 
---
 Paul D. Smith [EMAIL PROTECTED] HASMAT--HA Software Mthds  Tools
 Please remain calm...I may be mad, but I am a professional. --Mad Scientist
---
   These are my opinions---Nortel Networks takes no responsibility for them.
--
Visit the official FVWM web page at URL: http://www.fvwm.org/.
To unsubscribe from the list, send unsubscribe fvwm in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]


Re: FVWM: Binding incr console to one key

2002-08-29 Thread Mikhael Goikhman
On 29 Aug 2002 20:01:32 +0100, Ripalda-Marin, Miguel-Angel wrote:
 
 I would like to know whether it is possible or not to bind one key of a
 customized keyboard to the feature of switching all the virtual screens of
 my system... I'm in a hurry and have got lost in the manual pages...

Do you want to disable Ctrl-Alt-F1 and similar keys to switch to virtual
consoles? If yes, this should be done in X, not FVWM.

Or do you want to simulate Ctrl-Alt-F1 with a different key?
It is possible by calling something like sudo switchto 1.

When you are in virtual consoles, you may press Alt-Left, Alt-Right.
So, you may bind (after configuring sudo) Alt-Left to:

  Key Left A M Exec sudo switchto 6

Then Alt-Left will circulate between all VCs if this is what you want.
Anyway, this is not really related to FVWM.

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


Re: FVWM: appearing/disappearing pager at press/release of some key

2002-08-29 Thread Mikhael Goikhman
On 29 Aug 2002 21:34:15 +0200, Ulrich Fahrenberg wrote:
 
 On Thu, 29 Aug 2002, fiesh wrote:
 
  since i use alt+cursor_keys for virtual desktop navigation, i
  wondered if it is possible to have the FvwmPager appear/disappear
  on press/release of the alt key.  yet my attempts didn't really
  work, -transient only makes the pager disappear when pressing
  Alt_L (or whatever key specified) again.  is there some way to
  make this work? would be a nice feature, imo.
 
 This is a FAQ, question 7.12. Instead of using what this answer says,
 you might try the following:
 
 AddToFunc TogglePager   I None (FvwmPager) Module FvwmPager * *
 +   I Next (FvwmPager) Close
 Key F1  A   C   TogglePager
 
 As my pager is sticky and always on top, I don't need the other lines
 (in the answer to Q7.12).

(and since your pager is not CirculateSkip, otherwise you also need
CirculateHit.)

This does not solve the original request: to close transient pager on the
Alt release instead of the next Alt press. This is not currently possible.

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