Mike
McBride
Jost
Schenck
2001-07-22
2.20.00
KDE
KControl
actions
window placement
window size

# Window Behavior

In the upper part of this control module you can see three panels: Focus, Actions and Advanced. In the Focus panel you can configure how windows gain or lose focus, &ie; become active or inactive. Using Actions you can configure how windows react to mouse clicks. The Advanced options concern window placement, movement or resizing.

Please note that the configuration in this module will not take effect if you don't use &kde;'s native window manager, &kwin;. If you do use a different window manager, please refer to its documentation for how to customize window behavior.

## Focus

The focus, of the desktop refers to the window which the user is currently working on. The window with focus is often referred to as the active window.

### Focus Policy

There are four methods &kde; can use to determine the current focus:

Click to Focus

  With this option, you simply click on the window to make that window active.

  All the other options within this section have no effect when this option is chosen.

Focus follows mouse

  To change the focus of a window, simply place the mouse pointer over the window. If the mouse pointer is then moved to an area of the desktop without another window, the last window retains the focus.

  In other window managers, this is sometimes known as Sloppy focus follows mouse.

Focus under mouse

  The window under the mouse, has the focus. If, however, the mouse pointer is in an area of the desktop that has no windows, no window will be active.

Focus strictly under mouse

  Similar to Focus under mouse, but even more strict with its interpretation.

Once you have determined the focus policy, there are two more options which you can determine.

By placing a mark in front of Auto Raise, &kde; can bring a window to the front if the mouse is over that window for a specified period of time. This is very useful with the Focus follows Mouse option. You can determine the delay by using the slider bar/spin box comination.

Setting the delay too short, will cause a rapid fire changing of windows, which can be quite distracting. Most people will like a delay of 100-300 ms. This is responsive, but it will let you slide over the corners of a window on your way to your destination without bringing that window to the front.

If you do not use Auto Raise, make sure the Click Raise option has a mark in front of it. You will not be happy with both Auto Raise and Click Raise disabled.

### Keyboard

In the Keyboard frame you can configure the way switching between applications or desktops using &Alt;Tab or &Ctrl;Tab.

Switching applications using &Alt; Tab, &ie; holding down &Alt; while repeatedly pressing the Tab key, can take place in &kde; mode or in CDE mode: in &kde; mode you will see a box in the middle of the screen showing you the currently selected application while you are still holding down the &Alt; key. In CDE mode you don't get any visual feedback.

Finally there is an option where you can choose to Traverse windows on all desktops or not. With this enabled, switching windows with &Alt;Tab will show all windows, on all desktops, and take you to the appropriate desktop for the window you select. With it disabled, only windows on your current desktop are selectable with &Alt;Tab, and you must use &Ctrl;Tab to switch to other desktops yourself.

## Actions

In this panel you can configure what happens to windows when a mouse is clicked on them. This panel is divided into 4 sections.

### Titlebar Doubleclick

This section provides a single dropdown box. You can select either Shade, or Maximize.

Selecting Maximise, causes &kde; to maximise the window whenever you doubleclick on the titlebar. Shade, on the other hand, causes the window to be reduced to simply the titlebar. Double clicking on the titlebar again, restores the window to its normal size.

You can have windows automatically unshade when you simply place the mouse over their shaded titlebar. Just check the Enable Hover check box in the Advanced tab of this module. This is a great way to reclaim desktop space when you're cutting and pasting between a lot of windows, for example.

### Titlebar and Frame

This section, allows you to determine what happens when you single click on the titlebar or frame of a window. Notice that you can have different actions associated with the same click depending on whether the window is active or not.

For each combination of mousebuttons and Active/Inactive, you can select the most appropriate choice. The actions are as follows:

Activate

  Make this window active.

Lower

  Will move this window to the bottom of the display. This will get the window out of the way.

Nothing

  Just like it says. Nothing happens.

Operations Menu

  Will bring up a small submenu, where you can choose window related commands (&ie; Maximize, Minimize, Close, &etc;).

