Discussion:
FVWM: Window placement
Ryan Daly
2007-07-24 18:24:59 UTC
Permalink
All:

I have a window that I'm placing manually, as you can see below.

[FVWM][__explain_placement]: placed new window 0x340006a 'Black Box
ServSelect IP Software':
initial size 646x540
desk 1 (current desk)
current page
screen: current screen: 0 0 1600x1200 (specified by style)
(screen area modified by EWMH working area)
position 533 343, placed by fvwm (ignored program specified position)
placement method: Manual

I'm using the below style:

Style "*" !UsePPosition

The problem I'm seeing is that when I place the window, it warps back to
the center of the screen. That's a problem for me because I'm using
Xinerama, and the window gets placed in between two monitors.

Is there a way for FVWM to prevent the warp back to the center of the
screen?

Thanks in advance.
Thomas Adam
2007-07-24 18:30:42 UTC
Permalink
Post by Ryan Daly
The problem I'm seeing is that when I place the window, it warps back to
the center of the screen. That's a problem for me because I'm using
Xinerama, and the window gets placed in between two monitors.
How annoying. Is this a Java application by any chance? Try:

Style applicationClass !UsePPosition, FixedPosition

-- Thomas Adam
Ryan Daly
2007-07-24 19:22:27 UTC
Permalink
Post by Thomas Adam
Post by Ryan Daly
The problem I'm seeing is that when I place the window, it warps back to
the center of the screen. That's a problem for me because I'm using
Xinerama, and the window gets placed in between two monitors.
Style applicationClass !UsePPosition, FixedPosition
It's the Black Box ServSelect IP Software. I'm 99% certain it is a Java
application.

I tried the above and the only difference is that I cannot move the
window once it warps back to the center of the screen.
Thomas Adam
2007-07-24 19:25:27 UTC
Permalink
Post by Ryan Daly
It's the Black Box ServSelect IP Software. I'm 99% certain it is a Java
application.
That doesn't surprise me. Java's a bag of crap.
Post by Ryan Daly
I tried the above and the only difference is that I cannot move the
window once it warps back to the center of the screen.
Ah, damn -- so it's placement _really_ does want to be in the centre of the
screen then? That's not good at all.

-- Thomas Adam
Ryan Daly
2007-07-24 19:41:30 UTC
Permalink
Post by Thomas Adam
Post by Ryan Daly
It's the Black Box ServSelect IP Software. I'm 99% certain it is a Java
application.
That doesn't surprise me. Java's a bag of crap.
Post by Ryan Daly
I tried the above and the only difference is that I cannot move the
window once it warps back to the center of the screen.
Ah, damn -- so it's placement _really_ does want to be in the centre of the
screen then? That's not good at all.
No, and I gather from your disgust that there's no way to get around it,
either?
Dominik Vogt
2007-07-25 19:11:51 UTC
Permalink
Post by Ryan Daly
Post by Thomas Adam
Post by Ryan Daly
It's the Black Box ServSelect IP Software. I'm 99% certain it is a Java
application.
That doesn't surprise me. Java's a bag of crap.
Post by Ryan Daly
I tried the above and the only difference is that I cannot move the
window once it warps back to the center of the screen.
Ah, damn -- so it's placement _really_ does want to be in the centre of the
screen then? That's not good at all.
No, and I gather from your disgust that there's no way to get around it,
either?
Try

Style ... FixedUSPosition, FixedPPosition
Style ... !UsePPosition, !UseUSPosition
Style ... FixedUSSize, FixedPSize

If that helps, try removing some of the styles.

Ciao

Dominik ^_^ ^_^

