• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KWin

KWin Namespace Reference

Namespaces

namespace  TabBox

Classes

class  Application
class  Atoms
class  Bridge
class  Client
 The Client class encapsulates a window decoration frame. More...
class  ClientGroup
 This class represents a group of clients for use in window tabbing. More...
class  CompositingPrefs
class  Deleted
class  DesktopChangeItem
class  DesktopChangeOSD
class  DesktopChangeText
class  EffectsHandlerImpl
class  EffectWindowGroupImpl
class  EffectWindowImpl
class  GeometryTip
class  GeometryUpdatesBlocker
 Helper for Client::blockGeometryUpdates() being called in pairs (true/false). More...
class  Group
class  KillWindow
class  KWinSelectionOwner
class  Motif
class  Notify
class  Options
class  PaintRedirector
class  Placement
class  PluginMgr
class  PopupInfo
class  RootInfo
 NET WM Protocol handler class. More...
class  Rules
class  Scene
class  SceneBasic
struct  SessionInfo
class  SessionManager
class  SessionSaveDoneHelper
class  ShortcutDialog
class  StackingUpdatesBlocker
 Helper for Workspace::blockStackingUpdates() being called in pairs (True/false). More...
class  StrutRect
class  TemporaryAssign
class  Toplevel
class  Unmanaged
class  WindowRules
class  WinInfo
 NET WM Protocol handler class. More...
class  Workspace
struct  XDamageNotifyEvent

Typedefs

typedef QList< Client * > ClientList
typedef QList< const Client * > ConstClientList
typedef QList< const Deleted * > ConstDeletedList
typedef QList< const Group * > ConstGroupList
typedef QList< const Toplevel * > ConstToplevelList
typedef QList< const Unmanaged * > ConstUnmanagedList
typedef long Damage
typedef QList< Deleted * > DeletedList
typedef QList< Group * > GroupList
typedef QVector< StrutRect > StrutRects
typedef QList< Toplevel * > ToplevelList
typedef QList< Unmanaged * > UnmanagedList

Enumerations

enum  ActivityFlags { ActivityFocus = 1 << 0, ActivityFocusForce = 1 << 1, ActivityRaise = 1 << 2 }
enum  allowed_t { Allowed }
enum  ForceGeometry_t { NormalGeometrySet, ForceGeometrySet }
enum  HiddenPreviews { HiddenPreviewsNever, HiddenPreviewsShown, HiddenPreviewsAlways }
enum  Layer {
  UnknownLayer = -1, FirstLayer = 0, DesktopLayer = FirstLayer, BelowLayer,
  NormalLayer, DockLayer, AboveLayer, ActiveLayer,
  NumLayers
}
enum  ShadeMode { ShadeNone, ShadeNormal, ShadeHover, ShadeActivated }
enum  SMSavePhase { SMSavePhase0, SMSavePhase2, SMSavePhase2Full }
enum  StrutArea {
  StrutAreaInvalid = 0, StrutAreaTop = 1 << 0, StrutAreaRight = 1 << 1, StrutAreaBottom = 1 << 2,
  StrutAreaLeft = 1 << 3, StrutAreaAll = StrutAreaTop | StrutAreaRight | StrutAreaBottom | StrutAreaLeft
}

Functions

static bool areKeySymXsDepressed (bool bAll, const uint keySyms[], int nKeySyms)
static bool areModKeysDepressed (const KShortcut &cut)
static bool areModKeysDepressed (const QKeySequence &seq)
static bool check_follows_focusin (Client *c)
void checkNonExistentClients ()
bool compositing ()
QPoint cursorPos ()
static void die (SmcConn conn_P, SmPointer ptr)
EffectWindow * effectWindow (Scene::Window *w)
EffectWindow * effectWindow (Toplevel *w)
static QByteArray errorMessage (const XErrorEvent &event, Display *dpy)
template<typename T >
Client * findClientInList (const ClientList &list, T predicate)
template<typename T >
Unmanaged * findUnmanagedInList (const UnmanagedList &list, T predicate)
QByteArray getStringProperty (WId w, Atom prop, char separator)
bool grabbedXServer ()
bool grabXKeyboard (Window w)
void grabXServer ()
const QPoint invalidPoint (INT_MIN, INT_MIN)
bool isLocalMachine (const QByteArray &host)
 KWIN_CHECK_PREDICATE (TruePredicate, Client, cl==cl)
 KWIN_COMPARE_PREDICATE (ClientMatchPredicate, Client, const Client *, cl==value)
 KWIN_COMPARE_PREDICATE (FrameIdMatchPredicate, Toplevel, Window, cl->frameId()==value)
 KWIN_COMPARE_PREDICATE (WindowMatchPredicate, Toplevel, Window, cl->window()==value)
 KWIN_COMPARE_PREDICATE (WrapperIdMatchPredicate, Client, Window, cl->wrapperId()==value)
 KWIN_COMPARE_PREDICATE (FetchNameInternalPredicate, Client, const Client *,(!cl->isSpecialWindow()||cl->isToolbar())&&cl!=value &&cl->caption()==value->caption())
 KWIN_COMPARE_PREDICATE (SameApplicationActiveHackPredicate, Client, const Client *,!cl->isSplash()&&!cl->isToolbar()&&!cl->isTopMenu()&&!cl->isUtility()&&!cl->isMenu()&&Client::belongToSameApplication(cl, value, true)&&cl!=value)
