XFce 4 Window Manager

François Le Clainche

This manual describes xfwm4 version 4.0


Table of Contents

Introduction
Using xfwm4
Manage windows
Keyboard shortcuts summary
Customizing xfwm4
Decoration style
Keyboard and focus
Advanced settings
Workspaces and Margins
Workspaces
Workspace margins
About xfwm4

 

Introduction

The XFce 4 Window Manager is part of the XFce Desktop Environment. The actual command to run is xfwm4. To run it in the background use xfwm4 --daemon. The window manager is responsible for the placement of windows on the screen, provides the window decorations and allows you for instance to move, resize or close them.

If you are familiar with previous versions of XFce you will find many changes. First of all, xfwm4 adheres strongly to the standards defined on freedesktop.org. Consequently, special features such as making windows borderless, or providing an icon for the application must now be implemented in the application; you can no longer use the window manager to force different behaviour. Most visible change is probably the themeability. The window decorations (borders, title bar and window buttons) can be configured by using window manager themes.

xfwm4 offers Xinerama support, useful when you have more than one monitor connected to your computer, but you have to make sure libxfcegui4 is compiled with --enable-xinerama.

xfwm4 can be run stand-alone, but if you use it this way, you will need the XFce 4 Settings Manager if you want GUI settings management. Tasks other than managing windows, like setting a background image or launching programs, need to be performed by other programs.

 

Using xfwm4

Manage windows

The window manager provides borders, a title bar and window buttons to application windows. The look is defined by the window manager theme.

In the default theme xfwm4 shows six buttons and a title on regular application windows. The six buttons perform these basic functions:

Figure 1. xfwm4 title bar buttons

xfwm4 title bar buttons and functions

You can open the window menu with a left-click on the menu button on the title bar, or with a right-click on the window title area itself.

 

Give focus to a window

You need to give the focus to a window if you want it to receive keyboard and mouse input. Window decorations colors will change, following the focus. To obtain more details about focus options, please refer to the section called “Keyboard and focus” below.

A keyboard shortcut allows to switch the focus from a window to others : Hold Alt and then you can press Tab repeatedly untill you get to the window you want to focus. If you use it, you will see a small popup with the window title and also xfwm4 will highlight the outline of the window that will receive the focus.

If you want the panel, and apps that do not appear in the taskbar, to be included when you switch the focus using the Alt+Tab shortcut, edit your $HOME/.config/xfce4/xfwm4/xfwm4rc (or create an new one) and add this line : cycle_minimum=false

NOTE: the use of a keyboard shortcut in an application needs the application window to have the focus :)

Maximize / unmaximize windows

If you maximize a window, it will expand on your display and use all avaible space (as it is defined by workspace settings). Moreover, you can maximize a window only vertically ou horizontally.

To maximize a window, perform one of those actions:

  • click the maximize button of the title bar
  • open the window menu from the title bar and choose the "maximize" item
  • use Alt + F5 keyboard shortcut

To maximize a window vertically :

  • middle-click the maximize button of the title bar
  • use Alt + F6 keyboard shortcut

To maximize a window horizontally :

  • right-click the maximize button of the title bar
  • use Alt + F7 keyboard shortcut

When a window has been maximized in a way or another, it can be restored to its previous size doing one of these actions :

  • click the unmaximize button of the title bar
  • use the same keyboard shortcut once again
  • choose the "Unmaximize" item in the window menu

 

Resize windows

Although certain special windows can not be resized, you are able to resize most of them to fit your needs.

  • you can use the edges and corners of the window frame to modify its size, dragging them with the mouse
  • you can use the Alt + right click shortcut while you hold the mouse pointer anywhere over the window frame; it will act as if you were dragging the bottom-right corner of the window
  • you can use practical keyboard shortcuts : Shift + Alt + (up, down, right or left) Arrow

 

Hide / unhide windows

You can hide a window performing one of these actions :

  • click the hide button of the title bar
  • open the window menu from the title bar and choose the "Hide" item
  • use Alt + F8 keyboard shortcut

Alternatively, you can hide all windows of current workspace, excepted the one you are using, in only one action : click the menu button of the title bar and choose "Hide all others".

To "unhide" a window, you will have to select its name or its icon in one of those XFce 4 components :

  • xftaskbar4
  • the xfce4-iconbox
  • the list of windows, accessible with a middle-click on the desktop background. This list shows all opened windows, classified by workspaces. Windows that are currently hidden are marked between [ ].

 

Shade / unshade windows

If you "shade" a window, it will be reduced to the size of its title bar. The same repeated action makes a window to shade/unshade :

  • click the shade/unshade button of the title bar
  • open the window menu from the title bar and choose "Shade" or "Unshade" item
  • use the mouse scrollwheel while you hold the pointer over the title bar
  • use the Alt + F9 keyboard shortcut

 

Stick / unstick windows

If you "stick" a window, it will be visible at the same place on all your workspaces. The same repeated action make a window to stick/unstick :