! 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 !
About adding smart placement bias towards center of screen into official build
Status:
RESOLVED: WONTFIX
Severity:
enhancement

Comments

Description doom64 2008-11-16 01:27:36 CET
Created attachment 1980 
Smart placement bias towards center of screen patch for xfwm4 4.4.3

hey

I was looking to include a feature I added to xfwm4 4.4.2 a little while back into the official build, although I have now added it to xfwm4 4.4.3 and have made a patch that I have attached.

I have modified /src/placement.c, /src/settings.h, /src/settings.c and /mcs-plugin/wmtweaks_plugin.c, with the significant code being within placement.c (just 5 or 6 lines of code) around line 700 of the clientInitPosition() function. Note that I have added the comment "/* yosh64, center bias code */" next to all my code so you can find it, and that you will also have to update the po language files, which as you would know can be automatically done with make.

Basically I added the ability to bias the smart placement of windows towards the center of the screen, as I really don't like windows appearing at the edges of my screen. I actually added a slider control to the Xfce Settings Manager -> Window Manager Tweaks -> Placement tab.

Anyhows I think others would appreciate this feature, and I don't like the thought of adding it to every new release of xfwm myself :\.

Thanks

cya

from yosh64

Bug #4621

Reported by:
doom64
Reported on: 2008-11-16
Last modified on: 2020-05-28

People

Assignee:
Olivier Fourdan
CC List:
1 user

Version

Version:
4.5.99.1 (4.6 rc 1)

Attachments

Additional information