PositionPlacement & qt4-apps (Solved)

Hi,
one little question,
I`m trying out some qt4-depending programs (like smplayer or at least kde4) under the latest fvwm.
Here all qt4-apps are placed at the top left corner.
They ignore styles like PositionPlacement Center.
Is there a way to get them in center Position (without swallowing in FvwmButtons)?

Thx & greetings

Enable:

BugOpts ExplainWindowPlacement

Then give me the output.

– Thomas Adam

Hi thomasadams,
thx for the fast reply!

That`s what “BugOpts ExplainWindowPlacement” tells me about Konqueror or Dolphin (Kde-4.1.0 & QT-4.4.1):

[fvwm][__explain_placement]: placed new window 0x3400001 'Konqueror':
  initial size 1298x800
  desk 0 (current desk)
  current page
  position 0 0, placed by fvwm (normal placement)
    placement method: bug
    (placement failed default pos 0 0)

[fvwm][__explain_placement]: placed new window 0x3600001 'slackman - Dolphin':
  initial size 1334x872
  desk 0 (current desk)
  current page
  position 0 0, placed by fvwm (normal placement)
    placement method: bug
    (placement failed default pos 0 0)

Hope this helps,
Greetings
Thomas

OK – this looks interesting. Can I see your fvwm2rc please?

Which version of dolphin do you have? Do any other Qt4 apps have this problem?

– Thomas Adam

Ill upload my config tomorrow, have to clean up a little bit (its no fvwm2rc, it`s splitted in different files).

Dolphin
Version 1.1
Unter KDE 4.1.00 (KDE 4.1.0)

All my apps from KDE-4.1.0, smplayer-0.6.1 and KeePassX-0.3.2 have this problem. I do not use more qt4-apps.

Qt-4.4.1 and KDE-4.1.0 are compiled on my LFS here from clean sources without any patches.

Thx,

Thomas

@ thomasadams,
you can download my config from here.

I`ve cleand up the config a little bit, removed all pixmaps and wallpaper to make it smaller.

And please remember, the config is under permanent cunstruction :slight_smile:

Maybe there are absurd mistakes :smiley:

Thank you or helping,
Thomas

Thanks. I’ll let you know if I get anything. Currently looking at the source now.

– Thomas Adam

Thomas,

There’s been a commit to CVS version of FVWM today which might correct this – can you checkout that CVS version and test it for me?

– Thomas Adam

Hi,
no problem, I`ll try out the latest checkout tomorrow after work, is this early enough?

Thank you,

Thomas

I’m in no rush – the timescale is with you based on when I can reply.

– Thomas Adam

Hi thomasadam,

slackman@DirtyLFS [~] $ fvwm -V
fvwm 2.5.27 (from cvs) compiled on Aug  9 2008 at 09:45:28
with support for: ReadLine, Stroke, XPM, PNG, SVG, Shape, XShm, SM, Bidi text, Xinerama, XRender, XCursor, XFT, NLS

And here what xsession-errors tells me:

Three apps without errors:

fvwm][__explain_placement]: placed new window 0xc00009 'hidconsole':
  initial size 1006x481
  desk 0 (specified by style)
  current page
  position 350 0  (used user specified position)

2081
[fvwm][__explain_placement]: placed new window 0xe00001 'HideBar':
  initial size 124x1024
  desk 0 (window is sticky)
  current page (window is sticky)
  position 1556 0  (used user specified position)

[fvwm][__explain_placement]: placed new window 0x1800001 'mpdSongName':
  initial size 122x61
  desk 0 (current desk)
  current page
  position 0 0, placed by fvwm (normal placement)
    placement method: TileCascade
....

So far so good,
and now “KDE4-1.0-apps”:

...
[fvwm][__explain_placement]: placed new window 0x3400001 'Dolphin':
  initial size 1334x872
  desk 0 (current desk)
  current page
  position 0 0, placed by fvwm (normal placement)
    placement method: bug
    (placement failed default pos 0 0)

[fvwm][__explain_placement]: placed new window 0x3600001 'Konqueror':
  initial size 1005x746
  desk 0 (current desk)
  current page
  position 0 0, placed by fvwm (normal placement)
    placement method: bug
    (placement failed default pos 0 0)
...

And here the error for the KDE4-Copy-Dialog-Window:

...
[fvwm][__explain_placement]: placed new window 0x360900e 'Fortschrittsdialog':
  initial size 380x231
  desk 0 (current desk)
  current page
  position 0 0, placed by fvwm (normal placement)
    placement method: bug
    (placement failed default pos 0 0)

[fvwm][GetWindowSizeHints]: <<WARNING>> The application window (id 0x360900e)
  "Kopiervorgang" has broken size hints (max_height).
    fvwm is ignoring those hints.    hint override = 0, flags = 23a
  min_width = 440, min_height = 234, max_width = 16383, max_height = 205
  width_inc = 0, height_inc = 0
  min_aspect = 0/0, max_aspect = 0/0
  base_width = 0, base_height = 0
  win_gravity = 1

    If you are having a problem with the application, send a bug report
    with this message included to the application owner.
    There is no need to notify fvwm-workers@fvwm.org.
[fvwm][GetWindowSizeHints]: <<WARNING>> The application window (id 0x360900e)
  "Kopiervorgang" has broken size hints (max_height).
    fvwm is ignoring those hints.    hint override = 0, flags = 23a
  min_width = 440, min_height = 234, max_width = 16383, max_height = 205
  width_inc = 0, height_inc = 0
  min_aspect = 0/0, max_aspect = 0/0
  base_width = 0, base_height = 0
  win_gravity = 1

    If you are having a problem with the application, send a bug report
    with this message included to the application owner.
    There is no need to notify fvwm-workers@fvwm.org.
[fvwm][GetWindowSizeHints]: <<WARNING>> The application window (id 0x360900e)
  "Kopiervorgang" has broken size hints (max_height).
    fvwm is ignoring those hints.    hint override = 0, flags = 23a
  min_width = 440, min_height = 235, max_width = 16383, max_height = 205
  width_inc = 0, height_inc = 0
  min_aspect = 0/0, max_aspect = 0/0
  base_width = 0, base_height = 0
  win_gravity = 1

    If you are having a problem with the application, send a bug report
    with this message included to the application owner.
    There is no need to notify fvwm-workers@fvwm.org.
[fvwm][__explain_placement]: placed new window 0x3609f16 'Fortschrittsdialog':
  initial size 380x231
  desk 0 (current desk)
  current page
  position 0 0, placed by fvwm (normal placement)
    placement method: bug
    (placement failed default pos 0 0)

[fvwm][GetWindowSizeHints]: <<WARNING>> The application window (id 0x3609f16)
  "Kopiervorgang" has broken size hints (max_height).
    fvwm is ignoring those hints.    hint override = 0, flags = 23a
  min_width = 440, min_height = 235, max_width = 16383, max_height = 205
  width_inc = 0, height_inc = 0
  min_aspect = 0/0, max_aspect = 0/0
  base_width = 0, base_height = 0
  win_gravity = 1

    If you are having a problem with the application, send a bug report
    with this message included to the application owner.
    There is no need to notify fvwm-workers@fvwm.org.
[fvwm][GetWindowSizeHints]: <<WARNING>> The application window (id 0x3609f16)
  "Kopiervorgang" has broken size hints (max_height).
    fvwm is ignoring those hints.    hint override = 0, flags = 23a
  min_width = 440, min_height = 235, max_width = 16383, max_height = 205
  width_inc = 0, height_inc = 0
  min_aspect = 0/0, max_aspect = 0/0
  base_width = 0, base_height = 0
  win_gravity = 1
...

And SMplayer:

...
[fvwm][__explain_placement]: placed new window 0x3800001 'SMPlayer':
  initial size 736x589
  desk 0 (current desk)
  current page
  position 0 0  (used user specified position)
...

And now some other environments from my current system:

glibc-2.8 (latest snap)
gcc-4.3.1-1

slackman@DirtyLFS [~] $ Xorg -version

X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux-From-Scratch 
Current Operating System: Linux DirtyLFS 2.6.26.2-LFS #1 SMP PREEMPT Wed Aug 6 21:55:51 CEST 2008 i686
Build Date: 20 June 2008  07:03:38PM
 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present

I hope its a little help to find out whats going wrong here.
Have a nice weekend,

greetings
Thomas

Edit:
What I try today is an Update from kde-4.1.0 to the latest unstable-snapshot.
Just to take a look if there is something fixed, in KDE-4.1.0 there are some interesting features but I think it`s really not so “stable enough for everyone” how the KDE-Team tells … but this is a story for KDE and not for this forum.

… I`m so ***** :smiley:
The only little problem was an duplicate Style in my config … .
O.K. ,
thomasadam (and all other), sorry for this posting here, everything is working perfect now.
I just tried out the fvwm95-config and could see that there is no problem. So it was clear that something is wrong in my config.

@ thomasadam: QT4-apps are working well with fvwm-2.5.26, nothing to change.