! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Window positioning to center does not work properly


Description Sergey 2015-05-28 00:12:17 CEST
I am using the smart window placement to open all windows at the center of the screen.
The settings I am using as follows:
Window Manager Tweaks\Placement\Minimum size of windows = set to large (the right position of the slider)
Window Manager Tweaks\Placement\By default, place windows = at the center of the screen.
The problem that the xfwm4 does not respect these settings after reboot.
I am running Arch Linux x64 with LightDM and XFCE 4.12.
Steps to reproduce:
1. Close all windows. Set settings in Window Manager Tweaks like mentioned above.
2. Open Xfce terminal - it will be opened at the center of the desktop, as expected.
3. Reboot your PC.
4. Open Xfce terminal again - it will be opened at the top left corner of the screen.

If if will open Window Manager Tweaks\Placement and change the slider position to left and back to right, xfwm4 will do the smart window placement properly.

As a temporary workaround, I added the following script in the session/startup:
xfconf-query -c xfwm4 -p /general/placement_ratio -s 90
sleep 1s
xfconf-query -c xfwm4 -p /general/placement_ratio -s 100
sleep 1s
xfconf-query -c xfwm4 -p /general/placement_mode -s mouse
sleep 1s
xfconf-query -c xfwm4 -p /general/placement_mode -s center

It resolves the issue.
Comment 1 Olivier Fourdan editbugs 2015-05-28 08:45:47 CEST
xfwm4 relies on xfconf to save and retrieve configuration options, so most likely, if anything, it's a bug in xfconf rather than xfwm4.

Anything particular in your setup, NFS mounted home directories? Customized startup scripts? 

Can you please do the following:

1. Capture the current configuration:

   $ xfconf-query -vl -c xfwm4 > xfconf-before.txt

2. Change the settings in the UI

3. Capture the new configuration:

   $ xfconf-query -vl -c xfwm4 > xfconf-after.txt

4. Attach both "xfconf-before.txt" and "xfconf-after.txt" to this bugzilla

5. Attach the output of "env"
Comment 2 Sergey 2015-05-29 01:46:57 CEST
Created attachment 6291 
the output of the env command
Comment 3 Sergey 2015-05-29 01:48:57 CEST
Created attachment 6292 
xconf right after the login(window placement does not work)
Comment 4 Sergey 2015-05-29 01:50:15 CEST
Created attachment 6293 
xconf after UI changes, when everything works properly
Comment 5 Sergey 2015-05-29 01:51:51 CEST
Files are added.
I do not use NFS home.
My startup script, loaded from session/startup in xfce:
xset -b
udiskie &
numlockx on
Comment 6 Sergey 2015-05-29 01:54:23 CEST
Also, here is my exact software versions
[hb860@roompc xfce4]$ pacman -Ss xfconf
extra/xfconf 4.12.0-1 (xfce4) [installed]
    A simple client-server configuration storage and query system
extra/xfwm4 4.12.3-1 (xfce4) [installed]
    Xfce window manager
Comment 7 Sergey 2015-05-29 23:44:02 CEST
Here is another observation:
If i restart xfwm4 without reboot or logout, the window placement does not work until i change the window placement settings as mentioned early.
I did the following:
1. Applied my workaround, new windows are opening at the center of the screen.
2. Opened Session and Startup\Session.
3. Selected xfwm4 in the list of running apps and pressed the "Quit Program" button. 
4. Started xfwm4. New windows are opening under the mouse cursor until i will apply the workaround.
I hope this will help to diagnose the issue.
Comment 8 Sergey 2015-05-29 23:46:34 CEST
My xfwm4 is as follows:
xfwm4 -V
	This is xfwm4 version 4.12.3 (revision 7fdcb53) for Xfce 4.12
	Released under the terms of the GNU General Public License.
	Compiled against GTK+-2.24.28, using GTK+-2.24.28.

	Build configuration and supported features:
	- Startup notification support:                 Yes
	- XSync support:                                Yes
	- Render support:                               Yes
	- Xrandr support:                               Yes
	- Embedded compositor:                          Yes
	- KDE systray proxy (deprecated):               No
Comment 9 Olivier Fourdan editbugs 2015-06-01 09:32:25 CEST
I think this is a dupe of bug 11788

The theme takes precedence over the user settings and some theme designer think they're so much smarter than their users and force some options in the themerc that are completely unrelated to the actual theme itself...

Can you check the content of the themerc of the xfwm4 theme you use and possibly reproduce with a different xfwm4 theme (try the default xfwm4 theme)?
Comment 10 Sergey 2015-06-01 19:01:34 CEST
Thank you very much Oliver!
It has "placement_ratio=20"
That's why i am faced with the "bug".
Comment 11 Sergey 2015-06-01 19:03:45 CEST
(In reply to Sergey from comment #10)
> Thank you very much Oliver!
> It has "placement_ratio=20"
> That's why i am faced with the "bug".
> Resolved.

*Olivier, sorry! I was very happy and made a typo :)
Comment 12 Sergey 2015-09-14 14:14:35 CEST
The default/expected behavior by design.

Bug #11938

Reported by:
Reported on: 2015-05-28
Last modified on: 2015-09-14


Olivier Fourdan
CC List:
0 users




Additional information