KWinInternal::Workspace Class Reference

Detailed Description
Definition at line 73 of file workspace.h.
Member Enumeration Documentation
Definition at line 255 of file workspace.h.
Member Function Documentation
bool KWinInternal::Workspace::workspaceEvent | ( | XEvent * | e | ) |
Handles workspace specific XEvents
Definition at line 195 of file events.cpp.
QRect KWinInternal::Workspace::clientArea | ( | clientAreaOption | opt, | |
const QPoint & | p, | |||
int | desktop | |||
) | const |
returns the area available for clients. This is the desktop geometry minus windows on the dock. Placement algorithms should refer to this rather than geometry().
- See also:
- geometry()
Definition at line 214 of file geometry.cpp.
Client * KWinInternal::Workspace::activeClient | ( | ) | const [inline] |
Returns the active client, i.e.
the client that has the focus (or None if no client has the focus)
Definition at line 686 of file workspace.h.
void KWinInternal::Workspace::activateClient | ( | Client * | c, | |
bool | force = FALSE | |||
) |
Tries to activate the client c. This function performs what you expect when clicking the respective entry in a taskbar: showing and raising the client (this may imply switching to the another virtual desktop) and putting the focus onto it. Once X really gave focus to the client window as requested, the client itself will call setActiveClient() and the operation is complete. This may not happen with certain focus policies, though.
- See also:
- stActiveClient(), requestFocus()
Definition at line 264 of file activation.cpp.
void KWinInternal::Workspace::requestFocus | ( | Client * | c, | |
bool | force = FALSE | |||
) |
Tries to activate the client by asking X for the input focus. This function does not perform any show, raise or desktop switching. See Workspace::activateClient() instead.
- See also:
- Workspace::activateClient()
Definition at line 304 of file activation.cpp.
void KWinInternal::Workspace::updateColormap | ( | ) |
Updates the current colormap according to the currently active client
Definition at line 887 of file workspace.cpp.
void KWinInternal::Workspace::setClientIsMoving | ( | Client * | c | ) |
Indicates that the client c is being moved around by the user.
Marks the client as being moved around by the user.
Definition at line 585 of file geometry.cpp.
void KWinInternal::Workspace::place | ( | Client * | c, | |
QRect & | area | |||
) |
Asks the internal positioning object to place a client
Definition at line 800 of file placement.cpp.
QPoint KWinInternal::Workspace::adjustClientPosition | ( | Client * | c, | |
QPoint | pos | |||
) |
Client c is moved around to position pos. This gives the workspace the opportunity to interveniate and to implement snap-to-windows functionality.
Definition at line 276 of file geometry.cpp.
void KWinInternal::Workspace::clientHidden | ( | Client * | c | ) |
Informs the workspace that the client c has been hidden. If it was the active client (or to-become the active client), the workspace activates another one.
c may already be destroyed
Definition at line 382 of file activation.cpp.
int KWinInternal::Workspace::currentDesktop | ( | ) | const [inline, virtual] |
Returns the current virtual desktop of this workspace.
Implements KWinInterface.
Definition at line 696 of file workspace.h.
int KWinInternal::Workspace::numberOfDesktops | ( | ) | const [inline] |
Returns the number of virtual desktops of this workspace.
Definition at line 701 of file workspace.h.
void KWinInternal::Workspace::setNumberOfDesktops | ( | int | n | ) |
Sets the number of virtual desktops to n
Definition at line 1437 of file workspace.cpp.
QWidget * KWinInternal::Workspace::desktopWidget | ( | ) |
Returns the workspace's desktop widget. The desktop widget is sometimes required by clients to draw on it, for example outlines on moving or resizing.
Definition at line 1962 of file workspace.cpp.
auxiliary functions to travers all clients according the focus order. Useful for kwms Alt-tab feature.
Definition at line 1247 of file tabbox.cpp.
auxiliary functions to travers all clients according the focus order. Useful for kwms Alt-tab feature.
Definition at line 1264 of file tabbox.cpp.
auxiliary functions to travers all clients according the static order. Useful for the CDE-style Alt-tab feature.
Definition at line 1281 of file tabbox.cpp.
auxiliary functions to travers all clients according the static order. Useful for the CDE-style Alt-tab feature.
Definition at line 1297 of file tabbox.cpp.
const ClientList & KWinInternal::Workspace::stackingOrder | ( | ) | const [inline] |
Returns the list of clients sorted in stacking order, with topmost client at the last position.
Definition at line 716 of file workspace.h.
Client * KWinInternal::Workspace::topClientOnDesktop | ( | int | desktop, | |
bool | unconstrained = false , |
|||
bool | only_normal = true | |||
) | const |
Returns topmost visible client. Windows on the dock, the desktop or of any other special kind are excluded. Also if the window doesn't accept focus it's excluded.
Definition at line 197 of file layers.cpp.
void KWinInternal::Workspace::sendClientToDesktop | ( | Client * | c, | |
int | desk, | |||
bool | dont_activate | |||
) |
Sends client c to desktop desk.
Takes care of transients as well.
Definition at line 1494 of file workspace.cpp.
void KWinInternal::Workspace::showWindowMenu | ( | const QRect & | pos, | |
Client * | cl | |||
) |
Shows the menu operations menu for the client and makes it active if it's not already.
Definition at line 1153 of file useractions.cpp.
void KWinInternal::Workspace::showWindowMenu | ( | int | x, | |
int | y, | |||
Client * | cl | |||
) | [inline] |
void KWinInternal::Workspace::updateOnAllDesktopsOfTransients | ( | Client * | c | ) |
void KWinInternal::Workspace::storeSession | ( | KConfig * | config, | |
SMSavePhase | phase | |||
) |
SessionInfo * KWinInternal::Workspace::takeSessionInfo | ( | Client * | c | ) |
Returns a SessionInfo for client c. The returned session info is removed from the storage. It's up to the caller to delete it.
This function is called when a new window is mapped and must be managed. We try to find a matching entry in the session.
May return 0 if there's no session info for the client.
void KWinInternal::Workspace::cascadeDesktop | ( | ) | [virtual] |
Cascades all clients on the current desktop
Implements KWinInterface.
Definition at line 599 of file geometry.cpp.
void KWinInternal::Workspace::unclutterDesktop | ( | ) | [virtual] |
Unclutters the current desktop by smart-placing all clients again.
Implements KWinInterface.
Definition at line 621 of file geometry.cpp.
void KWinInternal::Workspace::doNotManage | ( | QString | title | ) | [virtual] |
avoids managing a window with title title
Implements KWinInterface.
Definition at line 1074 of file workspace.cpp.
bool KWinInternal::Workspace::setCurrentDesktop | ( | int | new_desktop | ) | [virtual] |
Sets the current desktop to new_desktop
Shows/Hides windows according to the stacking order and finally propages the new desktop to the world
Implements KWinInterface.
Definition at line 1183 of file workspace.cpp.
bool KWinInternal::Workspace::isNotManaged | ( | const QString & | title | ) |
Hack for java applets
Definition at line 1082 of file workspace.cpp.
Informs the workspace about the active client, i.e. the client that has the focus (or None if no client has the focus). This functions is called by the client itself that gets focus. It has no other effect than fixing the focus chain and the return value of activeClient(). And of course, to propagate the active client to the world.
Definition at line 216 of file activation.cpp.
void KWinInternal::Workspace::focusToNull | ( | ) |
Puts the focus on a dummy window Just using XSetInputFocus() with None would block keyboard input
Definition at line 2372 of file workspace.cpp.
void KWinInternal::Workspace::refresh | ( | ) | [virtual, slot] |
Refreshes all the client windows
Implements KWinInterface.
Definition at line 1099 of file workspace.cpp.
void KWinInternal::Workspace::slotWindowMaximize | ( | ) | [slot] |
Maximizes the popup client
Definition at line 892 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowMaximizeVertical | ( | ) | [slot] |
Maximizes the popup client vertically
Definition at line 902 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowMaximizeHorizontal | ( | ) | [slot] |
Maximizes the popup client horiozontally
Definition at line 912 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowMinimize | ( | ) | [slot] |
Minimizes the popup client
Definition at line 923 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowShade | ( | ) | [slot] |
Shades/unshades the popup client respectively
Definition at line 932 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowRaise | ( | ) | [slot] |
Raises the popup client
Definition at line 941 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowLower | ( | ) | [slot] |
Lowers the popup client
Definition at line 951 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowRaiseOrLower | ( | ) | [slot] |
Does a toggle-raise-and-lower on the popup client;
Definition at line 961 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowPackLeft | ( | ) | [slot] |
Moves active window left until in bumps into another window or workarea edge.
Definition at line 586 of file placement.cpp.
void KWinInternal::Workspace::slotWindowOperations | ( | ) | [slot] |
Shows the window operations popup menu for the activeClient()
Definition at line 1145 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowClose | ( | ) | [slot] |
Closes the popup client
Definition at line 1191 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowMove | ( | ) | [slot] |
Starts keyboard move mode for the popup client
Definition at line 1202 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowResize | ( | ) | [slot] |
Starts keyboard resize mode for the popup client
Definition at line 1211 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowToNextDesktop | ( | ) | [slot] |
Move window to next desktop
Definition at line 1012 of file useractions.cpp.
void KWinInternal::Workspace::slotWindowToPreviousDesktop | ( | ) | [slot] |
Move window to previous desktop
Definition at line 1034 of file useractions.cpp.
void KWinInternal::Workspace::slotMouseEmulation | ( | ) | [slot] |
Invokes keyboard mouse emulation
Definition at line 1732 of file workspace.cpp.
void KWinInternal::Workspace::slotKillWindow | ( | ) | [slot] |
Kill Window feature, similar to xkill
Definition at line 1117 of file useractions.cpp.
void KWinInternal::Workspace::slotGrabWindow | ( | ) | [slot] |
Takes a screenshot of the current window and puts it in the clipboard.
Definition at line 1667 of file workspace.cpp.
void KWinInternal::Workspace::slotGrabDesktop | ( | ) | [slot] |
Takes a screenshot of the whole desktop and puts it in the clipboard.
Definition at line 1721 of file workspace.cpp.
bool KWinInternal::Workspace::keyPressMouseEmulation | ( | XKeyEvent & | ev | ) | [protected] |
Handles keypress event during mouse emulation
Definition at line 1864 of file workspace.cpp.
bool KWinInternal::Workspace::netCheck | ( | XEvent * | e | ) | [protected] |
Handles client messages sent to the workspace
Definition at line 497 of file events.cpp.
The documentation for this class was generated from the following files: