Move struct SessionInfo from workspace.h to sm.h .

svn path=/trunk/kdebase/kwin/; revision=256747
icc-effect-5.14.5
Luboš Luňák 2003-10-06 14:03:15 +00:00
parent e07db73f38
commit 43ff6ea638
2 changed files with 29 additions and 28 deletions

29
sm.h
View File

@ -14,12 +14,41 @@ License. See the file "COPYING" for the exact licensing terms.
#include <X11/SM/SMlib.h>
#include <kapplication.h>
#include <netwm_def.h>
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"

View File

@ -61,34 +61,6 @@ class SystemTrayWindow
typedef QValueList<SystemTrayWindow> 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