QPixmap * kwin_get_menu_pix_hack ()
 KWIN_PROCEDURE (CheckBorderSizesProcedure, Client, cl->checkBorderSizes(true))
 KWIN_PROCEDURE (CheckIgnoreFocusStealingProcedure, Client, cl->ignore_focus_stealing=options->checkIgnoreFocusStealing(cl))
static int limit0to4 (int i)
static Bool motion_predicate (Display *, XEvent *ev, XPointer)
void operator++ (Layer &lay)
kdbgstream & operator<< (kdbgstream &stream, const ToplevelList &list)
kdbgstream & operator<< (kdbgstream &stream, const Toplevel *cl)
kdbgstream & operator<< (kdbgstream &stream, const Rules *r)
static Bool predicate_follows_focusin (Display *, XEvent *e, XPointer arg)
int qtToX11Button (Qt::MouseButton button)
int qtToX11State (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
static void save_complete (SmcConn conn_P, SmPointer ptr)
static void save_yourself (SmcConn conn_P, SmPointer ptr, int, Bool shutdown, int, Bool)
static void shutdown_cancelled (SmcConn conn_P, SmPointer ptr)
static void sighandler (int)
int timestampCompare (Time time1, Time time2)
Time timestampDiff (Time time1, Time time2)
static QByteArray truncatedWindowRole (QByteArray a)
void ungrabXKeyboard ()
void ungrabXServer ()
static Bool update_x_time_predicate (Display *, XEvent *event, XPointer)
void updateXTime ()
static bool waitingMotionEvent ()
static int x11ErrorHandler (Display *d, XErrorEvent *e)
Qt::KeyboardModifiers x11ToQtKeyboardModifiers (int state)
Qt::MouseButton x11ToQtMouseButton (int button)
Qt::MouseButtons x11ToQtMouseButtons (int state)

Variables

Atoms * atoms
const long ClientWinMask
static EatAllPaintEvents * eater = 0
static bool follows_focusin = false
static bool follows_focusin_failed = false
static bool forgetIt = false
static GeometryTip * geometryTip = 0
bool initting = false
static bool keyboard_grabbed = false
static bool kwin_sync = false
static int last_buttons = 0
static QPoint last_cursor_pos
static QTimer * last_cursor_timer
static Time last_cursor_timestamp = CurrentTime
QChar LRE (0x202A)
QChar LRM (0x200E)
QChar LRO (0x202D)
static Time next_motion_time = CurrentTime
static Time next_x_time
Options * options
QChar PDF (0x202C)
static bool pending_dfc = false
QChar RLE (0x202B)
QChar RLM (0x200F)
QChar RLO (0x202E)
Scene * scene
int screen_number = -1
static int server_grab_count = 0
static Window shape_helper_window = None
const int ShapeInput = 2
const int SUPPORTED_MANAGED_WINDOW_TYPES_MASK
const int SUPPORTED_UNMANAGED_WINDOW_TYPES_MASK
static QRect * visible_bound = 0
static bool was_motion = false
static const char *const window_type_names []

Typedef Documentation

typedef QList< Client* > KWin::ClientList

Definition at line 90 of file utils.h.

typedef QList< const Client* > KWin::ConstClientList

Definition at line 91 of file utils.h.

typedef QList< const Deleted* > KWin::ConstDeletedList

Definition at line 95 of file utils.h.

typedef QList< const Group* > KWin::ConstGroupList

Definition at line 98 of file utils.h.

typedef QList< const Toplevel* > KWin::ConstToplevelList

Definition at line 89 of file utils.h.

typedef QList< const Unmanaged* > KWin::ConstUnmanagedList

Definition at line 93 of file utils.h.

typedef long KWin::Damage

Definition at line 52 of file utils.h.

typedef QList< Deleted* > KWin::DeletedList

Definition at line 94 of file utils.h.

typedef QList< Group* > KWin::GroupList

Definition at line 97 of file utils.h.

typedef QVector<StrutRect> KWin::StrutRects

Definition at line 151 of file utils.h.

typedef QList< Toplevel* > KWin::ToplevelList

Definition at line 86 of file utils.h.

typedef QList< Unmanaged* > KWin::UnmanagedList

Definition at line 92 of file utils.h.


Enumeration Type Documentation

enum KWin::ActivityFlags
Enumerator:
ActivityFocus 
ActivityFocusForce 
ActivityRaise 

Definition at line 123 of file utils.h.

enum KWin::allowed_t
Enumerator:
Allowed 

Definition at line 157 of file utils.h.

enum KWin::ForceGeometry_t
Enumerator:
NormalGeometrySet 
ForceGeometrySet 

Definition at line 160 of file utils.h.

enum KWin::HiddenPreviews
Enumerator:
HiddenPreviewsNever 
HiddenPreviewsShown 
HiddenPreviewsAlways 

Definition at line 174 of file utils.h.

enum KWin::Layer
Enumerator:
UnknownLayer 
FirstLayer 
DesktopLayer 
BelowLayer 
NormalLayer 
DockLayer 
AboveLayer 
ActiveLayer 
NumLayers 

Definition at line 103 of file utils.h.

enum KWin::ShadeMode
Enumerator:
ShadeNone 
ShadeNormal 
ShadeHover 
ShadeActivated 

Definition at line 164 of file utils.h.

enum KWin::SMSavePhase
Enumerator:
SMSavePhase0 
SMSavePhase2 
SMSavePhase2Full 

Definition at line 73 of file sm.h.

enum KWin::StrutArea
Enumerator:
StrutAreaInvalid 
StrutAreaTop 
StrutAreaRight 
StrutAreaBottom 
StrutAreaLeft 
StrutAreaAll 

Definition at line 130 of file utils.h.


Function Documentation

static bool KWin::areKeySymXsDepressed ( bool  bAll,
const uint  keySyms[],
int  nKeySyms 
) [static]

Handles alt-tab / control-tab

Definition at line 641 of file tabbox.cpp.

static bool KWin::areModKeysDepressed ( const KShortcut &  cut  )  [static]

Definition at line 720 of file tabbox.cpp.

static bool KWin::areModKeysDepressed ( const QKeySequence &  seq  )  [static]

Definition at line 683 of file tabbox.cpp.

static bool KWin::check_follows_focusin ( Client *  c  )  [static]

Definition at line 1515 of file events.cpp.

void KWin::checkNonExistentClients (  ) 
bool KWin::compositing (  )  [inline]

Definition at line 270 of file utils.h.

QPoint KWin::cursorPos (  ) 
static void KWin::die ( SmcConn  conn_P,
SmPointer  ptr 
) [static]

Definition at line 351 of file sm.cpp.

EffectWindow * KWin::effectWindow ( Scene::Window *  w  ) 
EffectWindow * KWin::effectWindow ( Toplevel *  w  ) 
static QByteArray KWin::errorMessage ( const XErrorEvent &  event,
Display *  dpy 
) [static]

Outputs: "Error: <error> (<value>), Request: <request>(<value>), Resource: <value>".

Definition at line 88 of file main.cpp.

template<typename T >
Client* KWin::findClientInList ( const ClientList &  list,
T  predicate 
) [inline]

Definition at line 302 of file utils.h.

template<typename T >
Unmanaged* KWin::findUnmanagedInList ( const UnmanagedList &  list,
T  predicate 
) [inline]

Definition at line 313 of file utils.h.

QByteArray KWin::getStringProperty ( WId  w,
Atom  prop,
char  separator 
)
bool KWin::grabbedXServer (  ) 
bool KWin::grabXKeyboard ( Window  w  ) 
void KWin::grabXServer (  ) 
const QPoint KWin::invalidPoint ( INT_MIN  ,
INT_MIN   
)
bool KWin::isLocalMachine ( const QByteArray &  host  ) 
KWin::KWIN_CHECK_PREDICATE ( TruePredicate  ,
Client  ,
cl  = =cl 
)
KWin::KWIN_COMPARE_PREDICATE ( ClientMatchPredicate  ,
Client  ,
const Client *  ,
cl  = =value 
)
KWin::KWIN_COMPARE_PREDICATE ( FrameIdMatchPredicate  ,
Toplevel  ,
Window  ,
cl->  frameId() = =value 
)
KWin::KWIN_COMPARE_PREDICATE ( WindowMatchPredicate  ,
Toplevel  ,
Window  ,
cl->  window() = =value 
)
KWin::KWIN_COMPARE_PREDICATE ( WrapperIdMatchPredicate  ,
Client  ,
Window  ,
cl->  wrapperId() = =value 
)
KWin::KWIN_COMPARE_PREDICATE ( FetchNameInternalPredicate  ,
Client  ,
const Client *  ,
(!cl->isSpecialWindow()||cl->isToolbar())&&cl!  = value &&cl->caption()==value->caption() 
)
KWin::KWIN_COMPARE_PREDICATE ( SameApplicationActiveHackPredicate  ,
Client  ,
const Client *  ,
!cl->isSplash()&&!cl->isToolbar()&&!cl->isTopMenu()&&!cl->isUtility()&&!cl->isMenu()&&Client::belongToSameApplication(cl, value, true)&&cl!  = value 
)
QPixmap * KWin::kwin_get_menu_pix_hack (  ) 
KWin::KWIN_PROCEDURE ( CheckBorderSizesProcedure  ,
Client  ,
cl->  checkBorderSizestrue 
)

Reread settings.

KWin::KWIN_PROCEDURE ( CheckIgnoreFocusStealingProcedure  ,
Client  ,
cl->  ignore_focus_stealing = options->checkIgnoreFocusStealing(cl) 
)
static int KWin::limit0to4 ( int  i  )  [static]

Definition at line 125 of file rules.cpp.

static Bool KWin::motion_predicate ( Display *  ,
XEvent *  ev,
XPointer   
) [static]

Definition at line 1406 of file events.cpp.

void KWin::operator++ ( Layer &  lay  )  [inline]

Definition at line 117 of file utils.h.

kdbgstream & KWin::operator<< ( kdbgstream &  stream,
const ToplevelList &  list 
)

Definition at line 85 of file toplevel.cpp.

kdbgstream & KWin::operator<< ( kdbgstream &  stream,
const Toplevel *  cl 
)
kdbgstream & KWin::operator<< ( kdbgstream &  stream,
const Rules *  r 
)
static Bool KWin::predicate_follows_focusin ( Display *  ,
XEvent *  e,
XPointer  arg 
) [static]

Definition at line 1497 of file events.cpp.

int KWin::qtToX11Button ( Qt::MouseButton  button  ) 
int KWin::qtToX11State ( Qt::MouseButtons  buttons,
Qt::KeyboardModifiers  modifiers 
)
static void KWin::save_complete ( SmcConn  conn_P,
SmPointer  ptr 
) [static]

Definition at line 360 of file sm.cpp.

static void KWin::save_yourself ( SmcConn  conn_P,
SmPointer  ptr,
int  ,
Bool  shutdown,
int  ,
Bool   
) [static]

Definition at line 341 of file sm.cpp.

static void KWin::shutdown_cancelled ( SmcConn  conn_P,
SmPointer  ptr 
) [static]

Definition at line 368 of file sm.cpp.

static void KWin::sighandler ( int   )  [static]

Definition at line 373 of file main.cpp.

int KWin::timestampCompare ( Time  time1,
Time  time2 
) [inline]

Definition at line 324 of file utils.h.

Time KWin::timestampDiff ( Time  time1,
Time  time2 
) [inline]

Definition at line 330 of file utils.h.

static QByteArray KWin::truncatedWindowRole ( QByteArray  a  )  [static]

Definition at line 2881 of file workspace.cpp.

void KWin::ungrabXKeyboard (  ) 
void KWin::ungrabXServer (  ) 
static Bool KWin::update_x_time_predicate ( Display *  ,
XEvent *  event,
XPointer   
) [static]

Definition at line 214 of file utils.cpp.

void KWin::updateXTime (  ) 
static bool KWin::waitingMotionEvent (  )  [static]

Definition at line 1416 of file events.cpp.

static int KWin::x11ErrorHandler ( Display *  d,
XErrorEvent *  e 
) [static]

Definition at line 170 of file main.cpp.

Qt::KeyboardModifiers KWin::x11ToQtKeyboardModifiers ( int  state  ) 
Qt::MouseButton KWin::x11ToQtMouseButton ( int  button  ) 
Qt::MouseButtons KWin::x11ToQtMouseButtons ( int  state  ) 

Variable Documentation

Atoms * KWin::atoms

Definition at line 68 of file main.cpp.

const long KWin::ClientWinMask
Initial value:
 KeyPressMask | KeyReleaseMask |
                          ButtonPressMask | ButtonReleaseMask |
                  KeymapStateMask |
                  ButtonMotionMask |
                  PointerMotionMask | 
                  EnterWindowMask | LeaveWindowMask |
                  FocusChangeMask |
                  ExposureMask |
                  StructureNotifyMask |
                  SubstructureRedirectMask

Definition at line 68 of file utils.h.

EatAllPaintEvents* KWin::eater = 0 [static]

Definition at line 2711 of file geometry.cpp.

bool KWin::follows_focusin = false [static]

Definition at line 1495 of file events.cpp.

bool KWin::follows_focusin_failed = false [static]

Definition at line 1496 of file events.cpp.

bool KWin::forgetIt = false [static]

Definition at line 30 of file notifications.cpp.

GeometryTip* KWin::geometryTip = 0 [static]

Definition at line 2633 of file geometry.cpp.

bool KWin::initting = false

Definition at line 72 of file main.cpp.

bool KWin::keyboard_grabbed = false [static]

Definition at line 303 of file utils.cpp.

bool KWin::kwin_sync = false [static]

Whether to run Xlib in synchronous mode and print backtraces for X errors.

Note that you most probably need to configure cmake with "-D__KDE_HAVE_GCC_VISIBILITY=0" and -rdynamic in CXXFLAGS for kBacktrace() to work.

Definition at line 79 of file main.cpp.

int KWin::last_buttons = 0 [static]

Definition at line 2816 of file workspace.cpp.

QPoint KWin::last_cursor_pos [static]

Definition at line 2815 of file workspace.cpp.

QTimer* KWin::last_cursor_timer [static]

Definition at line 2818 of file workspace.cpp.

Time KWin::last_cursor_timestamp = CurrentTime [static]

Definition at line 2817 of file workspace.cpp.

QChar KWin::LRE(0x202A)
QChar KWin::LRM(0x200E)
QChar KWin::LRO(0x202D)
Time KWin::next_motion_time = CurrentTime [static]

Definition at line 1398 of file events.cpp.

Time KWin::next_x_time [static]

Definition at line 213 of file utils.cpp.

Options * KWin::options

Definition at line 66 of file main.cpp.

QChar KWin::PDF(0x202C)
bool KWin::pending_dfc = false [static]

Definition at line 2773 of file workspace.cpp.

QChar KWin::RLE(0x202B)
QChar KWin::RLM(0x200F)
QChar KWin::RLO(0x202E)
Scene * KWin::scene

Definition at line 89 of file scene.cpp.

int KWin::screen_number = -1

Definition at line 70 of file main.cpp.

int KWin::server_grab_count = 0 [static]

Definition at line 279 of file utils.cpp.

Window KWin::shape_helper_window = None [static]

Definition at line 708 of file client.cpp.

const int KWin::ShapeInput = 2

Definition at line 189 of file utils.h.

const int KWin::SUPPORTED_MANAGED_WINDOW_TYPES_MASK
Initial value:
 NET::NormalMask | NET::DesktopMask | NET::DockMask
    | NET::ToolbarMask | NET::MenuMask | NET::DialogMask  | NET::TopMenuMask
    | NET::UtilityMask | NET::SplashMask

Definition at line 59 of file utils.h.

const int KWin::SUPPORTED_UNMANAGED_WINDOW_TYPES_MASK
Initial value:
 NET::NormalMask | NET::DesktopMask | NET::DockMask
    | NET::ToolbarMask | NET::MenuMask | NET::DialogMask  | NET::TopMenuMask
    | NET::UtilityMask | NET::SplashMask | NET::DropdownMenuMask | NET::PopupMenuMask
    | NET::TooltipMask | NET::NotificationMask | NET::ComboBoxMask | NET::DNDIconMask

Definition at line 63 of file utils.h.

QRect* KWin::visible_bound = 0 [static]

Definition at line 2632 of file geometry.cpp.

bool KWin::was_motion = false [static]

Definition at line 1397 of file events.cpp.

const char* const KWin::window_type_names[] [static]
Initial value:
 
    {
    "Unknown", "Normal" , "Desktop", "Dock", "Toolbar", "Menu", "Dialog",
    "Override", "TopMenu", "Utility", "Splash"
    }

Definition at line 296 of file sm.cpp.

KWin

Skip menu "KWin"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •     Animators
  •     Applets
  •     Engines
  • Solid Modules
  • System Settings
  •   SystemSettingsView
Generated for API Reference by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal