Chapter 2Windows2.1 Anatomy of a WindowGenerally an application will have the following layout:![]()
2.2 Working With Windows2.2.1 Focusing a WindowWindows can be in two states: focused , or unfocused. The focused window (also called the key or active window) has a black titlebar and is the window that receives keyboard input, ie: where you can type text. Usually it's the window where you work on. Only one window may be focused at a time. Unfocused windows have a light gray titlebar. Some applications have a special type of window, called dialog windows transient windows or panels. When these windows are active, the window that owns them (the main window) get a dark gray titlebar. As soon as the dialog window is closed, the focus is returned to the owner window. The image below shows an active Open File panel and it's owner window.
There are three styles of window focusing: Click-to-Focus,or manual focus mode. In click-to-focus mode, you explicitly choose the window that should be focused. This is the default mode. Focus-Follow-Mouse,or auto-focus mode. In this mode, the focused window is chosen based on the position of the mouse pointer. The window below the mouse pointer is always the focused window. Sloppy-Focus,or semi-auto-focus mode. This is similar to the focus-follow-mouse mode, but if you move the pointer from a window to the root window, the window will not loose focus. You can choose between these modes with the FocusMode option To focus a window in click-to-focus mode:
When you click in the client area of an inactive window to set the focus, the click is normally processed by the application. If you find this behaviour a little confusing, you can make the application ignore this click by using the IgnoreFocusClick option. To focus a window in focus-follow-mouse mode:
2.2.2 Reordering Overlapping WindowsWindows can overlap other windows, making some windows be over or in front of others.To bring a window to the front:
Dialog/transient windows are always placed over their owner windows, unless the OnTopTransients option is disabled. Some windows have a special attribute that allow them be permanently over normal windows. You can make specific windows have this attribute use the AlwaysOnTop window option or set it in the Window Inspector panel. Extra Bindings
2.2.3 Moving a WindowTo move the window around the screen, drag the window through it's titlebar with the left mouse button pressed. This will also bring the window to the front and focus the window.To move a window:
In some rare occasions, it is possible for a window to be placed off screen. This can happen with some buggy applications. To bring a window back to the visible screen area, select the window in the Window List menu. You can prevent windows from doing that with the DontMoveOff window attribute. Extra Bindings
2.2.4 Resizing a WindowThe size of a window can be adjusted by dragging the resizebar.Depending on the place you click to drag the resizebar, the resize operation is constrained to a direction. To resize a window
Extra Bindings
2.2.5 Miniaturizing a WindowIf you want to temporarily get rid of a window, you can miniaturize it. When miniaturizing a window, it will shrink into a miniwindow with a icon and a title that is placed at the bottom of the screen.
You can move the miniwindow around the screen by dragging it. Unlike application icons, miniwindows cannot be docked. To restore a window from it's miniwindow, double click the miniwindow. The window will be restored in the current workspace, with the same position, size and contents as it had before miniaturization. To miniaturize a window:
You can also restore all miniaturized and hidden windows of a given application by double clicking in it's application icon with the middle mouse button. 2.2.6 Shading a WindowIf you want to temporarily get rid of a window, an option for it's miniaturization is to shade it. When you shade a window, the window rolls up to it's titlebar. You can do almost everything you do with a normal window with shaded windows, like miniaturizing or closing it.To shade a window:
2.2.7 Closing a WindowAfter finishing work in a window, you can close it to completely get rid of it. When you close a window, it is removed from the screen and can no longer be restored. So, before closing a window, be sure you have saved any work you were doing on it.
Some windows will have a close button with some dots around it. These windows can't be closed normally and the only way to get rid of them is by exiting the application. You should try exiting from inside the application (through it's menus or buttons) when possible. Otherwise you can force WindowMaker to ``kill'' the application. To force the closure of a window (by killing the application):
It is also possible to kill applications that can be normally closed by clicking the close button while holding the Control key. 2.2.8 Maximizing a WindowIf you want to resize a window to occupy the whole screen, you can maximize the window. When you unmaximize it, the window will be restored to the same position and size it was before maximized.To maximize a window:
To restore the size of a maximized window:
You can select whether the window should be maximized to the whole screen or if the position of the Dock should be accounted for by setting the WinDock option. 2.2.9 The Window Commands MenuClicking on the titlebar of a window with the right mouse button will open a menu containing commands that will apply to that window. The menu can also be opened through the keyboard with the Control+Escape key, by default.
2.3 The Window Attributes Inspector2.3.1 Window SpecificationThis panel Allows you to specify the WM_CLASS that WindowMaker should use to identify the window whose attributes you are setting.
2.3.2 Window AttributesThis panel lets you set the attributes for the selected window.
2.3.3 Advanced Options
2.3.4 Icon and Initial WorkspaceThis panel allows you to browse for, and update the mini-window image for the selected window, as well as setting the initial workspace.
2.3.5 Application SpecificAttributes specific to the selected application
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||