diff --git a/sm.h b/sm.h index 774cc00b95..5d19a5cc4f 100644 --- a/sm.h +++ b/sm.h @@ -14,12 +14,41 @@ License. See the file "COPYING" for the exact licensing terms. #include #include +#include class QSocketNotifier; namespace KWinInternal { +struct SessionInfo + { + QCString sessionId; + QCString windowRole; + QCString wmCommand; + QCString wmClientMachine; + QCString resourceName; + QCString resourceClass; + + QRect geometry; + QRect restore; + QRect fsrestore; + int maximized; + int fullscreen; + int desktop; + bool minimized; + bool onAllDesktops; + bool shaded; + bool keepAbove; + bool keepBelow; + bool skipTaskbar; + bool skipPager; + bool userNoBorder; + NET::WindowType windowType; + bool active; // means 'was active in the saved session', not used otherwise + }; + + enum SMSavePhase { SMSavePhase0, // saving global state in "phase 0" diff --git a/workspace.h b/workspace.h index 644d8abebd..fb2496a50c 100644 --- a/workspace.h +++ b/workspace.h @@ -61,34 +61,6 @@ class SystemTrayWindow typedef QValueList SystemTrayWindowList; -struct SessionInfo - { - QCString sessionId; - QCString windowRole; - QCString wmCommand; - QCString wmClientMachine; - QCString resourceName; - QCString resourceClass; - - QRect geometry; - QRect restore; - QRect fsrestore; - int maximized; - int fullscreen; - int desktop; - bool minimized; - bool onAllDesktops; - bool shaded; - bool keepAbove; - bool keepBelow; - bool skipTaskbar; - bool skipPager; - bool userNoBorder; - NET::WindowType windowType; - bool active; // means 'was active in the saved session', not used otherwise - }; - - class Workspace : public QObject, public KWinInterface, public KDecorationDefines { Q_OBJECT