mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-03-05 11:20:43 +01:00
update linux part
This commit is contained in:
@@ -21,7 +21,7 @@ WindowCtrlUnix::WindowCtrlUnix( QObject *parent ) : QObject( parent )
|
||||
*/
|
||||
m_tb_window = 0;
|
||||
m_tb_windows = QList< quint64 >();
|
||||
m_state = QString();
|
||||
m_window_state = QString();
|
||||
|
||||
/*
|
||||
* Get the base display and window
|
||||
@@ -41,6 +41,26 @@ void WindowCtrlUnix::setMinimizeType( Preferences::MinimizeType type )
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set the window state.
|
||||
*/
|
||||
void WindowCtrlUnix::setWindowState( const QString& state )
|
||||
{
|
||||
m_window_state = state;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief getWindowState. Get the window state.
|
||||
*
|
||||
* @return The state.
|
||||
*/
|
||||
const QString& WindowCtrlUnix::getWindowState() const
|
||||
{
|
||||
return m_window_state;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Get the minimize type
|
||||
*/
|
||||
|
||||
@@ -137,7 +137,7 @@ class WindowCtrlUnix : public QObject
|
||||
*
|
||||
* @return The state.
|
||||
*/
|
||||
QString& getWindowState() const;
|
||||
const QString& getWindowState() const;
|
||||
|
||||
/**
|
||||
* @brief setMinimizeType
|
||||
@@ -389,7 +389,7 @@ class WindowCtrlUnix : public QObject
|
||||
/**
|
||||
* @brief m_state. State of the TB window.
|
||||
*/
|
||||
QString m_state;
|
||||
QString m_window_state;
|
||||
};
|
||||
|
||||
#endif // WINDOWCTRLUNIX_H
|
||||
|
||||
@@ -58,6 +58,7 @@ WindowCtrlWin::~WindowCtrlWin()
|
||||
stopInterceptMinimizeWindow();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Set the window state.
|
||||
*/
|
||||
@@ -66,6 +67,7 @@ void WindowCtrlWin::setWindowState( const QString& state )
|
||||
m_window_state = state;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief getWindowState. Get the window state.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user