Re: CVS domivogt: * Fixed the TitleWarp menu style.

2006-10-28 Thread Tavis Ormandy
On Fri, Oct 27, 2006 at 08:56:50AM +0200, Viktor Griph wrote:
 You can add the special option WarpTitle to the menu commands you want to 
 warp to the title.
 
 /Viktor

Thanks Viktor, you're correct, I misinterpreted the manual.

Thanks, Tavis.

-- 
-
[EMAIL PROTECTED] | finger me for my pgp key.
---


pgpWRMKWGUpfE.pgp
Description: PGP signature


Re: CVS domivogt: * Fixed the TitleWarp menu style.

2006-10-25 Thread Tavis Ormandy
On Mon, Mar 27, 2006 at 02:29:19PM -0600, FVWM CVS wrote:
 CVSROOT:  /home/cvs/fvwm
 Module name:  fvwm
 Changes by:   domivogt06/03/27 14:29:19
 
 Modified files:
   .  : ChangeLog NEWS 
   fvwm   : menus.c 
   modules/FvwmIdent: FvwmIdent.c 
 
 Log message:
 * Fixed the TitleWarp menu style.
 

Hello, I really liked this behaviour, is it possible to re-enable it as
an option? Ever since this was introduced I've been launching the wrong
applications :)

Thanks, Tavis.

(sorry for the late reply, btw) 

$ cvs diff -r1.389 -r1.390 fvwm/menus.c
diff -u -w -r1.389 -r1.390
--- fvwm/menus.c9 Feb 2006 11:49:33 -   1.389
+++ fvwm/menus.c27 Mar 2006 20:29:19 -  1.390
@@ -4411,7 +4411,7 @@
 * Warp the pointer
 */
 
-   if (!do_warp_to_item)
+   if (!do_warp_to_item  parent_menu != NULL)
{
MenuItem *mi;
 

-- 
-
[EMAIL PROTECTED] | finger me for my pgp key.
---


pgpDEdMLaob0O.pgp
Description: PGP signature


Re: CVS domivogt: * Fixed the TitleWarp menu style.

2006-10-25 Thread Tavis Ormandy
On Wed, Oct 25, 2006 at 10:34:08PM +0200, Dominik Vogt wrote:
  Hello, I really liked this behaviour, is it possible to re-enable it as
  an option? Ever since this was introduced I've been launching the wrong
  applications :)
 
 What's the problem?
 

The pointer used to warp to the first entry, but now it it doesnt move.
It's not a problem, I just preferred the old behaviour! I'm having to
re-learn my menu-using habits :)

Thanks, Tavis.

-- 
-
[EMAIL PROTECTED] | finger me for my pgp key.
---


pgp9hzh55Unyt.pgp
Description: PGP signature


Re: ModuleListenOnly command

2006-06-24 Thread Tavis Ormandy
On Sun, Jun 25, 2006 at 03:22:57AM +1000, Scott Smedley wrote:
 Why use a module for something so simple?
 
 AddToFunc MyPeriodicFunc
 + I PipeRead 'echo SendToModule FvwmButtons ChangeButton clock Title $(date 
 +%R  %a %d.%m.)'
 + I PipeRead 'str=$(/bin/ps -A --format %C %P %c | sort -n -r | tail -n1) ; 
 echo SendToModule FvwmButtons ChangeButton topproc Title $str'
 + I Schedule 15000 MyPeriodicFunc
 
 Schedule 3000 MyPeriodicFunc
 

It would be great if something like this worked (I would use this all
the time ;), but sadly a module is the only option as the `Schedule`
will never execute if the server is grabbed, rather than delaying
until the grab has been released.

(see execute_complex_function())

Tavis.

-- 
-
[EMAIL PROTECTED] | finger me for my pgp key.
---


pgpxRmwVZvHVY.pgp
Description: PGP signature


Re: FVWM: key binding for middle click behaviour

2006-03-28 Thread Tavis Ormandy
On Tue, Mar 28, 2006 at 02:49:33AM -0800, Reza Roboubi wrote:
 Thank you very much for fvwm.
 
 I was wondering if there is a command that simulates a
 paste action(mouse middle click.)
 

xterm supports shift-insert, if that's any help (you can redefine it
with translation tables, if you like).

- Tavis.

-- 
-
[EMAIL PROTECTED] | finger me for my pgp key.
---


pgpl0Xi7Y2LNn.pgp
Description: PGP signature


Re: bell on failed grab

2006-01-18 Thread Tavis Ormandy
On Wed, Jan 18, 2006 at 12:44:26PM +0100, Dominik Vogt wrote:
 On Sun, Jan 15, 2006 at 10:24:01PM +, Tavis Ormandy wrote:
  Hello, I would really like to appeal for the removal of the XBell()
  at line 1029 in fvwm/functions.c, part of execute_complex_function().
  
 
 That's fine with me, so if someone makes a patch I'd apply it.
 
 Ciao
 
 Dominik ^_^  ^_^
 

Great! How about this oneliner

--- functions.c 19 Oct 2005 06:25:18 -  1.270
+++ functions.c 18 Jan 2006 12:37:56 -
@@ -1026,7 +1026,10 @@
if (!GrabEm(CRS_NONE, GRAB_NORMAL))
{
func-use_depth--;
-   XBell(dpy, 0);
+   fvwm_msg(ERR, 
+   ComplexFunction, 
+   Grab failed in function %s, unable to execute immediate 
action, 
+   action);
__cf_cleanup(depth, arguments, cond_rc);
return;
}

Thanks, Tavis.

-- 
-
[EMAIL PROTECTED] | finger me for my pgp key.
---



bell on failed grab

2006-01-15 Thread Tavis Ormandy
Hello, I would really like to appeal for the removal of the XBell()
at line 1029 in fvwm/functions.c, part of execute_complex_function().

It doesnt serve any purpose as it is impossible to determine even if it
was fvwm that rang the bell, and as no message is printed to stderr to
indicate what the bell means there is no way for a user to find out what
failed or what function was trying to execute when it failed. 

Additionally, it really drives me crazy as it makes a lot of the events
supported by FvwmEvent totally unusable for me, as some of them may be
triggered while the server is grabbed.

Replacing the XBell() with a message to stderr stating failed to grab
server in function FooBar or similar would be much more helpful to
users who want to find out why their configuration isnt working, and
much less annoying to users who realise that some commands may fail
during a grab but want it anyway :)

Thanks, Tavis

-- 
-
[EMAIL PROTECTED] | finger me for my pgp key.
---



Re: matlab steals focus

2005-12-03 Thread Tavis Ormandy
On Sat, Dec 03, 2005 at 11:28:47PM +0100, Viktor Griph wrote:
 I've encounted a strange, and undesired, behaviour with matlab 7.x 
 (maybe eralier versions too), and I've tried all fvwm options available 
 and I still can't get it to work right. My conclution is that matlab must 
 break some rule. I write this in hope that someone knows of a way to go 
 around that behaviour.

I've had a similar problem with a different proprietary application, it
used XSetInputFocus() whenever it wanted my attention, very annoying :)

If this is what it's doing, afaik there is no way around it. I solved
it with a preload library, for example, try this:

$ cat libmatlab.c 
#include X11/Xlib.h
int XSetInputFocus(Display *d, Window w, int i, Time t) { return 0;}
$ gcc -shared -fPIC libmatlab.c -o libmatlab.so
$ LD_PRELOAD=`pwd`/libmatlab.so matlab -nodesktop

If it works, you could create a wrapper script to set LD_PRELOAD before
starting matlab (dont have matlab here to test).

Hope this helps, Tavis.

-- 
-
[EMAIL PROTECTED] | finger me for my pgp key.
---


pgp3QmN4Qm8vY.pgp
Description: PGP signature


Re: FVWM: FVWM : how to echo a string to current window ?

2005-10-14 Thread Tavis Ormandy


--On Friday, October 14, 2005 14:18:39 +0200 Lucio Chiappetti
[EMAIL PROTECTED] wrote:

 I would like to bind some arbitrary complex string to functional keys, so
 that when I press the key, it were as if I typed the string on stdin.

I would use the xse utility, you can download it from here
ftp://ftp.x.org/R5contrib/

You could do something like:

Key F1 A A Current Exec xse -win $[w.id] 'KeyA' 'KeyA' 'KeyReturn'

Or you could also use it to make a form (xse can do this itself, or you
could use FvwmButtons)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
 



Re: FVWM: Automatic focusing? (newbie)

2005-06-03 Thread Tavis Ormandy
On Wed, Jun 01, 2005 at 10:00:24PM -0300, Dedeco wrote:
  Now I have the following problem but I don't know how to deal it. When 
 I switch desktops using the FvwmPager Swallowed by the mentioned Button 
 bar, I wanted that any window besides the button bar itself in the 
 desktop I choose should be (or get) focused. Using the keyboard to do 
 this is no point because I would use ALT+TAB from the beginning; the 
 mouse is (obviously) over the bar...

I use this:

*FvwmEvent: new_page 'Current (!CurrentPage) Prev (CurrentPage) Focus NoWarp'

The Current (!CurrentPage) is just to stop focus switching wildly when
dragging the viewport via the pager. (Note, if you dont already use
FvwmEvent you will have to add it to your StartFunction)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Drag to create an xterm

2005-03-31 Thread Tavis Ormandy
On Thu, Mar 31, 2005 at 02:02:10PM +0200, Uwe Pross wrote:
 Hi there,
 
 recently I saw a demonstration of plan 9 where the
 presenter clicked on the root window and dragged a
 rectangle to start a terminal with position and size of the
 drag gesture. I think this is a really nice way to start
 and place xterms or other apps.
 
 I am thinking of writing a fvwm function to achieve this
 and stuck currently at following points. 
 - A grid should be drawn while dragging.
 - Xterm (or another app) should be started on key release.
 
 Any suggestions how to achieve the desired behaviour?
 

Wow, that's a really cool idea!

The fist part is no problem, it's easy to start an xterm when drawing a
rectangle and identifying the pointer position when you started, but I'm
not sure how you could find the length and width of the rectangle.

Something like this should start an xterm at the stroke start position when
you draw a rectangle on the root window:

AddToFunc StrokeFuncWrapper
+ I SetEnv StrokeStart +$[pointer.x]+$[pointer.y]
+ I StrokeFunc DrawMotion FeedBack StrokeWidth 2 EchoSequence

AddToFunc StartStrokeXterm I Exec exec xterm -g $[StrokeStart]

Mouse 3 R A StrokeFuncWrapper
Stroke N741236987 0 R N StartStrokeXterm

I can't think of anyway to identify the geometry of the drawn rectangle,
my first thought was to capture the output of EchoSequence, but
unfortunately that isn't much use.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Bug#293368: fvwm: 'Mouse 1 T A Move' does not work as expected

2005-03-17 Thread Tavis Ormandy
On Thu, Mar 17, 2005 at 12:38:26PM -0600, Manoj Srivastava wrote:
 Package: fvwm
 Version: 2.5.12-4
 Severity: normal
 
 When you push mouse 1 on title bar and try to move a window the
 movement is delayed for a while. Indeed, it appears to wait until
 button release, which is very disconcerting.
 

This is expected behaviour, the user probably wants something like this:

AddToFunc MoveWindow I Move
Mouse 1 T A MoveWindow

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: automatic cursor movement with fvwm buttons?

2005-03-05 Thread Tavis Ormandy
On Sat, Mar 05, 2005 at 11:57:18AM -0500, Jim Cline wrote:
 If it were possible to have two actions associated with a button 
 (the first to pop up the window, the second to execute a CursorMove
 command) I would know how to do this, but apparently that's not possible.
 There must be another way  which I'm not seeing.

You're on the right track, instead of binding it to Exec foo, bind it to
a function that does all the actions you require, eg:

AddToFunc MyExecFunc 
+ I Exec $0
+ I Wait $0
+ I Next ($0) WarpToWindow 50 50

Now you can use MyExecFunc xterm, instead of Exec xterm or whatever :) 

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: SetTitleFormat

2005-02-22 Thread Tavis Ormandy
I've been interested in changing the titles of some windows that don't
set a useful name, I thought some other users might find it
interesting...

It probably won't work on all windows, but it at least the fixed the
ones I needed to change :)

AddToFunc StartFunction I FvwmEvent FvwmEvent-Title

*FvwmEvent-Title: add_window SetTitleFunc
*FvwmEvent-Title: property_change SetTitleFunc

DestroyFunc SetTitleFormat
AddToFunc SetTitleFormat I AddToFunc SetTitleFunc I ThisWindow ($0) PipeRead \
'echo Exec xprop -id $[w.id] -set WM_NAME \'$1\' | sed \
-e s#%t#$[w.name]#g \
-e s#%i#$[w.iconname]#g \
-e s#%I#$[w.id]#g \
-e s#%c#$[w.class]#g \
-e s#%w#$[w.width]#g \
-e s#%h#$[w.height]#g'

SetTitleFormat XTerm This is an %c, it is %wx%h, id: %I
SetTitleFormat XCalc 1+1=2

Which set's the title on xterm's to something like 

This is an XTerm, it is 644x340, id: 0x343

It could easily be adopted to set iconname on iconify or similar if 
required :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: send EnterNotify message to a window??

2005-02-18 Thread Tavis Ormandy
On Fri, Feb 18, 2005 at 01:41:19PM -0800, Yang Yang wrote:
 hi there:
   is there a way to send an arbitrary X Event to a window?

Yes, one of the most useful and underrated utilities I know of, xse.

If you happen to use Gentoo Linux it's available via portage, otherwise
you will have to google for it :)

Example: 

$ xse -win 0x441 'EnterNotify Normal DetailNone'

or:

Prev (x2x) Exec xse -win $[w.id] 'EnterNotify Normal DetailNone'

   in this case, I want to send an EnterNotify event to x2x window, so I 
 can 
   bind a key to that sending operation, and switch x2x screens by keyboard
   only. binding a key to WarptoWindow doesn't work, because the pointer 
   suddenly jumps into the window, and no EnterNotify is generated 
 

Interesting, I thought you were mistaken about WarpToWindow, but I tried it
myself and you're right.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Some Windows doesnt have Borders

2005-02-08 Thread Tavis Ormandy
On Tue, Feb 08, 2005 at 07:49:47PM +, Sebastian Rodriguez wrote:
 So, is there a way to make a default style for all the windows who
 arent clearly defined?
 As an example, when i receive a dcc via xchat, the dcc windows stills
 opens and i must kill it to close it.

Hey, try this

Style xchat-2 NoFuncHint, NoDecorHint

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Manual window movement with SNAPPING!

2005-02-03 Thread Tavis Ormandy
On Wed, Feb 02, 2005 at 09:24:39PM +, Thomas Adam wrote:
 On Wed, Feb 02, 2005 at 09:53:57PM +0200, Kobus Retief wrote:
  Ola
 
  I wrote about this I while ago, but didn't get any response. Decided
  to give it another shot (at the start of the month, for a change)...
 
  I move windows around with key bindings; to tell the truth most of
  my fvwm configuration is keyboard-based. The problem is that, sure,
  it's easy to move windows to specific positions, but what I really
  need is something that will snap the window to the closest intervening
  window border (almost comparable to the grow option of the resize
  functions).
 

Ahh, I don't remember seeing your original post, I would have mentioned
these PackWindow functions I have, they sound like what you're looking
for. 

I use them from time to time and find them very handy, I have them
bound to Alt+Shift+Arrows.

Thomas Adam accidentally put the wrong URL, it's at: 
http://dev.gentoo.org/~taviso/fvwm2rc.html

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: focus on new start app

2005-01-23 Thread Tavis Ormandy
On Thu, Jan 20, 2005 at 09:55:02PM +0800, Xue Ruini wrote:
 hello, everyone
 
 How can I wrap to the new app on its starting automatically? 
 
 Thanks!
 

You mean switch keyboard focus to it, or warp to it?

If you mean switch keyboard focus, try some combination of the
FPGrabFocus Styles, eg:

Style * FPGrabFocus

I don't think there is a preset style for warping to new applications,
but you can use the generic solution in faq #3.18 if that's what 
you're looking for :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: How to define a double click on FvwmButtons?

2005-01-19 Thread Tavis Ormandy
On Thu, Jan 20, 2005 at 02:30:26AM +0800, Yin susu wrote:
 As,i know,
 *MyButtons: (1x5, Frame 0, Icon 48x48/gimp.png, \
   Action(Mouse 1) Exec exec gimp)
 use this,I can start up gimp by click on the button.
 
   But how could i start gimp by double click on the buttons?

Define a function that starts gimp on double click, for example:

AddToFunc DoubleExec D Exec $*

Then bind Mouse 1 to DoubleExec gimp instead.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: go to an application

2005-01-18 Thread Tavis Ormandy
On Tue, Jan 18, 2005 at 05:37:52PM +0800, Xue Ruini wrote:
 Hello, everyone
 
 I am using FvwmIconMan to maintain the applications list. But now there is
 a question for it. If an app, say emacs, stays in pager 1, and I am one pager
 0 now. How can I raise emacs and navigate to pager 1 to see the 'raised'
 emacs on click1 of IconMan? The desired way what I need is somewhat the same
 as Window List , no matter where you invoke the windows list, you can go to
 get it on selecting it.

I suppose this is a two part question:

a) How can I see applications from all desktops?

Chage the Resolution option, try something like:

*FvwmIconMan: Resolution desk

b) How can I Warp to an application with IconMan?

You can change the Action binding to any function or command you like,
you can even string multiple actions together, this is what I use:

*FvwmIconMan: Action Mouse 1 N sendcommand Iconify off, sendcommand 
RaiseLower, sendcommand FlipFocus

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Kiosk

2005-01-02 Thread Tavis Ormandy
On Sat, Jan 01, 2005 at 11:06:27PM -0800, David Busby wrote:
 List,
   I'm trying to make a touch screen kiosk, in the discovery phase at 
 this point.  What is the fastest way to make a GUI app for FVWM?  All I 
 need to do is a QA type of application. 

Fastest way? xdialog perhaps, http://xdialog.dyns.net/ 

(mouse over the screenshot links for some examples)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: raise when WarpToWindow

2004-12-16 Thread Tavis Ormandy
On Thu, Dec 16, 2004 at 03:52:02PM -0500, Emilie Ann Phillips wrote:
 b) is there some way to not raise the window?
 I am using FVWM version 2.4.19
 

There is, this solution is tested with 2.5.12, I think it should work for you.

 The following .fvwm2rc is sufficient to produce the behavior
 
 AddToFunc Set-Reference
 + I Piperead 'echo Setenv $0_Id  $[w.id]'
 AddToFunc Goto-Reference

Replace this: 

 + I Piperead echo 'WindowId [$0_Id] WarpToWindow 50 50'

With something like this:

WindowId $0 Piperead echo WindowId root WarpToWindow 
$(($[w.x]+($[w.width]/2)))p $(($[w.y]+($[w.height]/2)))p

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: StrokeFunc on PDA help

2004-12-14 Thread Tavis Ormandy
On Tue, Dec 14, 2004 at 01:26:44PM +1000, Alexei Gilchrist wrote:
 Hi all,
 
 I've been running fvwm on a linux Zaurus PDA and it's by far the best
 window manager I've found for the platform despite the limitations of a
 PDA (you can see screenshots of fvwm on Zaurus on this thread:
 http://www.zaurususergroup.com/forums/index.php?showtopic=8280st=0 )
 

Wow, that's awesome!

 Can anyone suggest how to efficiently set up the use of Stroke for a
 PDA? Stroke itself is working fine, but I have not found it very usable 
 because: 
 
 1) there is only really one button with the stylus so you can't simply 
 overide that for the stroke commands. 
 2) binding the stroke commands only on the root window is a bit
 limiting, and you would have to get to the root window first.
 3) using a modifier key means that you have to use the
 keyboard, and if you're going to do that it's just as easy to bind a key
 to the command than have to use both keys and stylus, also if the PDA
 is open such that the keyboard is unaccessible then you lose the stroke
 commands right when you need them most. 

I see you use a taskbar, you could create a button on it that initiates
the stroke, for example:

*FvwmButtons: (2x20, Icon stroke.png, Frame 0, ActionOnPress, Action(Mouse 1) 
`StrokeFunc DrawMotion FeedBack`)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


Another FAQ suggestion

2004-12-11 Thread Tavis Ormandy
Hello, I have another FAQ suggestion based on a question I've seen quite
frequently on irc and email, etc. feel free to modify/correct/rewrite :)

Q. When I Maximize an application, sometimes I get gaps around the
edges, and other times I don't. What's going on?

A. The ICCCM specification allows applications to specify certain
properties the window manager should honour, such as aspect ratio 
(PAspect) or increments to be resized in (PResizeInc). Of course,
sometimes these properties won't perfectly match the size of your
desktop (or ewmh struts), if that should happen, you will get gaps.

In general, the application will have a good reason for doing this (for
example, a terminal window may not want to have only part of a column
visible), but you can make fvwm ignore the hints with ResizeHintOverride.


(The docs suggest only Max/Min size is ignored with ResizeHintOverride,
but that doesnt seem to be true...not that I'm complaining, I like this
feature! (well, i'd prefer it didnt clobber P/USPosition, but I can live
with that!))

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: Schedule command failing

2004-10-31 Thread Tavis Ormandy
On Sun, Oct 31, 2004 at 10:35:14PM +0100, Vincent Bernat wrote:
 | DestroyFunc RescheduleRandomWallPaper
 | AddToFunc RescheduleRandomWallPaper
 | + I RandomWallPaper
 | + I Deschedule 35
 | + I Schedule 90 35 RescheduleRandomWallPaper
 `
 
 I call RescheduleRandomWallPaper  at start. However, after some  time,
 RescheduleRandomWallPaper is not scheduled any more. Any idea why ?


Schedule is not reliable, if the server is grabbed it doesn't fire :(

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Re: your mail

2004-10-29 Thread Tavis Ormandy
On Fri, Oct 29, 2004 at 05:02:15PM +0200, Tim wrote:
 Hi,
 little question:
 How can i run an program under fvwm? (not from an term)
 Under fluxbox I have the command fbrun.
 Does something like fbrun exists under fvwm?
 

You could write one with FvwmScript or FvwmForm, you could probably just
edit the FvwmForm-Talk demo, should be very simple.

 Thx a lot
 Tim

Although, there's no reason why you can't use fbrun under fvwm, I just
tried it and it works fine. I usually use gmrun, http://sf.net/projects/gmrun/

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Bugs in SetEnv and UnsetEnv

2004-10-01 Thread Tavis Ormandy
On Thu, Sep 30, 2004 at 08:40:04PM +0200, Dominik Vogt wrote:
 On Thu, May 29, 2003 at 10:23:48PM +, Mikhael Goikhman wrote:
  I would like to get some feedback before I try to resolve these bugs.
  These are in both 2.4.x and 2.5.x.
  
  1) 'UnsetEnv VARNAME' does not work, the variable is not unset, instead
 it gets an empty value . The fix is obvious, putenv should be called
 with VARNAME not VARNAME=.
 
 I've written a function flib_unsetenv() that uses unsetenv if the
 system has it.  If not, it calls putenv(name).  If that throws
 an error or does not remove the variable, it is zeroed with
 putenv(name=).
 

This new code is giving me some trouble

#0  0x40290223 in free () from /lib/libc.so.6
#1  0x080f7989 in add_to_envlist (var=0x820aad0 Icon-0x243,
env=0x82139f8 Icon-0x243=$[w.iconfile]) at envvar.c:394
#2  0x080f7acb in flib_putenv (var=0x820aad0 Icon-0x243,
env=0x82139f8 Icon-0x243=$[w.iconfile]) at envvar.c:447
#3  0x08082cd5 in CMD_SetEnv (cond_rc=0xbfffeb60, exc=0x82153c8,
action=0x8216c3b ) at builtins.c:3337
#4  0x080bab2b in __execute_function (cond_rc=0xbfffeb60, exc=0x8217360,
action=0x8215bcd SetEnv Icon-0x243 $[w.iconfile],
exec_flags=0 '\0', args=0x0) at functions.c:630

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: TRouble with Performance during switching between Desktops

2004-09-27 Thread Tavis Ormandy
On Mon, Sep 27, 2004 at 06:20:31PM +0200, Dirk Rydvan wrote:
 ###
 
 a pager without labels? I agree, but in man FvwmPager (2.4.18) is only 
 one option showed:

It's well hidden, you want the `Font none` setting.

 I need only a flat, simply design, that means in this case 10 Pages in 
 one desktop.
 
 I think it's difficult
 

No, very easy! I wrote a mini tutorial on creating FvwmButtons panels a
while ago if you're interested, there are different approaches but this
one describes the way I do it:

http://forums.gentoo.org/viewtopic.php?t=162177

I think you're describing something like this:

DestroyModuleConfig FvwmPagerLabels: *
*FvwmPagerLabels: Columns 10
*FvwmPagerLabels: Rows 3
*FvwmPagerLabels: Frame 1
*FvwmPagerLabels: (1x1, Title Stuff0)
*FvwmPagerLabels: (1x1, Title Stuff1)
*FvwmPagerLabels: (1x1, Title Stuff2)
*FvwmPagerLabels: (1x1, Title Stuff3)
*FvwmPagerLabels: (1x1, Title Stuff4)
*FvwmPagerLabels: (1x1, Title Stuff5)
*FvwmPagerLabels: (1x1, Title Stuff6)
*FvwmPagerLabels: (1x1, Title Stuff7)
*FvwmPagerLabels: (1x1, Title Stuff8)
*FvwmPagerLabels: (1x1, Title Stuff9)
*FvwmPagerLabels: (10x2, Swallow FvwmPager `FvwmPager 0 0`)

Which looks something like this:

http://dev.gentoo.org/~taviso/fvwmpagerlabels.png
-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: xsession-errors is more then 600 MBytes after 16 days

2004-09-12 Thread Tavis Ormandy
On Sun, Sep 12, 2004 at 11:05:55PM +0200, Michelle Konzack wrote:
 Hello, 
 
 I think, this is inacceptable... 
 How can I deactivate logging of this crap ?
 

try this patch

--- fvwm/events.c   2003-08-28 21:26:14.0 +0100
+++ fvwm/events.c.new   2003-11-01 11:02:59.0 +
@@ -512,7 +512,7 @@
return;
 }
 
-#define CR_DETECT_MOTION_METHOD_DEBUG
+/* #define CR_DETECT_MOTION_METHOD_DEBUG */
 /* Try to detect whether the application uses the ICCCM way of moving its
  * window or the traditional way, always assuming StaticGravity. */
 static inline void __cr_detect_icccm_move(

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


faq suggestion

2004-09-10 Thread Tavis Ormandy
I have a suggestion for a faq based on a question I see quite regulary
on the irc channel, something like this:

Q: Why does fvwm change my X Cursor theme?
A: It doesnt, there is a standard set of cursors that should always be 
available to applications, such as crosshair, left_ptr, arrow, pencil, etc. 
your theme should provide each of these cursors, but some dont. when 
something (eg, an application or fvwm) requests a cursor that your theme 
doesnt provide, X falls back to the default. If you are seeing fvwm using
cursors that dont match your theme, you should use CursorStyle to 
change to a cursor that is available, or find a more complete theme.
Note that fvwm doesnt control what cursors your applications request.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: gimp2 + StartsOnDesk + SkipMapping

2004-09-02 Thread Tavis Ormandy
On Thu, Sep 02, 2004 at 06:08:53PM +0200, Chris Rouch wrote:
 On Thu, 2 Sep 2004 17:34:11 +0200
 
 Style Gimp* StartsOnDesk 3, SkipMapping, RandomPlacement
 
 Thanks for any help.
 

This works here:

Style Gimp-2.0 StartsOnPage 2 2, SkipMapping, !FPFocusByFunction

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: taking screenshot of multiple / all desks / pages

2004-08-28 Thread Tavis Ormandy
On Fri, Aug 27, 2004 at 10:48:02AM -0400, xavier wrote:
 
 works great.
 
 takes 1 mins for 10x7 on one desk.

Try this, might be a bit faster:

AddToFunc Screenshot I PipeRead `for ((x=0;x$[desk.pagesx];x++)); do \
for ((y=0;y$[desk.pagesy];y++)); \
do echo GotoPage ${x} ${y}; \
xwd -root -silent -out $[FVWM_USERDIR]/page_${x}_${y}.xwd;\
done; done;\
montage -geometry $[vp.width]x$[vp.height] -tile \
$[desk.pagesx]x$[desk.pagesy] $[FVWM_USERDIR]/page_*_*.xwd \
png:$[HOME]/screenshot.png; rm -f $[FVWM_USERDIR]/page_*_*.xwd`

(makes a screenshot.png in your home dir)

 however, there is desks where there is nothing ;
 is there a fvwm way to know that ? so that i don't take 
 empty and useless screenshots.
 

Sure, use Any (CurrentPage) DoStuff..

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Send_WindowList

2004-08-11 Thread Tavis Ormandy
On Mon, Aug 09, 2004 at 10:29:27AM +0200, Dominik Vogt wrote:
 On Mon, Aug 09, 2004 at 03:45:20AM +0100, Tavis Ormandy wrote:
 No, you get a M_CONFIGURE_WINDOW packet for each window.  When all
 packets have been sent, the module gets a M_END_WINDOWLIST packet.
 The M_CONFIG_INFO packages contain the module confiugration lines
 (*Fvwm...) and are requested with SendConfigInfo.
 

Thanks Dominik, I think I'm losing bytes somewhere, I should probably
rewrite it in c :)

  This is my Module: http://dev.gentoo.org/~taviso/files/FvwmExpose
  (written in bash, heh :-) ) It works pretty good, but without 
  Send_WindowList
  it can only find out about windows it receives events for. 
  

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


Send_WindowList

2004-08-08 Thread Tavis Ormandy
Hello, I don't really understand what is supposed to happen when I send
Send_WindowList, am I supposed to get a M_CONFIG_INFO packet for each 
window?

I only seem to get one packet, and then my normal packets requested with 
SetMessageMask. I only need to know their windowid's, am I supposed to 
parse the packet payload? (I'm only reading the headers at the moment).

This is my Module: http://dev.gentoo.org/~taviso/files/FvwmExpose
(written in bash, heh :-) ) It works pretty good, but without Send_WindowList
it can only find out about windows it receives events for. 

(You might remember I asked a question about the expose idea a while ago 
on fvwm-users, after some experimenting I found that a module is the only
way to do it reliably).

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: Menu /mouse problem

2004-08-03 Thread Tavis Ormandy
On Tue, Aug 03, 2004 at 12:01:06PM -0700, m p wrote:
 Why is it that once I open the menu with middle
 mouse button and unwillingly click
 on the top (Title) a new window pops up with
 RootMenu and how to get rid of this?
 Thanks,
 Mark
 

It's a default binding, you can just undefine it if you
don't like it:

Mouse 2 M N -

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Slashdotted

2004-07-30 Thread Tavis Ormandy
On Fri, Jul 30, 2004 at 09:45:03AM -0500, Jason L Tibbitts III wrote:
 I noticed that traffic to the web site was rather high yesterday.
 Today I noticed the Newsforge article:
 http://www.newsforge.com/article.pl?sid=04/07/18/1937231
 
 Congrats to everyone.
 

There was an article about fvwm in a recent german linux magazine, I 
don't speak german, but there is something about it here:
http://www.linux-user.de/ausgabe/2004/08

RvB from #fvwm wrote the article, I believe :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Slashdotted

2004-07-30 Thread Tavis Ormandy
On Fri, Jul 30, 2004 at 05:28:41PM +0100, Tavis Ormandy wrote:
 On Fri, Jul 30, 2004 at 09:45:03AM -0500, Jason L Tibbitts III wrote:
  I noticed that traffic to the web site was rather high yesterday.
  Today I noticed the Newsforge article:
  http://www.newsforge.com/article.pl?sid=04/07/18/1937231
  
  Congrats to everyone.
  
 
 There was an article about fvwm in a recent german linux magazine, I 
 don't speak german, but there is something about it here:
 http://www.linux-user.de/ausgabe/2004/08
 
 RvB from #fvwm wrote the article, I believe :)
 

Oh, an english translation is available for free here:
http://www.linux-magazine.com/issue/46/FVWM.pdf

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Re: Slashdotted

2004-07-30 Thread Tavis Ormandy
On Fri, Jul 30, 2004 at 05:28:41PM +0100, Tavis Ormandy wrote:
 On Fri, Jul 30, 2004 at 09:45:03AM -0500, Jason L Tibbitts III wrote:
  I noticed that traffic to the web site was rather high yesterday.
  Today I noticed the Newsforge article:
  http://www.newsforge.com/article.pl?sid=04/07/18/1937231
  
  Congrats to everyone.
  
 
 There was an article about fvwm in a recent german linux magazine, I 
 don't speak german, but there is something about it here:
 http://www.linux-user.de/ausgabe/2004/08
 
 RvB from #fvwm wrote the article, I believe :)
 

Oh, an english translation is available for free here:
http://www.linux-magazine.com/issue/46/FVWM.pdf

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Switching between jpegs

2004-07-29 Thread Tavis Ormandy
On Wed, Jul 28, 2004 at 05:19:15PM -0700, Elliot Sowadsky wrote:
 
   Is there a fast way to switch between wallpaper jpegs (such as when i'm
   switching desktops)?
  
 xli (1.16 png) is faster than xvbut still takes 2 seconds to switch,
 slow probably due to decompressing jpg.
 
 I tried having one jpg be root and the other be a fullscreen decorless
 window, but then i cant reach root menus. I dont suppose X can hold two
 root bitmaps and switch between them.

Did you know fvwm will cache them in Colorsets?

You can read about it here http://www.fvwm.org/documentation/faq/#6.6

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Adjusting mouse speed in FVWM

2004-07-28 Thread Tavis Ormandy
On Wed, Jul 28, 2004 at 08:53:51AM -0400, Ryan Daly wrote:
 All,
 
 If I don't use any of the GNOME or KDE tools, is there an easy way to
 adjust settings (such as the speed and accelleration of my mouse) in
 FVWM?
 
 I currently have some of the GNOME tools installed, but if I can avoid
 it, I'd like to.
 
 Thanks in advance for any suggestions.

Have you seen FvwmScript-PointerSetup?

Just run FvwmScript FvwmScript-PointerSetup in FvwmConsole to try it
out, if you want a command to change the settings, try xset.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: page navigation

2004-07-23 Thread Tavis Ormandy
On Fri, Jul 23, 2004 at 06:27:02PM +0200, Julian Leyh wrote:
 the keys are configured like this:
 
 Key Left  A 4 GotoPage -1p 0p
 Key Right A 4 GotoPage 1p 0p
 Key UpA 4 GotoPage 0p -1p
 Key Down  A 4 GotoPage 0p 1p
 
 this way i get following sequences:
 1-2-3, 4-5-6, 7-8-9 for Left/Right, and
 1-4-7, 2-5-8, 3-6-9 for Up/Down..
 That's very nice :) but i'd like to have it a little different.
 if i'm in screen 3 and go right, i'd like to be sent to 4.. if i'm in 6,
 send me to 7.. the same for the up/down movement. from page 7 to 2, from
 page 8 to 3. the next step would be to send me from page 9 to 1 if i go
 right/down.. does anybody have info about how i could realize this?

do you know about Scroll?

for example,

Key Left  A 4 Scroll -10 0
Key Right A 4 Scroll 10 0
Key UpA 4 Scroll 0 -10
Key Down  A 4 Scroll 0 10

If you want more control over the wrapping, you could write a function
to control it, you can modify this one if you like:

DestroyFunc PageScroll
AddToFunc PageScroll I PipeRead 'case $0 in \
  up) test $[page.ny] -eq $$(($[desk.pagesy]-1)) -a $[page.nx] -lt 
$$(($[desk.pagesx]-1)) \
  echo GotoPage +1p 0 \
 || echo GotoPage 0p +1p;; \
  down) test $[page.ny] -eq 0 -a $[page.nx] -gt 0 \
  echo GotoPage -1p $$(($[desk.pagesy]-1)) \
 || echo GotoPage 0p -1p;; \
   esac'


 Next question is about the Translucency patch..
 Is Translucency only for menus? i tried FvwmPager, but it doesn't seem
 to be possible... FvwmPager has StaysOnTop, so it'd be nice to see
 what's in the window under it.. but i think, for that i'll need real
 translucency provided by the X server. am i right?

Right, it's only possible with menus because they're modal in nature.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Passing events to Reparented windows

2004-07-05 Thread Tavis Ormandy
[sorry if this comes twice, my last reply never reached the list]

On Fri, Jul 02, 2004 at 02:44:02PM +0200, Dominik Vogt wrote:
  Is it worth submiting the patch?
 
 Yes.

Thanks for the reply Dominik, This is the patch I've been using, I'm
sure it's horribly wrong, but it does seem to get Swallowed transparent
windows updated correctly :)

Maybe it will at least help demonstrate what I was talking about :)

Example configuration (requires rxvt =2.7.3, I think):

Colorset 34 fg black, bg white, RootTransparent buffer
DestroyModuleConfig FvwmTest: *
*FvwmTest: Geometry 634x384
*FvwmTest: Colorset 34
*FvwmTest: Rows 2
*FVwmTest: Columns 2
*FvwmTest: (1x1, Swallow TransTerm `Exec exec rxvt -tr -name TransTerm -e rain 
-d 200`)
*FvwmTest: (1x1, Swallow TransTerm `Exec exec rxvt -tr -name TransTerm -e rain 
-d 200`)
*FvwmTest: (2x1, Title Close, Action `Current Close`)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
Index: FvwmButtons.c
===
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmButtons/FvwmButtons.c,v
retrieving revision 1.186
diff -u -w -r1.186 FvwmButtons.c
--- FvwmButtons.c   29 Jun 2004 18:05:55 -  1.186
+++ FvwmButtons.c   3 Jul 2004 09:39:30 -
@@ -1070,7 +1070,43 @@
else if (Event.xconfigure.window == MyWindow 
 Event.xconfigure.send_event)
{
+ button=-1;
+ ub=UberButton;
+
  update_root_transparency(Event);
+ while(NextButton(ub,b,button,0))
+ {
+ if ((b-flags  b_Swallow)  SwallowedWindow(b))
+ {
+ Window swin = SwallowedWindow(b), br;
+ XEvent BEvent;
+ unsigned int bx, by, bw, bh, bbw, bd;
+
+ if (!XGetGeometry(Dpy, swin, br, bx, by, bw, bh, 
bbw, bd))
+ {
+   continue;
+ }
+
+#ifdef DEBUG_EVENTS
+ fprintf (stderr, Sending ConfigureNotify to Button: 
%#9x\n
+   New Position: %ux%u\n, 
+   (int) swin, 
+   Event.xconfigure.x+b-x, 
+   Event.xconfigure.y+b-y);
+#endif
+
+ BEvent.type = ConfigureNotify;
+ BEvent.xconfigure.display = Dpy;
+ BEvent.xconfigure.event = swin;
+ BEvent.xconfigure.window = swin;
+ BEvent.xconfigure.x = Event.xconfigure.x+bx;
+ BEvent.xconfigure.y = Event.xconfigure.y+by;
+ BEvent.xconfigure.width = bw;
+ BEvent.xconfigure.height = bh;
+ BEvent.xconfigure.border_width = bbw;
+ FSendEvent(Dpy, swin, False, StructureNotifyMask, 
BEvent);
+ }
+ }
}
   }
   break;


Re: Passing events to Reparented windows

2004-07-05 Thread Tavis Ormandy
On Fri, Jul 02, 2004 at 02:44:02PM +0200, Dominik Vogt wrote:
  Is it worth submiting the patch?
 
 Yes.
 

Thanks for the reply Dominik, This is the patch I've been using, I'm
sure it's horribly wrong, but it does seem to get Swallowed transparent
windows updated correctly :)

Maybe it will at least help demonstrate what I was talking about :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
Index: FvwmButtons.c
===
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmButtons/FvwmButtons.c,v
retrieving revision 1.186
diff -u -w -r1.186 FvwmButtons.c
--- FvwmButtons.c   29 Jun 2004 18:05:55 -  1.186
+++ FvwmButtons.c   2 Jul 2004 22:06:16 -
@@ -1070,7 +1070,43 @@
else if (Event.xconfigure.window == MyWindow 
 Event.xconfigure.send_event)
{
+ button=-1;
+ ub=UberButton;
+
  update_root_transparency(Event);
+ while(NextButton(ub,b,button,0))
+ {
+ if (b-flags  b_Swallow  SwallowedWindow(b))
+ {
+ Window swin = SwallowedWindow(b), br;
+ XEvent BEvent;
+ unsigned int bx, by, bw, bh, bbw, bd;
+
+ if (!XGetGeometry(Dpy, swin, br, bx, by, bw, bh, 
bbw, bd))
+ {
+   continue;
+ }
+
+#ifdef DEBUG_EVENTS
+ fprintf (stderr, Sending ConfigureNotify to Button: 
%#9x\n
+   New Position: %ux%u\n, 
+   (int) swin, 
+   Event.xconfigure.x+b-x, 
+   Event.xconfigure.y+b-y);
+#endif
+
+ BEvent.type = ConfigureNotify;
+ BEvent.xconfigure.display = Dpy;
+ BEvent.xconfigure.event = swin;
+ BEvent.xconfigure.window = swin;
+ BEvent.xconfigure.x = Event.xconfigure.x+bx;
+ BEvent.xconfigure.y = Event.xconfigure.y+by;
+ BEvent.xconfigure.width = bw;
+ BEvent.xconfigure.height = bh;
+ BEvent.xconfigure.border_width = bbw;
+ FSendEvent(Dpy, swin, False, StructureNotifyMask, 
BEvent);
+ }
+ }
}
   }
   break;


Re: FVWM: Focus and GoToPage

2004-07-05 Thread Tavis Ormandy
On Sat, Jul 03, 2004 at 09:56:48AM +0700, Ruslan Kosolapov wrote:
   A most important thing in this metaphor is focused window should be
   in attention locus, i.e. as far as possible in center of a viewport  

I'm not sure what you mean by attention locus, but if you mean you
want to centre the viewport on a window how about this:

DestroyFunc CenterViewportOnWindow
AddToFunc CenterViewportOnWindow
+ I FlipFocus
+ I WarpToWindow 50 50
+ I PipeRead echo Scroll $$-$[vp.width]/2)+$[pointer.x])))p 
$$(((-($[vp.height]/2)+$[pointer.y])))p

Then, for example, bind something to Next CenterViewportOnWindow

   I asked here about placement windows on whole multipaged desk, not on
   current page only.  OK, now I can't do it by fvwm.

Well you can, the StartsOnPage/SkipMapping solution sounded okay to me?

   Question number two: I report a bug (in my opinion it is a bug) about
   wrong behavior of WarpToWindow function.  Shortly: this function
   resets a viewport like GoToPage do it.  Can I to do something with it?
   Is there a workaround?  I can't find a simple solution (I plan to use
   CursorMove or something like it, but it is not a good solution).
 

I Think using CursorMove is a good solution, you could add some
CursorMove to the function above to get pretty close to this behaviour!

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: tray icon placement

2004-07-05 Thread Tavis Ormandy
On Sat, Jul 03, 2004 at 10:40:26PM +0200, Wojtek Karlowski wrote:
 My question is if there is any method/function in the fvwm, which can 
 force this icon to appear at specified coordinates?  Sorry if this has 
 been asked before, but I couldn't find an answer either in google or 
 in the fvwm faq.
 

take a look at #3.18, if you mean you want it to obey your placement
policy rather than always appear in the top left, maybe you need to set
NoUSPosition/NoPPosition Styles.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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 want to set the new FVWM winning-logo into Rootmenu instead of the Title string of Rootmenu, what should i do?

2004-07-05 Thread Tavis Ormandy
On Sun, Jul 04, 2004 at 07:40:46PM +0800, lee wrote:
 I like the new FVWM winning logo, and want to set it instead of the
 RootMenu Title in my fvwm2rc file , this is i do:
 AddToMenu MenuFvwmRoot %fvwm-logo-starburst-blue-250x83.png% Title
  i set the title string empty, just want to use the logo instead of
 the string Root Menu
 
 But the logo displays the left of FVWM rootmenu, if i want to it
 displays the center of Rootmenu , What should i do?
 

Almost right, try AddToMenu MenuFvwmRoot *fvwm-logo-starburst-blue-250x83.png* 
Title

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Memory usage

2004-07-05 Thread Tavis Ormandy
On Mon, Jul 05, 2004 at 03:22:01PM -, Eduardo Gargiulo wrote:
 May be this message is rather off-topic.
 
 I'm using fvwm as window maneger; I'm trying to optimize the usage of memory,
 because it's an old machine with only 160Mb of RAM memory. My question is
 regarding the process that set up a background for my fvwm desktop. I'm using
 fvwm-root to load a png image as wallpaper, but I can't see that process with
 'ps' or 'top' command so I'm looking for information about memory comsumption
 of fvwm-root; I really want to know if the memory used for fvwm-root is
 proportional to the image size and if that memory is used during all my fvwm
 session or it is freed up after loading.
 
 thanks in advance and sorry for my english ...
 

You might be interested in this informative post by Olivier:
http://www.mail-archive.com/fvwm@hpc.uh.edu/msg02143.html

You could always set a solid background with FvwmBacker or 
xsetroot -solid colour :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: A 3D X Desktop

2004-06-29 Thread Tavis Ormandy
On Tue, Jun 29, 2004 at 10:41:30PM +0200, Olivier Chapuis wrote:
 It is a 3D X desktop based on Xvnc, XDarwin, FVWM and Ametista.
 There is a special version of FVWM included in it.
 
 Regards, Olivier

Wow, Thanks Olivier, that's a lot of fun :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: Variable assignment and use

2004-06-29 Thread Tavis Ormandy
On Tue, Jun 29, 2004 at 02:35:05AM -0500, Rusty Phillips wrote:
 These are the big problems I can't solve:
 1)  I can't find a non-scalar assignment mechanism.

Well, you have access to shell functions with PipeRead, and there's
FvwmPerl, but apart form that I think SetEnv is the only option.

 2)  I can't find a looping mechanism that uses such an assignment
 (foreach type looping)

All (conditions) xxx

will loop through all windows, you can add an assignment for each window
that matches.

 3)  I can't find a way to return the properties of a window. 

There are variables such as $[w.id], $[w.width], etc that if accessed in
the context of a window are expanded to that property.

 4)  Some Window commands don't accept a Window name or id, and will only
 use the current window. 


I'm not aware of any, some commands need to run in the context of a
window, but can be prefixed with Pick, Current, WindowId, etc. I think
most commands will use the Pick mechanism if they need to be run in the
context of a window but are'nt?

 II  Is there a way to get the properties from a window newly created
 with an Exec command (or from multiple windows created from an Exec
 command)?

yes, see #3.18 in the faq.

 I have two questions about this:
 
 I  Lets say, for example, that I wanted to create a command that keeps
 track of the location of every window on the screen and restores them
 to that condition if I press that command again, while ignoring windows
 that are new or closed.  Is this possible in fvwm?

How about this:

AddToFunc SavePosition I All (CurrentPage) SetEnv Position-$[w.id] \(True\) 
AnimatedMove $[w.x]p $[w.y]p
AddToFunc RestorePosition I All (CurrentPage) PipeRead echo Test 
\\$\\[Position-$[w.id]\\]

Uses a PipeRead though :) You could use FvwmEvent to UnsetEnv variables
as windows are destroyed...

I'm not sure if this needs the new Test syntax in cvs or not.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: fvwm colors

2004-06-22 Thread Tavis Ormandy
On Mon, Jun 21, 2004 at 09:00:07PM -0500, John Albers wrote:
 Where can I find a listing of all of the colors that fvwm can use (e.g. a 
 list of colors that work in a .fvwm2rc file).

Do you have /usr/X11R6/lib/X11/rgb.txt ?

You might be interested in this little utility http://gcolor.sourceforge.net/

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


AnimatedMove and fvwm-menu-directory

2004-06-20 Thread Tavis Ormandy
Hello, telling windows to AnimatedMove while already in an AnimatedMove 
operation seems to leave the server grabbed, i work around it with a 
simple wrapper function that uses States to make sure it's safe:

DestroyFunc LockingSlide
AddToFunc LockingSlide
+ I Test (!State 2) Break
+ I State 2 False
+ I AnimatedMove $0 $1
+ I State 2 True

You can test it with this: 

DestroyModuleConfig MoveTest: *
*MoveTest: Geometry 100x100
*MoveTest: (Action Current AnimatedMove w-10p keep, Title Click Me)
Module FvwmButtons MoveTest

if you click it really fast a few times, you will see what I mean :)

Is this workaround nescessary, or have I found a bug?

secondly, is there any reason why fvwm-menu-directory has the menu name
'FuncFvwmMenuDirectory' hardcoded?

I have two different functions that handle browsing directories, one is 
a general browser and the other browses images, in the second one I have 
to sed out the menu Name so that moving to a subdirectory doesnt confuse 
it...would a patch be accepted that stopped it from ignoring the --name 
option witout --reuse?

you can see the functions I use here
http://dev.gentoo.org/~taviso/fvwm2rc.html one is called
FuncFvwmMenuDirectory, and the other is WallpaperBrowser.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: vanishing functionality

2004-06-19 Thread Tavis Ormandy
On Sat, Jun 19, 2004 at 06:10:52PM +0200, [EMAIL PROTECTED] wrote:
 Hi there,
 
   i have a little problem with fvwm (2.5.10). I tend to keep my box
   running for longer time and it happened now for the second time that
   most of the function offered by fvwm are just vanished - like the
   default root-menu my own root-menu and default alt-tabbing.
 

That sounds suspiciously like a #0.1 issue :)

http://www.fvwm.org/documentation/faq/#0.1

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: 3 config questions about Icons(iconified windows)

2004-06-12 Thread Tavis Ormandy


--On Sunday, June 13, 2004 03:29:33 +0800 [EMAIL PROTECTED]
wrote:

 Hi all,
 
 1 How to place Icons side by side without GAP in between?
snip
 Any ideas?

I think you're looking for the IconGrid setting, although I just had a go
and 1x1 pixels is the minimum spacing, so you can't disable it
completely..but it's pretty close :)

 
 2 How to prevent IconTitle from auto-expanding?
 Any ideas how to cut the title text to fit Icon width,
 or disable IconTitle auto-expansion?

I don't think that's possible unfortunately, but one way round it would be
to use IndexedIconName, which would make IconTitle's much shorter. 

 3 StippledTitle of uniconified windows, but not iconified windows.

I don't think that's possible sorry.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

--
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: Function to conditionally popup a window

2004-05-26 Thread Tavis Ormandy


--On Wednesday, May 26, 2004 14:24:19 +0200 stu [EMAIL PROTECTED] wrote:

 if (an instance of multi-gnome-terminal is running)
# Start client
Exec exec multi-gnome-terminal --use-factory
 else
# Start factory
Exec exec multi-gnome-terminal --start-factory-server
 fi
 

AddToFunc StartMgt
+ I Any (MGT) Exec exec multi-gnome-terminal --use-factory
+ I TestRc (NoMatch) Exec exec multi-gnome-terminal --start-factory-server

or alternatively, None (MGT) Exec...

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

--
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: Focus Stealing window

2004-05-21 Thread Tavis Ormandy

Hi there, I'm using an application that has a very annoying habit of making
Transient windows that GrabFocus regardless of my settings. No combination
of Style settings seems to disable it, even NeverFocus, I've tried:

Style Waiting !FPGrabFocusTransient, !FPGrabFocus, !FPFocusByProgram,
!FPLenient, NeverFocus

with no luck, after a bit of investigation it seems the app calls
XSetInputFocus() itself when it wants attention..arghh! Is there anyway I
can prevent these windows from stealing focus?

According to the man page XSetInputFocus() will only work on visible
windows, so I've temporarily solved it by using StartsOnDesk -99,
SkipMapping. Is this the best/only way?

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

--
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: Focus Stealing window

2004-05-21 Thread Tavis Ormandy


--On Friday, May 21, 2004 15:20:46 +0100 Tavis Ormandy
[EMAIL PROTECTED] wrote:
 According to the man page XSetInputFocus() will only work on visible
 windows, so I've temporarily solved it by using StartsOnDesk -99,
 SkipMapping. Is this the best/only way?

Actually, i decided to LD_PRELOAD away it's XSetInputFocus and XMoveWindow
privileges for now, but i'd still be interested if there is an fvwm-based
solution :)

Thanks.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

--
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: numeric keypad as pointing device.

2004-05-16 Thread Tavis Ormandy


--On Sunday, May 16, 2004 11:16:40 +0100 Thomas Adam
[EMAIL PROTECTED] wrote:

  --- Nicholas Paul Johnson [EMAIL PROTECTED] wrote: 
 
  Whenever NumLock is off, and I push 1,2,3,4,6,7,8, or 9 I would
  like the mouse cursor to be moved in the coresponding direction.  
  If NumLock is off and I push 5, I would like the same behaviour as
  if I had pushed the left mouse button.

Do you know about X11 Mouse Keys? It's an accessibility feature for users
that have difficulty using a mouse that sounds similar to what you want
without any need to create bindings, try pressing Shift+Alt+Num_Lock.

 That's possible. Just bind your keypad key's to mouse movements (example
 of this is in  the ~/.fvwm/fvwm2rc file distributed with fvwm

Yes, but not if he uses the IgnoreModifiers command you used below. The
FakeClick command can be used to simulate mouse clicks.

 
 2. Also, I trigger alt-tab events like this:
 
  Key Tab A M Function Cycle
 
 Which works when NumLock is off.  How do I make it also work when
 NumLock 
 is on?
 
 You can only do this if you have:
 
 IgnoreModifiers L25

No..I Think he wants to use Num-Lock as a modifier, not totally kill it :)

You can just add a binding for when Num-Lock is in use.

Key Tab A M Blah
Key Tab A M2Blah

Also, L25 also disables scroll-lock (according to the man page you should
disable as few modifiers as possible).

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


--
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: Vector button decorations

2004-05-13 Thread Tavis Ormandy


--On Thursday, May 13, 2004 14:32:48 +0200 Xavier Maillard
[EMAIL PROTECTED] wrote:
 
 1) Is  it more powerfull  to use vector  buttons instead of XPM/PNG  ? I
mean what is best not to waste cycles ?

Well, they are both powerful, I use a background pixmap with alpha blending
and vectors stacked on top to draw the button emblems. The major advantage
of vectors (imho) is that they use Colorsets, so changing a window's
colorset updates the vectors to match.

In my experience, vectors are faster than using pixmaps for buttons, but i
dont have any stats to back that up :)

 
 2) How can I produce my  own window decorations (ie. buttons) ? Is there
any tool that can graphically show  me what I am typing (what vectors
look like) ?

It's not too hard to write them (it is difficult at first, but it gets
easier), I think theres a perl script somewhere that can convert xfig
graphics into vectors, i think it's called eps2vector.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

--
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: Using Schedule reliably

2004-05-11 Thread Tavis Ormandy


Hi there, I'm having real trouble understanding how to use schedule
correctly so that my scheduled jobs will work (or at least remain queued)
during periods where, for example, the pointer is grabbed.

I have a function that I would like to continue running every few seconds
testing a condition, and performing an action, until the window is deleted.

basically, like this:

AddToFunc NewWindowFunc
+ I Test (foobar) Exec something
+ I Echo Still running!
+ I Schedule 5000 NewWindowFunc

The idea is to keep a xwd cache of windows while they are unobscured, so
that when they are obscured I can still use screenshots of them, I would
like to use FvwmEvent to start a function like this in the context of all
new windows, then just keep testing every few seconds (the overhead seems
pretty low in my tests). But my scheduled jobs keep dissapearing, can anyone
offer any suggestions?

This is what I have right now, it works, but I would like to be able to just
keep caching without some event happening:

# FvwmEvent runs on some events:
AddToFunc StartFunction I Module FvwmEvent ExposeCache
DestroyModuleConfig ExposeCache: *
*ExposeCache: add_window CacheWindow
*ExposeCache: raise_window CacheWindow
*ExposeCache: focus_change CacheWindow
*ExposeCache: dewindowshade CacheWindow
*ExposeCache: destroy_window Exec rm -f $[FVWM_USERDIR]/cache.$[w.id].xwd

# Take a picture
AddToFunc CacheWindow I ThisWindow (Raised, !Shaded, !Iconic) Exec nice xwd
-screen -silent -id $[w.id] -out $[FVWM_USERDIR]/cache.$[w.id].xwd

AddToFunc ExitFunction I Exec rm -f $[FVWM_USERDIR]/cache.*

# WindowList style command...
DestroyFunc FvwmExpose
AddToFunc FvwmExpose
+ I AddToMenu FvwmExposeMenu .: e x p o s e :. Title
+ I + DynamicPopDownAction DestroyMenu FvwmExposeMenu
+ I All (CurrentDesk, AcceptsFocus) Test (f
$[FVWM_USERDIR]/cache.$[w.id].xwd) \
PipeRead convert -scale 128 -frame 1x1 -mattecolor black -quality 0
xwd:$[FVWM_USERDIR]/cache.$[w.id].xwd \
png:$[FVWM_USERDIR]/icon.exp.$[w.id].png  echo AddToMenu 
FvwmExposeMenu
\
%$[FVWM_USERDIR]/icon.exp.$[w.id].png%\\\'\$[w.name]' WindowID
$[w.id] WindowListFunc \
 echo AddToMenu FvwmExposeMenu \\ Nop || echo Nop
+ I Popup FvwmExposeMenu
+ I Exec exec rm -f $[FVWM_USERDIR]/icon.exp.*

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

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


iconfile and miniiconfile variables

2004-05-10 Thread Tavis Ormandy

I've found the iconfile and miniiconfile variables really handy, but the
only limitation is that without knowing the ImagePath, their use is limited
to within fvwm image settings..with a minor alteration to get the full
path, they can still be used this way, and externally...

What do you think? :)

$ cvs diff expand.c 
Index: expand.c
===
RCS file: /home/cvs/fvwm/fvwm/fvwm/expand.c,v
retrieving revision 1.16
diff -u -w -r1.16 expand.c
--- expand.c30 Mar 2004 16:09:49 -  1.16
+++ expand.c10 May 2004 19:44:47 -
@@ -383,13 +383,22 @@
case VAR_W_ICONFILE:
if (fw  !IS_EWMH_DESKTOP(FW_W(fw)))
{
+   /* expand the path if possible */
+   string = PictureFindImageFile(fw-icon_bitmap_file,
NULL, R_OK);
+   if (!string)
+   {
string = fw-icon_bitmap_file;
}
+   }
break;
case VAR_W_MINIICONFILE:
if (fw  !IS_EWMH_DESKTOP(FW_W(fw)))
{
+   string = PictureFindImageFile(fw-mini_pixmap_file,
NULL, R_OK);
+   if (!string)
+   {
string = fw-mini_pixmap_file;
+   }
}
break;
case VAR_W_CLASS:


-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpOsJqtQ9WLC.pgp
Description: PGP signature


Re: Test defaults to True?

2004-05-09 Thread Tavis Ormandy


--On Saturday, May 08, 2004 22:53:27 + Mikhael Goikhman
[EMAIL PROTECTED] wrote:

 IMHO, the Test condition should default to true just like with all other
 conditional commands.

I see, how about changing the test for True to check for False?

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgp8HcvPtOA5F.pgp
Description: PGP signature


Re: Test defaults to True?

2004-05-09 Thread Tavis Ormandy


--On Sunday, May 09, 2004 12:17:48 +0100 Tavis Ormandy
[EMAIL PROTECTED] wrote:

 
 
 --On Saturday, May 08, 2004 22:53:27 + Mikhael Goikhman
 [EMAIL PROTECTED] wrote:
 
 IMHO, the Test condition should default to true just like with all other
 conditional commands.
 
 I see, how about changing the test for True to check for False?

Maybe I should expand on that, for example, right now:

Test (True) This will happen
Test (False) This will happen
Test (Blahblahblah) This will happen

but True is still tested for as an on-condition, if this was changed to
check for False and set match accordingly:

Test (True) This will happen
Test (False) This wont happen
Test (Blahblahblah) This will happen

so Test still defaults to a match, what do you think?

$ cvs diff conditional.c
Index: conditional.c
===
RCS file: /home/cvs/fvwm/fvwm/fvwm/conditional.c,v
retrieving revision 1.92
diff -u -w -r1.92 conditional.c
--- conditional.c   2 Apr 2004 12:09:33 -   1.92
+++ conditional.c   9 May 2004 11:59:33 -
@@ -1608,9 +1608,9 @@
on = 0;
cond++;
}
-   if (StrEquals(cond, True))
+   if (StrEquals(cond, False))
{
-   match = True;
+   match = False;
}
else if (StrEquals(cond, Version))
{


-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpOcLGwQ7xGI.pgp
Description: PGP signature


Re: Test defaults to True?

2004-05-09 Thread Tavis Ormandy


--On Sunday, May 09, 2004 12:19:29 + Mikhael Goikhman
[EMAIL PROTECTED] wrote:
 I think you misuse the intended condition syntax. As I said, you just
 want a new IsEmpty or maybe IsTrue condition, i.e.:
 
   Test (IsTrue $0) happens conditionally
 

Hmm, okay, I can live with that :)

how about this:

$ cvs diff conditional.c
Index: conditional.c
===
RCS file: /home/cvs/fvwm/fvwm/fvwm/conditional.c,v
retrieving revision 1.92
diff -u -w -r1.92 conditional.c
--- conditional.c   2 Apr 2004 12:09:33 -   1.92
+++ conditional.c   9 May 2004 12:59:26 -
@@ -1608,9 +1608,39 @@
on = 0;
cond++;
}
-   if (StrEquals(cond, True))
+   if (StrEquals(cond, IsTrue))
{
-   match = True;
+   char *pattern;
+   int option;
+
+   tmp = GetNextSimpleOption(tmp, pattern);
+
+   if (pattern)
+   {
+   option = ParseToggleArgument(pattern, NULL,
-1, 0);
+   
+   switch (option)
+   {
+   case -1:
+   error = True;
+   break;
+   case 0:
+   match = False;
+   break;
+   case 1:
+   /* No action required */
+   break;
+   default:
+   break;
+   }
+
+   free(pattern);
+   }
+   else
+   {
+   error = True;
+   }
+
}
else if (StrEquals(cond, Version))
{


-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpImunsxnnRK.pgp
Description: PGP signature


Re: Test defaults to True?

2004-05-09 Thread Tavis Ormandy


--On Sunday, May 09, 2004 13:07:34 + Mikhael Goikhman
[EMAIL PROTECTED] wrote:

 Ok, now Test behaves correctly in the False and Blahblahblah cases:

This is perfect, Thanks!

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpjyiNaLCRmn.pgp
Description: PGP signature


Test defaults to True?

2004-05-08 Thread Tavis Ormandy

Hello, looking in fvwm/conditional.c the Test command defaults to a match
being found, so checking for Test (True) Blah.. (around line 1611) is
essentially useless, shouldn't it default to no match, for example:

$ cvs diff conditional.c 
Index: conditional.c
===
RCS file: /home/cvs/fvwm/fvwm/fvwm/conditional.c,v
retrieving revision 1.92
diff -u -w -r1.92 conditional.c
--- conditional.c   2 Apr 2004 12:09:33 -   1.92
+++ conditional.c   8 May 2004 10:12:37 -
@@ -1594,7 +1594,7 @@
tmp = flags;
tmp = GetNextSimpleOption(tmp, condition);
 
-   match = True;
+   match = False;
error = False;
while (condition)
{


This way Test ($0) in functions can look for True/False or similar :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpVN8GMS12py.pgp
Description: PGP signature


Re: FVWM: Fvwm Playlist Menu

2004-05-07 Thread Tavis Ormandy


--On Friday, May 07, 2004 18:55:44 +0200 Antoine Marmignon
[EMAIL PROTECTED] wrote:
 
 It is possible to redirect the output of the 'mpc playlist' command to a
 file then use the Read command but i'd like to make it more simple (using
 a PipeRead)

DestroyFunc PlayListMenu
AddToFunc PlayListMenu
+ I AddToMenu PlayList
+ I DynamicPopDownAction DestroyMenu Playlist
+ I PipeRead mpc playlist | sed -e 's/\\(^.*$\\)/+ %menupixmap.png%\\\1\
Exec foobar/'

then just use this function as your MissingSubmenuFunction, and add a Popup
Playlist to your menu. (havn't actually tested it, i dont use mpc, but
should work :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

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


Passing events to Reparented windows

2004-05-06 Thread Tavis Ormandy

Forgive my ignorance of anything more than the basics of xlib stuff here,
I've read the XReparentWindow and related man pages, but I'd like to double
check i'm heading in the right direction..

I had assumed there was some reason why when I swallowed a window with
FvwmButtons (or Scott's FvwmTabs) it wouldnt get ConfigureNotify events
when moved (double checked with xev -window ..), not a big problem but it
meant that things like transparent terminals didnt work properly...but
messing around today, it seems pretty easy to pass the events to the
swallowed windows and it works exactly how I'd expect...am I missing
something?

Is it worth submiting the patch? Should it be optional, eg
Swallow(PassEvents, UseOld, etc...).

I've been using FvwmButtons to make some cool shaped window effects, like
this rounded aterm :) 

http://dev.gentoo.org/~taviso/screenshots/may04a-fvwm.png

Thanks.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

--
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: FVWM: how update startup program menu for each new installed application.

2004-05-06 Thread Tavis Ormandy


--On Thursday, May 06, 2004 20:42:00 +0200 [EMAIL PROTECTED] wrote:

 Hello,
  
 everytime i install a new application,the startup menu program is not
 updated because it is static,not dynamic. Kde adds a voice for each new
 application installed,but fvwm doesn't. there is need to write a script
 or there is a way to maintain updated the application's list each time we
 add something else ?
  
 thanks

have you tried fvwm-menu-desktop?

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

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


FAQ Entry

2004-04-13 Thread Tavis Ormandy

Hello list, Dominik asked if I could provide a FAQ entry about Thumbnail
Icons on #fvwm earlier today, so here it is...

Feel free to edit it however you like :)

Q. How can I set a screenshot as an Icon?

A. You will need fvwm 2.5.8 or later, as this solution requires the
WindowStyle command, and you should have the ImageMagick utililties
available in your $PATH URL:http://www.imagemagick.org/.

This function will provide a Replacement for the Iconify command called
Thumbnail, which you can use in your bindings and will Raise each window
take a screenshot and attempt to set the screenshot as the window's Icon.

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I ThisWindow (!Shaded Iconifiable !Iconic) PipeRead \
xwd -silent -id $[w.id] | convert -scale 64 -frame 1x1 \
-mattecolor black -quality 0 xwd:-
png:$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
 echo WindowStyle IconOverride, Icon
$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
|| echo Nop
+ I Iconify

You can use FvwmEvent to remove the Icons when each window is returned to
it's non Iconic state.

DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I Exec rm -f $[FVWM_USERDIR]/icon.tmp.$[w.id].png
+ I DestroyWindowStyle

*FvwmEvent: deiconify DeThumbnail

AddToFunc StartFunction I Module FvwmEvent

If you cannot use DestroyWindowStyle as you require it for some other
purpose, you can save the window's current Icon, and restore it when
required, this solution requires fvwm 2.5.9 or later.

The Thumbnail function should look like this:

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I SetEnv Icon-$[w.id] $[w.iconfile]
+ I ThisWindow (!Shaded Iconifiable !Iconic) PipeRead \
xwd -silent -id $[w.id] | convert -scale 64 -frame 1x1 \
-mattecolor black -quality 0 xwd:-
png:$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
 echo WindowStyle IconOverride, Icon
$[FVWM_USERDIR]/icon.tmp.$[w.id].png \
|| echo Nop
+ I Iconify

And then the Icon is restored with this function:

DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I PipeRead echo WindowStyle Icon \\$\\[Icon-$[w.id]\\]
+ I UnsetEnv Icon-$[w.id]
+ I Exec rm -f $[FVWM_USERDIR]/icon.tmp.$[w.id].png

These Icons can also survive a Restart by adding this check to your
StartFunction:

AddToFunc StartFunction I Test (Restart) All (Iconic) \
Test (f $[FVWM_USERDIR]/icon.tmp.$[w.id].png) WindowStyle \
IconOverride, Icon $[FVWM_USERDIR]/icon.tmp.$[w.id].png

You can also check for any remaining icons left behind and remove them in
your ExitFunction:

AddToFunc ExitFunction I Test (!ToRestart) \
Exec rm -f $[FVWM_USERDIR]/icon.tmp.*


Thanks, Tavis.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgp6bEQMXMwaj.pgp
Description: PGP signature


Fvwm descendants

2004-04-09 Thread Tavis Ormandy

Hi there, I don't know if anyone else will be interested in this, but as
part of fvwm's entry in the wikipedia encylopedia, I went through all of
the window managers listed on Matt Chapman's Window Managers for X site and
identified all of the fvwm derivatives :)

I put them all together in a Family Tree diagram here

http://en.wikipedia.org/wiki/FVWM#Family_Tree

Feel free to point out any that I missed :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpOKUpcmfViF.pgp
Description: PGP signature


Re: FVWM: Conditionally adding menu items

2004-03-26 Thread Tavis Ormandy


--On Friday, March 26, 2004 10:54:34 +0100 Uwe Pross
[EMAIL PROTECTED] wrote:

 Hi there,
 
 On 26 Mar 2004 at 09:33:36 +, Tavis Ormandy wrote:
 
 You could make it more generic,
 
 AddToFunc CondAdd I Test (f $0) AddToMenu $1 %$2%$3 Exec $0
 ...
 CondAdd /usr/bin/mozilla Programs mozilla.xpm Mozilla
 
 Have you tested this code? The man page (2.5.8.)  does not
 say anything about Test (f ...).
 

Interesting! It seems to be undocumented, works just fine though (just
double checked).

I'm not sure how I found out about this feature, it should be documented
though, i've found it useful a few times :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgp11z42m89Ny.pgp
Description: PGP signature


Re: FVWM: Finding the number of desktops

2004-03-23 Thread Tavis Ormandy


--On Monday, March 22, 2004 09:15:11 + Thomas Adam
[EMAIL PROTECTED] wrote:

  --- Tavis Ormandy [EMAIL PROTECTED] wrote:  
 
 --On Monday, March 22, 2004 04:09:29 + Ukpong Ukpong
 [EMAIL PROTECTED] wrote:
 
  Is there any way of finding out how many desktops  there are
  
 
 No, but there is a good reason for this...
 
 The number of active desktops is determined dynamically. Only desktops
 which contain windows or are currently being displayed are active.
 Desktop
 numbers must be between 2147483647 and -2147483648 (is that enough?).
 
 You could do something like (untested):
 
 ruby -ne'/desktopsize (\d+)x(\d+)/; puts( ($1.to_i * $2.to_i) )'
 ~/fvwm/.fvwmrc
 
 -- Thomas Adam
 

you can get the desktopsize by expanding $[desk.pagesx] and $[desk.pagesy],
but thats number of pages, not desktops :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpe5Etw9VtY9.pgp
Description: PGP signature


Re: FVWM: fvwmtabs : insecure temp file creation ?

2004-03-23 Thread Tavis Ormandy


--On Tuesday, March 23, 2004 15:09:48 -0500 xavier
[EMAIL PROTECTED] wrote:

 
 echo test  /tmp/test
 cd /tmp
 ln -s test .fvwmtabs.state
 
 restart fvwm
 
 /tmp/test is wiped

I also spotted this, it's a configurable setting though...in the gentoo
package I maintain I changed the default to ~/.fvwmtabs.state.

http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/x11-wm/fvwm/files/fvwm
tabs-insecure-tmp-handling.diff

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpSF7o8pZH1T.pgp
Description: PGP signature


Re: FVWM: Finding the number of desktops

2004-03-22 Thread Tavis Ormandy


--On Monday, March 22, 2004 04:09:29 + Ukpong Ukpong
[EMAIL PROTECTED] wrote:

 Is there any way of finding out how many desktops  there are
 

No, but there is a good reason for this...

The number of active desktops is determined dynamically. Only desktops
which contain windows or are currently being displayed are active. Desktop
numbers must be between 2147483647 and -2147483648 (is that enough?).


-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpXHEAKmX4Za.pgp
Description: PGP signature


Re: FVWM: FvwmButtons help

2004-03-22 Thread Tavis Ormandy


--On Sunday, March 21, 2004 19:33:55 +0200 w0rm [EMAIL PROTECTED] wrote:

Do you know your mail is being blacklisted by spamhaus xbl?

http://www.spamhaus.org/xbl/index.lasso

Might explain why you aren't getting many responses :)

 Hello,
 I'm writing you because I don't have any hope to create what I want.
 All weekend I tried to create my own bar. I tried everything: edit other
 fvwm2rcs, google etc. I'm sitting now, and I don't know what I am doing
 wrong. 

If you try posting your FvwmButtons configuration, we might be able to help
identify where you are going wrong.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---


pgpV8lPpR25rw.pgp
Description: PGP signature


Re: FVWM: FVWM configuration questions

2004-03-19 Thread Tavis Ormandy


--On Friday, March 19, 2004 14:46:22 -0600 Mike Gibson [EMAIL PROTECTED]
wrote:

 1) Is it possible or will it be possible to have windows with rounded
 corners?

I don't think it's possible for regular windows to be have rounded corners
at the moment, however you can make menus with rounded corners by
specifying a shape mask. The method for specifying a shape mask is generic
enough that i'm sure whoever implemented it planned for it to apply to more
than just menus one day :)


 2) With *FvwnTaskBar: Button is it possible to make these buttons
 flat?

Yes, set the sh and hi components of the colorset to the same colour, then
the relief looks like a border. This works best on the TaskBAr with the
3DFvwm setting.

 3) Is there a hack that will allow FvwmTaskBar to detect external mail?
 

I don't think so, if it's a mbox on a remote machine maybe you can mount it
with sshfs? (assuming you use linux :)


pgpoJwnUgwWGx.pgp
Description: PGP signature


Re: FVWM: MouseFocusClickRaises seems intermittent

2004-03-18 Thread Tavis Ormandy


--On Wednesday, March 17, 2004 21:22:32 -0800 Bill Jehle
[EMAIL PROTECTED] wrote:

 hi, I have Style *  MouseFocusClickRaises
 in globalfeel but it seems to work intermittently. Is this mode
 possibly defined somewhere else?

Check out the very first question in the faq :)



--
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: desktop snapshot

2004-03-14 Thread Tavis Ormandy
On Mon, Mar 01, 2004 at 09:34:05AM -0500, Stephen R Dennison wrote:
 Anyone else think it would be cool to use something like this in
 conjunction with FvwmEvent to modify pager icons?  Or has anyone already
 done this?
 
 I only ask because I think I lack the understanding to do it (atm).
 I think it's possible... guess I'll find out.
 

I decided to make this my project for today :)

I have a basic working solution, it's far from perfect, but I think it can be
improved, you may find this solution funny :)

Screenshot: http://dev.gentoo.org/~taviso/screenshots/screenshotpager.png

Basically I have a RootTransparent pager, then update the wallpaper
behind it! I use FvwmBacker to take new shots, so it's updated when you
change pages...there is probably a better way.

Here is what I have so far, any suggestions welcome :)

http://dev.gentoo.org/~taviso/screenshotpager.html

I start the screenshots with Next (FvwmPager, CirculateHit) InitScreenShotPager

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Title Bar Button color problem

2004-03-06 Thread Tavis Ormandy
--On Saturday, March 06, 2004 12:36:16 -0500 Duane Paddock - Personal
[EMAIL PROTECTED] wrote:

 I'm currently having a problem with the color of the buttons in the title
 bar.  With version 2.5.7 the vector lines are drawn using black by
 default, but with 2.5.9, they are drawn using a different color.  How can
 I force the color of the vector lines to be drawn in black using 2.5.9?
 
...
 Colorset 9 NoShape, VGradient 13 1 #f6f6f6 50 #00, Alpha 50
 Colorset 10 VGradient 13 1 #f6f6f6 50 gray40

you can specify which colour to use for each line, with the @X syntax. you
use @2 and @3 (background and foreground), but dont specify them in the
Colorsets..i would guess the easy way to solve it is to specify an fg and
bg component in your Colorsets.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---

--
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: FvwmPager: how to `catch' a little Window hidden by a bigger one

2004-02-25 Thread Tavis Ormandy
On Wed, Feb 25, 2004 at 07:41:33PM +0100, calmar wrote:
 Hi all,
 
 How could I get a window (in a easy way) what is hidden by a
 bigger window in the Pager?
 

I'm not sure if this is exactly what you're after, but have you tried
using FvwmProxy?

I just use this:

AddToFunc StartFunction I Module FvwmProxy
Key Escape  A   M   SendToModule FvwmProxy ShowToggle

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


aterm and ConfigureNotify events

2004-02-17 Thread Tavis Ormandy
Hi there, I'm a pretty noisy advocate of fvwm among Gentoo Linux users
and one of the questions/comments I seem to keep getting is that when
aterm terminals are being moved opaquely, they have a really noticable
Flicker...I can see this as well, but as aterm is the only application
I've ever seen it with and it works fine with rxvt (from which aterm is
derived), it must be an aterm bug.

Apparently it looks okay with fluxbox, so they must do some
aterm-detection magic (cheating :). Trying to demonstrate this to some
people I was going to use the FlickeringMoveWorkaround BugOpt, but I
can't seem to make it work..browsing the source, I cant even see how its
supposed to work.

and an xev window confirms that it still gets ConfigureNotify's while 
being moved, no matter what setting it has.

Shouldnt there be some sort of check in SendConfigureNotify()?

maybe like this:

$ cvs diff fvwm/events.c
Index: fvwm/events.c
===
RCS file: /home/cvs/fvwm/fvwm/fvwm/events.c,v
retrieving revision 1.488
diff -u -w -r1.488 events.c
--- fvwm/events.c   16 Feb 2004 13:45:59 -  1.488
+++ fvwm/events.c   17 Feb 2004 12:22:31 -
@@ -3485,7 +3485,7 @@
XEvent client_event;
size_borders b;
 
-   if (!fw || IS_SHADED(fw))
+   if (!fw || IS_SHADED(fw) || Scr.bo.DisableConfigureNotify)
{
return;
}

my fvwm2rc is here if you need it http://dev.gentoo.org/~taviso/fvwm2rc.html

btw, two really cool patches yesterday Dominik..Thanks!

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: aterm and ConfigureNotify events

2004-02-17 Thread Tavis Ormandy
On Tue, Feb 17, 2004 at 02:15:17PM +0100, Dominik Vogt wrote:
 No, the code belongs in move_resize.c.  It was there before, but
 seems to have been removed accidentally at some time between 2.3.8
 and 2.4.5.  Just add
 
!Scr.bo.DisableConfigureNotify
 
 in the conditions around the two SendConfigureNotify() calls in
 move_resize.c, or use the latest code from CVS.
 

Thanks, that works even better. I think i'll leave this option on
permanently, makes the Opaque/Animated Moving noticably smoother for some 
of my other applications as well :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: Alternative DefaultFont feature

2004-02-15 Thread Tavis Ormandy
On Sun, Feb 15, 2004 at 06:22:13PM +0100, Johan Svedberg wrote:
 Yeah, I thought about doing something like that. The problem I had was
 that xlsfonts won't show FreeType fonts, you don't happend to know a
 good way to list those?

fc-list from the fontconfig package?

$ apropos fc-list
fc-list  (1)  - list available fonts

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Menu Screenshot

2004-01-24 Thread Tavis Ormandy
On Sat, Jan 24, 2004 at 01:36:25PM +0100, Uwe Pross wrote:
 Hi there,
 
 On 22 Jan 2004 at 15:24:59 +, Tavis Ormandy wrote:
 
  Here's a little demo: 
  
  http://taviso.decsystem.org/files/icons_demo.png
 
 Wow, the icons on the left side look great! Are they
 generated automatically - do they change if the window
 contents changes? 

They are generated automatically, the icons are little screenshots of
the windows before they were iconified, pretty simple to do with the new
WindowStyle command, but they look really cool :)

 If so could you share your setup? It
 would be great to have icons which offer a preview of the
 windows contents ;-)

sure, I have it online here http://dev.gentoo.org/~taviso/fvwm2rc.html

(lynx -dump renders it in plain text correctly, if you prefer)

 
 Do you want this screenshot appear on the fvwm screenshot
 page?

Sure! :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Menu Screenshot

2004-01-22 Thread Tavis Ormandy


--On Tuesday, January 20, 2004 08:47:22 +0100 Uwe Pross
[EMAIL PROTECTED] wrote:

 Hi there,
 
 On 19 Jan 2004 at 22:40:52 +, Tavis Ormandy wrote:
 
 There only seems to be two examples on the menu screenshots section of
 the website, so I thought I'd contribute one of mine :)
 
 http://taviso.decsystem.org/files/menu_screenshot.png
 
 http://taviso.decsystem.org/files/fvwm2rc_menus
 
 Thanks - Really great menu style. I am going to rework the
 menu screenshot page (and the window decoration page) soon.
 Then I will add your menu screenshot.
 

Excellent!

If you are planning on changing the pages, I have making beautiful looking
Icons with fvwm down to a fine art..I have impressed a lot of people (and
made a few fvwm converts) with this little hack :)

Would you be interested in showing this on the website?

Here's a little demo: 

http://taviso.decsystem.org/files/icons_demo.png

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


Menu Screenshot

2004-01-19 Thread Tavis Ormandy

Hi there, 

There only seems to be two examples on the menu screenshots section of the
website, so I thought I'd contribute one of mine :)

http://taviso.decsystem.org/files/menu_screenshot.png

http://taviso.decsystem.org/files/fvwm2rc_menus

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


FvwmScript-Quit typo

2004-01-13 Thread Tavis Ormandy

Hi, just noticed a small typo in the FvwmScript-Quit script:

--- modules/FvwmScript/Scripts/FvwmScript-Quit
+++ modules/FvwmScript/Scripts/FvwmScript-Quit
@@ -221,7 +221,7 @@
ChangeValue 7 0
ChangeValue 8 0
ChangeValue 9 0
-   Set $ToDo = Restart
+   Set $ToDo = Reboot
   End
 End

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FvwmTaskBar Margin

2004-01-12 Thread Tavis Ormandy


--On Monday, January 12, 2004 10:56:13 +0100 Dominik Vogt
fvwm-workers@fvwm.org wrote:
 I've committed a patch that does not remove user define margins if
 no start button is used.  Could you try the code from CVS please?

Thanks, that works great :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


FvwmTaskBar Margin

2004-01-11 Thread Tavis Ormandy

Hi there, using FvwmTaskBar in fvwm-2.5.8, I am unable to get a right
margin if I disable the Start button. 

I have a ButtonBar that stretches the entire Right side of my screen and
sits on top of the TaskBar, covering the Clock area (which I have
disabled), I would like to make sure that buttons on the TaskBar dont get
obscured by the ButtonBar by using a WindowButtonsRightMargin, but I cant
get it to work with my configuration, this patch gets it to work:

--- modules/FvwmTaskBar/Start.c 2003-09-03 14:52:36.0 +0100
+++ modules/FvwmTaskBar/Start.c 2004-01-11 19:29:00.0 +
@@ -458,7 +458,6 @@
  StartAndLaunchButtonsWidth = 0;
  StartButtonRightMargin = 0;
  WindowButtonsLeftMargin = 0;
- WindowButtonsRightMargin = 0;
   }
 }

This is my TaskBar configuration:

Colorset 11 fg white, bg #c6c3c6, sh black, hi black, RootTransparent buffer
DestroyModuleConfig FvwmTaskBar: *
*FvwmTaskBar: Geometry +0-0
*FvwmTaskBar: Rows 1
*FvwmTaskBar: Font xft:Bitstream Vera Sans Mono:style=Roman:size=10
*FvwmTaskBar: StatusFont xft:Bitstream Vera Sans Mono:style=Roman:size=10
*FvwmTaskBar: SelFont xft:Bitstream Vera Sans Mono:style=Roman:size=10
*FvwmTaskBar: Colorset 11
*FvwmTaskBar: AutoStick
*FvwmTaskBar: UseSkipList
*FvwmTaskBar: PageOnly
*FvwmTaskBar: ShowTips
*FvwmTaskBar: NoDefaultStartButton
*FvwmTaskBar: NoBrightFocus
*FvwmTaskBar: 3DFvwm
*FvwmTaskBar: MailCheck 0
*FvwmTaskBar: IconColorset 11
*FvwmTaskBar: FocusColorset 11
*FvwmTaskBar: ClockFormat
*FvwmTaskBar: WindowButtonsRightMargin 124

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Multiple arguments to MissingSubmenuFunction

2004-01-10 Thread Tavis Ormandy
Is there anyway to pass more than just the path to MissingSubmenuFunction?

I have a menu like this:

DestroyMenu MenuMultimedia
AddToMenu MenuMultimedia
+   MissingSubmenuFunction FuncFvwmMenuDirectory
(...)
+ Nop
+   %hardware_video_camera_display.png%Browse Videos  Popup
$[fvwm_video_path]
+   %music_notes_view.png%Browse MusicPopup $[fvwm_audio_path]
+   %graphics_presentation_person.png%Browse Images   Popup
$[fvwm_image_path]

It would be cool if i could pass some other arguments to
MissingSubmenuFunction to specify an icon/--exec-file to use depending on
menu selected, but there doesnt seem to be an easy way to do this..This is
what I've done right now, but I'm sure there is a better way:

DestroyFunc FuncFvwmMenuDirectory
AddToFunc FuncFvwmMenuDirectory
+ I PipeRead 'myexec=gvim mypng=file_text_view.png; \
case $0 in \
$[fvwm_rom_path]*) myexec=$[fvwm_rom_exec]
mypng=games_puzzles_dice.png;; \
$[fvwm_video_path]*) myexec=$[fvwm_video_exec] mypng=film.png;; \
$[fvwm_audio_path]*) myexec=$[fvwm_audio_exec] mypng=audio.png;; \
$[fvwm_image_path]*) myexec=$[fvwm_image_exec]
mypng=graphics_presentation_person.png;; \
esac; \
fvwm-menu-directory --icon-title folder_view.png --icon-file ${mypng}
--icon-dir folder_paper_closed.png \
--dir $0 --xterm exec --exec-file ${myexec}'

I'm using 2.5.8, my fvwm2rc is here
http://dev.gentoo.org/~taviso/fvwm2rc.html

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: arranging minimized apps and mousecursor

2004-01-01 Thread Tavis Ormandy
On Thu, Jan 01, 2004 at 08:13:06AM +0100, Joolz wrote:
 Aother question: a few weeks ago I switched from RH9 to FC1 (Fedora).
 I had RH9 configured so it didn't use the alpha mousecursors and I
 could do things like:
 
 CursorStyle POSITION left_ptr orange black
 CursorStyle TITLEleft_ptr orange black
 
 However, I can't remember how I disabled the fancy cursors... Does
 anyone know how I can tell FC1 to use the basic mousecursors?
 

try adding this to your ~/.Xdefaults

Xcursor.theme: default

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Border under titlebar?

2003-12-19 Thread Tavis Ormandy
On Thu, Dec 18, 2003 at 07:02:26PM +, Mikhael Goikhman wrote:
 On 18 Dec 2003 10:08:42 -0600, Shay Hill wrote:
  
  Is it possible to place a border under the titlebar (twm style)? I plan 
  to fake this effect if necessary with a one column pixmap that has 19 
  green pixels stacked on top of 2 gray, but I want to make sure first 
  that there is not an easier way.
 
 This is the best thing you may do. Or just add this bottom line to
 all images you use in-place. There are no configuration options to
 autogenerate such line at the bottom.
 

It would be nice if you could cheat and use Vgradient like VGradient 2
1 darkgreen 90 lightgrey 10, but that doesnt work...you can make it look
pretty close though by allocating a few more colours :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: how to place window in top left corner?

2003-12-17 Thread Tavis Ormandy
On Wed, Dec 17, 2003 at 11:03:12AM +0100, Harald Dunkel wrote:
 How can I tell fvwm 2.5.8 to place a window (e.g. Mozilla)
 in the top left corner? CascadePlacement is not an option
 in this case.

Check out http://www.fvwm.org/documentation/faq/#3.18

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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-menu-directory input checking

2003-12-11 Thread Tavis Ormandy
Hi there, a Gentoo Linux user has emailed me about a bug in
fvwm-menu-directory, which could be a security problem (if you browse a
directory where someone else can create files, they can make fvwm
execute any command), This is the example they sent me:

 $ touch '
  Exec xmessage 0wn3d
 
  '

which I confirmed using fvwm-2.5.8, this quick patch ignores the
newlines, I'm sure Mikhael will figure out the correct fix :)

--- fvwm-menu-directory.in.old  2003-12-11 11:39:10.0 +
+++ fvwm-menu-directory.in  2003-12-11 11:39:55.0 +
@@ -259,6 +259,7 @@
$name =~ s/%/%%/g;
$name =~ s///g;
$name =~ s/\*/**/g;
+   $name =~ s/\n/ /g;
$name;
 }
 
@@ -267,6 +268,7 @@
$name =~ s/\\//g;
$name =~ s//\\/g;
$name =~ s/\$/\\\$\$/g;
+   $name =~ s/\n/\\n/g;
$name;
 }

Thanks, Tavis.

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: fvwm-menu-directory input checking

2003-12-11 Thread Tavis Ormandy
On Thu, Dec 11, 2003 at 12:08:28PM +, Tavis Ormandy wrote:
 Hi there, a Gentoo Linux user has emailed me about a bug in
 fvwm-menu-directory

btw, in case you wondered why i'm getting bugreports, I maintain the
fvwm package for Gentoo, and my address is set as the local maintainer
in fvwm-bug :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: FVWM: Determine window's Icon

2003-12-02 Thread Tavis Ormandy
I dont know if anyone else saw this

http://slashdot.org/article.pl?sid=03/11/25/0330208

I've been trying to make something similar for fvwm using this method,
this is what I've got so far, I have no idea how to restore layer after
the Raise, if anyone has any suggestions..

DestroyFunc FvwmExpose
AddToFunc FvwmExpose
+ I DestroyMenu FvwmExposeMenu
+ I AddToMenu FvwmExposeMenu .: e x p o s e :. Title
+ I All (!Iconic !Shaded CurrentPage AcceptsFocus) \
PipeRead echo Raise; \
xwd -silent -id $[w.id] | convert -resize 64 -frame 1x1 \
-mattecolor white -quality 0 xwd:- \
png:$[HOME]/.fvwm/icon.exp.$[w.id].png \
 echo AddToMenu FvwmExposeMenu \
%$[HOME]/.fvwm/icon.exp.$[w.id].png%\\\'$[w.name]\\\' WindowID $[w.id] 
WarpToWindow 5p 5p \
 echo AddToMenu FvwmExposeMenu \\ Nop \
|| Nop
+ I PopUp FvwmExposeMenu
+ I All (!Iconic !Shaded CurrentPage AcceptsFocus) \
PipeRead echo Exec exec rm -f $[HOME]/.fvwm/icon.exp.$[w.id].png

I've discovered that the fastest method for getting screenshots is using
xwd as above, although it wont get the frame :(

[EMAIL PROTECTED]:~$ time import -silent -resize 64 -window 0x2c3 test.png

real0m0.962s
user0m0.120s
sys 0m0.010s
[EMAIL PROTECTED]:~$ time xwd -silent -id 0x2c3 | convert -resize 64 xwd:- 
png:test.png

real0m0.176s
user0m0.095s
sys 0m0.025s

Screenshot: http://dev.gentoo.org/~taviso/fvwm_expose.png

It's not that useful yet, but it feels close :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Mouse binding to switch window focus to window in direction

2003-12-02 Thread Tavis Ormandy
On Tue, Dec 02, 2003 at 09:39:14PM +, Ukpong Ukpong wrote:
 
 When working on one in window i wish to specify a key binding that allows 
 on the switch focus to the nearest window i a certain direction of the 
 currently focused window using the direction key presed by the user.is 
 this possible 
 

I made some functions a while ago that will move a window to the border
of the nearest window in some direction, you could modify them to do what
you want.

You can see them if you search for PackWindow in my rc file here
http://dev.gentoo.org/~taviso/fvwm2rc.html

Theres probably a better way, but it works fine for me :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Mouse binding to switch window focus to window in direction

2003-12-02 Thread Tavis Ormandy
On Tue, Dec 02, 2003 at 10:07:27PM +, Mikhael Goikhman wrote:
   Key T WTSF CM Direction North (CurrentPage) SelectWindow  # Ctrl-Alt-T

Neat, I didnt know about that. Thanks Mikhael :)

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Determine window's Icon

2003-11-24 Thread Tavis Ormandy
Can anyone think of a way to restore a window's Icon after changing it,
or is there a way of getting that information from within an function?

I'm writing a simple Eye-Candy function, like this:

ExecUseShell /bin/ksh

DestroyFunc IconifyWithScreenshot
AddToFunc IconifyWithScreenshot
+ I Raise
+ I PipeRead import -window $[w.id] -frame -silent -quality 0 
$[HOME]/.fvwm/tmp.$[w.id].png \
 convert -resize 64 -frame 1x1 -bordercolor white -quality 0 \
png:$[HOME]/.fvwm/tmp.$[w.id].png 
png:$[HOME]/.fvwm/icon.tmp.$[w.id].png \
 echo WindowStyle IconOverride, Icon 
$[HOME]/.fvwm/icon.tmp.$[w.id].png \
|| echo Nop
+ I Iconify
+ I Schedule 1000 Exec rm $[HOME]/.fvwm/?(icon|tmp)*.png

example:

before: 
http://dev.gentoo.org/~taviso/step1.png

after: 
http://dev.gentoo.org/~taviso/step2.png

After removing the icons, I'd like to restore it to it's original Icon,
so that if I Iconify the window without using this function, it doesnt
just dissapear. Maybe theres a better way?


-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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: Determine window's Icon

2003-11-24 Thread Tavis Ormandy
On Mon, Nov 24, 2003 at 01:36:52PM +, Mikhael Goikhman wrote:
 On 24 Nov 2003 12:35:28 +, Tavis Ormandy wrote:
  
  Can anyone think of a way to restore a window's Icon after changing it,
  or is there a way of getting that information from within an function?
  
 You can't push/pop Icon files for a window, only one icon is stored.
 Hovewer you may do DestroyWindowStyle on deiconify if this helps.
 

Ahh! I should have tried that, thanks.

 You may also listen to destroy_window packet and then remove the icons,
 not immediately after one second.

Yep, I was planning on doing that, just wanted to get it working nicely
first :)

 I would use import -geometry 64 -resize 64 -silent without additional
 convert and use *IconTitle* and *IconBackground* style options instead.
 Should be faster.

Cool, I didnt realise you could do that...this looks much nicer now :)

DestroyFunc IconifyWithScreenshot
AddToFunc IconifyWithScreenshot
+ I Raise
+ I PipeRead import -geometry 64 -resize 64 -silent -window $[w.id] 
$[HOME]/.fvwm/icon.tmp.$[w.id].png \
 echo WindowStyle IconOverride, Icon 
$[HOME]/.fvwm/icon.tmp.$[w.id].png \
|| echo Nop
+ I Iconify

DestroyFunc DeIconifyWithScreenshot
AddToFunc DeIconifyWithScreenshot
+ I WindowID $0 DestroyWindowStyle
+ I Exec rm -f $HOME/.fvwm/icon.tmp.$0.png

DestroyModuleConfig FvwmEvent-IconWatch: *
*FvwmEvent-IconWatch: Cmd
*FvwmEvent-IconWatch: PassID
*FvwmEvent-IconWatch: deiconify DeIconifyWithScreenshot

-- 
-
[EMAIL PROTECTED] | finger me for my gpg key.
---
--
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]


  1   2   >