xfwm4 snapping and spacings

Olivier Fourdan fourdan at gmail.com
Mon Sep 7 15:34:29 CEST 2009

Hi Jannis,

On Sat, Sep 5, 2009 at 6:51 PM, Jannis Pohlmann<jannis at xfce.org> wrote:
> Hey,
> I usually arange my windows so that there is a ~15-20px space between
> them, as can be seen on http://tinyurl.com/km6ajq for instance. In
> combination with workspace margins this gives me a feeling of having a
> better overview and less chaos on my screen.
> Now xfwm4 has this fancy feature allowing windows to snap to other
> window, strut and screen edges. I'd like to (optionally) combine this
> with workspace margins and a space-between-windows option, so that
> one can optionally snap not directly to the edges but to the edges +/- a
> customizable space. I'd also like to integrate it with the fill feature.
> I guess that all in all, this would require only one new option
> /general/space-between-windows (unsigned int) in either the window
> manager or the wm tweaks dialog.
> We could probably re-use the /general/snap_to_windows and
> /general/snap_to_border options to snap to edges +/- this space instead
> of the edges themselves.

The code has changed lately (ie post 4.6) as someone sent a
preliminary support for snap on resize too (previously was only snap
on move).

> Olivier, would you accept a patch for this? I could upload my
> modifications to a public branch so that people can test it before it
> is merged.

I guess I'll need to  see the patch and experiment with it a bit, but
I have nothing against it for now. Let's see where it goes.

> I think this might improve xfwm4's position in the competition with
> tiled window managers. But maybe you guys have ideas on how to improve
> my idea even further?

Hehehe, I don't really care about competition, but if the change is an
improvement why not.


More information about the Xfce4-dev mailing list