Move struct SessionInfo from workspace.h to sm.h .
svn path=/trunk/kdebase/kwin/; revision=256747
This commit is contained in:
parent
e07db73f38
commit
43ff6ea638
2 changed files with 29 additions and 28 deletions
29
sm.h
29
sm.h
|
@ -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"
|
||||
|
|
28
workspace.h
28
workspace.h
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue