FVWM: acroread window problem

2006-03-08 Thread Lucio Chiappetti
I'm experiencing the following problem with acrobat reader windows which 
are started clicking on a pdf URL (http://somewhere/something.pdf) from 
my firefox browser.

I'd like to make a set of web pages for a presentation, and keep some 
auxiliary material in PDF files I can recall. I'd like to keep the 
firefox window as large as possible (maybe even full screen although I 
usually do not use it)

What happens is that, when I click on the pdf URL, firefox first correctly 
displays the Opening something.pdf transient window, then Acrobat Reader 
starts, but is immediately lowered behind the firefox window, before I can 
even move to give focus to it.

This is highly inconvenient.

I'd like to have the acrobat window on top, so that I can give focus (with 
the mouse), move it so that it overlaps only partially the browser window 
and toggle front/back (with mouse focus, or eventually menu buttons)


This is an extract of my .fvwm2rc of what I think are relevant parts

... some general styles

Style *   SmartPlacement
Style *   NoPPosition   
Style *   HilightBack Red
Style *   SloppyFocus
Style *   DecorateTransient  
Style * ManualPlacementIgnoresStartsOnPage, 
 ActivePlacementIgnoresStartsOnPage

... things related to the browsers

Style Gecko StartsOnPage 1 0 0, SkipMapping, NoPPosition
Style Netscape StartsOnPage 1 0 0, SkipMapping, NoPPosition
Style mozilla-bin StartsOnPage 1 0 0, SkipMapping, NoPPosition   

... things related to acrobat (part of standard config file distributed 
with SuSE 9.2, I did not write this). I've no idea what the bug number 
refers to.

# see bug #36189
Style   AcroRead  SmartPlacement, RandomPlacement  


I tried adding StaysOnBottom to the browsers, but that is not what I want, 
since I cannot raise the browser window any more. 

I tried replacing all in Style AcroRead with StartsRaised but does not 
look to work (it does the first time, then if window is lowered, acrobat 
remembers ... could it be ?)

I tried adding StaysOnTop to Style AcroRead ... which again is not what I 
want. I could force acroread into another page, but I'd prefer to have it 
on front in the same page.


Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html




Re: FVWM: acroread window problem

2006-03-08 Thread Dominik Vogt
On Wed, Mar 08, 2006 at 12:18:42PM +0100, Lucio Chiappetti wrote:
 I'm experiencing the following problem with acrobat reader windows which 
 are started clicking on a pdf URL (http://somewhere/something.pdf) from 
 my firefox browser.
 
 I'd like to make a set of web pages for a presentation, and keep some 
 auxiliary material in PDF files I can recall. I'd like to keep the 
 firefox window as large as possible (maybe even full screen although I 
 usually do not use it)
 
 What happens is that, when I click on the pdf URL, firefox first correctly 
 displays the Opening something.pdf transient window, then Acrobat Reader 
 starts, but is immediately lowered behind the firefox window, before I can 
 even move to give focus to it.
 
 This is highly inconvenient.
 
 I'd like to have the acrobat window on top, so that I can give focus (with 
 the mouse), move it so that it overlaps only partially the browser window 
 and toggle front/back (with mouse focus, or eventually menu buttons)
 
 
 This is an extract of my .fvwm2rc of what I think are relevant parts
 
 ... some general styles
 
 Style *   SmartPlacement
 Style *   NoPPosition   
 Style *   HilightBack Red
 Style *   SloppyFocus
 Style *   DecorateTransient  
 Style * ManualPlacementIgnoresStartsOnPage, 
  ActivePlacementIgnoresStartsOnPage
 
 ... things related to the browsers
 
 Style Gecko StartsOnPage 1 0 0, SkipMapping, NoPPosition
 Style Netscape StartsOnPage 1 0 0, SkipMapping, NoPPosition
 Style mozilla-bin StartsOnPage 1 0 0, SkipMapping, NoPPosition   
 
 ... things related to acrobat (part of standard config file distributed 
 with SuSE 9.2, I did not write this). I've no idea what the bug number 
 refers to.
 
 # see bug #36189
 Style   AcroRead  SmartPlacement, RandomPlacement  
 
 
 I tried adding StaysOnBottom to the browsers, but that is not what I want, 
 since I cannot raise the browser window any more. 
 
 I tried replacing all in Style AcroRead with StartsRaised but does not 
 look to work (it does the first time, then if window is lowered, acrobat 
 remembers ... could it be ?)
 
 I tried adding StaysOnTop to Style AcroRead ... which again is not what I 
 want. I could force acroread into another page, but I'd prefer to have it 
 on front in the same page.

Does this help:

  Style * !RaiseTransient, !LowerTransient, !StackTransientParent

?

Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]


signature.asc
Description: Digital signature


Re: FVWM: acroread window problem

2006-03-08 Thread Lucio Chiappetti
On Wed, 8 Mar 2006, Dominik Vogt wrote:

 Does this help:
   Style * !RaiseTransient, !LowerTransient, !StackTransientParent

Unfortunately not.

I do not pretend to understand what the above should do, but I do not 
think that Acrobat Reader as started by firefox is transient (maybe the 
popup window which asks me whether I want to save to disk or display with 
is a transient of firefox, but acroread should be a totally separated 
application, I presume)


Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html




Re: FVWM: acroread window problem

2006-03-08 Thread Thomas Adam
 What happens is that, when I click on the pdf URL, firefox first
 correctly displays the Opening something.pdf transient window, then

Odd.  I downloaded Acroreader to see if I could reproduce this.  I
can't.  Indeed, using Firefox (1.0.7) just starts Acroread externally
without any intermediary transient window.

 Acrobat Reader starts, but is immediately lowered behind the firefox
 window, before I can even move to give focus to it.

 This is highly inconvenient.

Indeed, although for me it doesn't happen here.  Acroread opens up above
Firefox.  

Which version of FVWM are you running? 

 I'd like to have the acrobat window on top, so that I can give focus
 (with the mouse), move it so that it overlaps only partially the
 browser window and toggle front/back (with mouse focus, or eventually
 menu buttons)

Does:

Style Acroread StartsRaised

help any?

 # see bug #36189 Style AcroRead SmartPlacement, RandomPlacement

That style line is now incorrect.  With the version of Acroreader I have
here (7.0.5), the Class of the window is 'Acroread'.  (Case is important).
Although even if that line did run, it wouldn't solve your issue of this
window being lowered.  

-- Thomas Adam

--  
I've been too honest with myself, I should have lied like everybody else.



Re: FVWM: acroread window problem

2006-03-08 Thread Jonathan Kotta
On 3/8/06, Thomas Adam [EMAIL PROTECTED] wrote:
  What happens is that, when I click on the pdf URL, firefox first
  correctly displays the Opening something.pdf transient window, then

 Odd.  I downloaded Acroreader to see if I could reproduce this.  I
 can't.  Indeed, using Firefox (1.0.7) just starts Acroread externally
 without any intermediary transient window.

  Acrobat Reader starts, but is immediately lowered behind the firefox
  window, before I can even move to give focus to it.
 
  This is highly inconvenient.

 Indeed, although for me it doesn't happen here.  Acroread opens up above
 Firefox.

 Which version of FVWM are you running?

  I'd like to have the acrobat window on top, so that I can give focus
  (with the mouse), move it so that it overlaps only partially the
  browser window and toggle front/back (with mouse focus, or eventually
  menu buttons)

 Does:

 Style Acroread StartsRaised

 help any?

  # see bug #36189 Style AcroRead SmartPlacement, RandomPlacement

 That style line is now incorrect.  With the version of Acroreader I have
 here (7.0.5), the Class of the window is 'Acroread'.  (Case is important).
 Although even if that line did run, it wouldn't solve your issue of this
 window being lowered.

 -- Thomas Adam

 --
 I've been too honest with myself, I should have lied like everybody else.



Perhaps a better solution is to set Firefox to use Acroread as a
plugin.  That way Acroread will open within Firefox.  I do this to
give Acroread tabs (a feature I think is sorely lacking in Acroread).

Now, I use Opera, not Firefox, but I think the way to do it is pretty
much the same.  Acroread comes with nppdf.so.  Mine is in
/usr/lib/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so.  Opera looks
for plugins in several directories, and I just make a symlink to
nppdf.so in one of them.  I think Firefox works exactly the same way. 
Firefox's plugin directory is /usr/lib/mozilla-firefox/plugins/ on my
system.  I'm not exactly sure if this is all that is needed, because
my distribution sets up Acroread to work as a Firefox plugin
automatically.

--
Thanks,

Jonathan Kotta

Hofstadter's Law:
It always takes longer than you expect, even
when you take into account Hofstadter's Law.



Re: FVWM: acroread window problem

2006-03-08 Thread Dominik Vogt
On Wed, Mar 08, 2006 at 02:07:53PM +0100, Lucio Chiappetti wrote:
 On Wed, 8 Mar 2006, Dominik Vogt wrote:
 
  Does this help:
Style * !RaiseTransient, !LowerTransient, !StackTransientParent
 
 Unfortunately not.

Hm, since you did not say which fvwm version you have the correct
stylenames may be

  Style * DontRaiseTransient, DontLowerTransient, DontStackTransientParent

 I do not pretend to understand what the above should do, but I do not 
 think that Acrobat Reader as started by firefox is transient (maybe the 
 popup window which asks me whether I want to save to disk or display with 
 is a transient of firefox, but acroread should be a totally separated 
 application, I presume)

But you said the opening pdf blabla window is transient.  The
above styles may cause a transient window or its transientfor
window to be raised or lowered in sometimes unpredictable ways.

Firefox or acroread may use different methods to raise their
windows.  Please try all of the following lines one by after the
other in the config file.

  # This may disable fullscreen mode in Firefox
  Style * EWMHIgnoreStateHints

  DestroyFunc EWMHActivateWindowFunc
  DestroyFunc UrgencyFunc
  DestroyFunc UrgencyDoneFunc

and as a last resort:

  Style * IgnoreRestack

(and make sure you don't have FvwmAuto or FvwmEvent running and
raising windows).

Ciao

Dominik ^_^  ^_^

 --
Dominik Vogt, [EMAIL PROTECTED]


signature.asc
Description: Digital signature