--
Dominik Vogt, dominik.vogt (at) gmx.de
Dominik Vogt
2007-07-25 19:41:16 UTC
Permalink
Post by Dominik Vogt
Post by Ryan Daly
Post by Thomas Adam
Post by Ryan Daly
It's the Black Box ServSelect IP Software. I'm 99% certain it is a Java
application.
That doesn't surprise me. Java's a bag of crap.
Post by Ryan Daly
I tried the above and the only difference is that I cannot move the
window once it warps back to the center of the screen.
Ah, damn -- so it's placement _really_ does want to be in the centre of the
screen then? That's not good at all.
No, and I gather from your disgust that there's no way to get around it,
either?
Try
Style ... FixedUSPosition, FixedPPosition
Style ... !UsePPosition, !UseUSPosition
Style ... FixedUSSize, FixedPSize
If that helps, try removing some of the styles.
And if it does not help, try out the latest code from CVS. Fvwm
was ignoring the Fixed... styles in one specific EWMH message. I
have fixed that.

Ciao

Dominik ^_^ ^_^

--
Dominik Vogt, dominik.vogt (at) gmx.de
Ryan Daly
2007-07-25 20:52:08 UTC
Permalink
Post by Dominik Vogt
Post by Dominik Vogt
Try
Style ... FixedUSPosition, FixedPPosition
Style ... !UsePPosition, !UseUSPosition
Style ... FixedUSSize, FixedPSize
If that helps, try removing some of the styles.
And if it does not help, try out the latest code from CVS. Fvwm
was ignoring the Fixed... styles in one specific EWMH message. I
have fixed that.
I haven't used CVS, so I'm not certain that I'd be grabbing the entire
release. Is there an un-stable release due out soon?
Ryan Daly
2007-07-25 20:50:54 UTC
Permalink
Post by Dominik Vogt
Try
Style ... FixedUSPosition, FixedPPosition
Style ... !UsePPosition, !UseUSPosition
Style ... FixedUSSize, FixedPSize
If that helps, try removing some of the styles.
It semi-worked with all three style lines added. However, after placing
the window, I could not move it.

I removed the first style line above and the window warped back to the
center of the screen.
Perry Hutchison
2007-07-25 20:57:49 UTC
Permalink
Post by Ryan Daly
Post by Dominik Vogt
Style ... FixedUSPosition, FixedPPosition
Style ... !UsePPosition, !UseUSPosition
Style ... FixedUSSize, FixedPSize
If that helps, try removing some of the styles.
It semi-worked with all three style lines added.
However, after placing the window, I could not move it.
I removed the first style line above and the window
warped back to the center of the screen.
It's beginning to sound as if FVWM may need to add an
"IgnoreAllClientPlacement" style to handle this sort of
client breakage :(
Dominik Vogt
2007-07-26 07:39:06 UTC
Permalink
Post by Perry Hutchison
Post by Ryan Daly
Post by Dominik Vogt
Style ... FixedUSPosition, FixedPPosition
Style ... !UsePPosition, !UseUSPosition
Style ... FixedUSSize, FixedPSize
If that helps, try removing some of the styles.
It semi-worked with all three style lines added.
However, after placing the window, I could not move it.
I removed the first style line above and the window
warped back to the center of the screen.
It's beginning to sound as if FVWM may need to add an
"IgnoreAllClientPlacement" style to handle this sort of
client breakage :(
There are three types of window movement:

a) Movement cause by input from the program.
b) Movement cause by input from the program, and the program
claims the user requested it.
c) Movement cause by direct interaction between the user and
fvwm.

Fvwm should always honour (b) and (c), unless the user has
explicitly disabled this. The problem is that some programs just
claim (b) when they want to move windows to coax the window
manager into moving the window. At the moment the code does not
differentiate between (b) and (c) anyway. Maybe it should.

Ciao

Dominik ^_^ ^_^

--
Dominik Vogt, dominik.vogt (at) gmx.de
Ryan Daly
2007-07-26 16:59:02 UTC
Permalink
Post by Ryan Daly
Post by Dominik Vogt
Try
Style ... FixedUSPosition, FixedPPosition
Style ... !UsePPosition, !UseUSPosition
Style ... FixedUSSize, FixedPSize
If that helps, try removing some of the styles.
It semi-worked with all three style lines added. However, after placing
the window, I could not move it.
I removed the first style line above and the window warped back to the
center of the screen.
Just FYI.

I have another Java application that's doing the exact same warp back to
the center.

I gather the problem is related to -all- Java application's?

Continue reading on narkive:
Loading...