Table of Contents

Patches for the window Manager (xfwm4)

Note: I created this page to post some modifications (adjustments?) I have made to xfwm4. They are not major but they have really improved my own experience with Xfce.

Ability to resize windows by dragging the top of the frame

With xfwm4, you can resize windows by dragging either side of the frame (left or right), the bottom, or any corner, but you cannot resize by dragging the top. Dragging the whole titlebar always moves the window only. I wanted to be able to resize by dragging the top. In themes where the title bar stretches across the width of the window, dragging the title bar should move the window (existing behaviour) if you aim in the “body” of the title bar but resize it if you aim along a narrow strip at the top. This makes it consistent with how you can resize the window by dragging the narrow strips on all the other sides and corners. In themes where the title bar does not stretch across the width of the window, the same behaviour should result in the fraction of the top where the title bar appears, and the rest of the top side should work just like the other sides.

As suggested, the exact behaviour of this feature depends on the theme, so it means that some extra information has to be included in the theme to take advantage of it. Unfortunately, I only prepared the modifications for the theme I use: B5. The change has no effect if you use any theme that does not include the new additions.

HOWTO

The “resize” versions should have the same dimensions as the non-“resize” versions but only the part(s) of the titlebar that should trigger resizing should be masked in. For example (for most themes), the “resize” versions should have everything but a narrow strip at the top masked out.

The extra pixmaps I have created for the B5 theme are available as an archive or as indidivual files. Add these files to your theme directory (all existing files should be untouched).

–vandry (2007-05-28)

Button actions patch

In xfwm4, the actions associated with the mouse buttons are:

I found these conventions to be quite confusing and inconsistent. For example: to move the window you have to use button 3 if you drag the title but button 2 instead if you drag another edge – or you can use button 1 but then the window will be unavoidably raised as a side effect. And the popup menu has just plain incorrect behaviour: it finally appears after you release the mouse button.

Unfortunately the mapping is not configurable, but I thought the following would be much better:

My proposed bindings will certainly not satisfy everyone any more than the default bindings suited me (in particular, I think many people do not care for the ability to easily move windows without raising them). That is why I would like to make the mouse bindings configurable. But for the moment I only wrote a patch to implement these bindings so I could comfortably use Xfce.

–vandry (2007-05-28)