Raise

  Will bring the window to the top of the display. All other windows which overlap with this one, will be hidden below it.

Toggle Raise and Lower

  This will raise windows which are not on top, and lower windows which are already on top.

### Inactive Inner Window

This part of the module, allows you to configure what happens when you click on an inactive window, with any of the three mouse buttons.

Your choices are as follows:

Activate, Raise and pass click

  This makes the clicked window active, raises it to the top of the display, and passes a mouse click to the application within the window.

Activate and pass click

  This makes the clicked window active and passes a mouse click to the application within the window.

Activate

  This simply makes the clicked window active. The mouse click is not passed on to the application within the window.

Activate and Raise

  This makes the clicked window active and raises the window to the top of the display. The mouse click is not passed on to the application within the window.

### Inner Window, titlebar and frame

This bottom section, allows you to configure additional actions, when the &Alt; key is pressed, and a mouse click is made on a window.

Once again, you can select different actions for Left, Middle and Right button clicks.

Your choices are:

Lower

  Will move this window to the bottom of the display. This will get the window out of the way.

Move

  Allows you to drag the selected window around the desktop.

Nothing

  Just like it says. Nothing happens.

Raise

  Will bring the window to the top of the display. All other windows which overlap with this one, will be hidden below it.

Resize

  Allows you to change the size of the selected window.

Toggle Raise and Lower

  This will raise windows which are not on top, and lower windows which are already on top.

## Advanced

In the Advanced panel you can do more advanced fine tuning to the window behavior.

Display content in moving windows

  When this option is selected, &kde; will continue to update the contents of the window as you move it around the screen.

  If this option is not selected, &kde; will use show you a rectangle, which will move with your mouse. When the mouse button is released, &kde; will restore th contents of the window.

Display content in resizing windows

  When this option is selected, &kde; will resize the contents of a window as you change the size. If this option is not selected, then &kde; will show a rectangle while you are resizing, and when the mouse button is released, the contents of the window will be resized and appear within the window.

Both the Display content in moving windows and Display content in resizing windows options, consume significantly more processor resources when enabled, then when disabled. If you find your computer is not as responsive as you would like when moving or resizing windows, disabling one or both of these features will improve the responsiveness of &kde;.

Animate minimize and restore

  If this option is enabled, an animation is shown when a window is being minimized or restored, to give you a visual feedback about what happened. If it is disabled, a minimized window will just disappear, a restored window will suddenly appear.

Allow moving and resizing of maximized windows

  When enabled, the borders of maximized windows will stay active, so you can still move them around or resize them. When disabled, maximized windows will be fixed to the screen borders.

Placement

  The placement policy determines where a new window will appear on the desktop. For now, there are three different policies: Smart will try to achieve a minimum overlap of windows. Cascade will cascade the windows, Random will use a random position.

### Shading

Animate

  If this is enabled then shading, or rolling up a window until just the title bar is shown, will be animated.

Shade hover

  If this option is enabled a shaded window will un-shade automatically when the mouse pointer has been over the title bar for some time. Use the slider to configure the delay un-shading.

### Magic Borders

Border snap zone

  The magic borders allow you to snap windows to the edge of the screen, and to each other. This setting determines how close in pixels you should move a window to the edge of the screen, in order for it to snap to the edge when you let go of the mouse.

Window snap zone

  As with the borders, this setting determines how close you should drag a window to the edge of an existing window, in order for it to snap into alignment, edge to edge, with the existing window.

Snap windows only when overlapping

  This setting modifies the previous item, so that only windows that you have dropped overlapping another window, and with the edge within the magic zone, will snap to the edge. If you turn this on, you can set the magic zone quite large, and overlapping windows will attempt to uncover themselves. This can also be quite disconcerting, so try it out for a while.

## Section Author

This section written by:

Mike McBride mpmcbride7@yahoo.com

Jost Schenck jost@schenck.de