mirror of
https://github.com/Ximi1970/systray-x.git
synced 2026-03-23 03:50:04 +01:00
Update taskbar hide
This commit is contained in:
@@ -156,8 +156,13 @@ QList< quint64 > WindowCtrlUnix::getWinIds()
|
||||
/*
|
||||
* Minimize a window
|
||||
*/
|
||||
void WindowCtrlUnix::minimizeWindow( quint64 window )
|
||||
void WindowCtrlUnix::minimizeWindow( quint64 window, bool hide )
|
||||
{
|
||||
if( hide )
|
||||
{
|
||||
hideWindow( static_cast<Window>( window ), hide );
|
||||
}
|
||||
|
||||
XIconifyWindow( m_display, static_cast<Window>( window ), m_screen );
|
||||
XFlush( m_display );
|
||||
}
|
||||
@@ -168,6 +173,8 @@ void WindowCtrlUnix::minimizeWindow( quint64 window )
|
||||
*/
|
||||
void WindowCtrlUnix::normalizeWindow( quint64 window )
|
||||
{
|
||||
hideWindow( static_cast<Window>( window ), false );
|
||||
|
||||
// XMapRaised( m_display, static_cast<Window>( window ) );
|
||||
XMapWindow( m_display, static_cast<Window>( window ) );
|
||||
XFlush( m_display );
|
||||
|
||||
@@ -137,8 +137,9 @@ class WindowCtrlUnix : public QObject
|
||||
* @brief minimizeWindow. Minimize window.
|
||||
*
|
||||
* @param window The window.
|
||||
* @param hide Hide from taskbar.
|
||||
*/
|
||||
void minimizeWindow( quint64 window );
|
||||
void minimizeWindow( quint64 window, bool hide );
|
||||
|
||||
/**
|
||||
* @brief normalizeWindow. Normalize window.
|
||||
@@ -147,14 +148,6 @@ class WindowCtrlUnix : public QObject
|
||||
*/
|
||||
void normalizeWindow( quint64 window );
|
||||
|
||||
/**
|
||||
* @brief hideWindow. Hide a window from the taskbar.
|
||||
*
|
||||
* @param window The window.
|
||||
* @param set The state of the window.
|
||||
*/
|
||||
void hideWindow( quint64 window, bool set );
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -170,6 +163,14 @@ class WindowCtrlUnix : public QObject
|
||||
|
||||
private:
|
||||
|
||||
/**
|
||||
* @brief hideWindow. Hide a window from the taskbar.
|
||||
*
|
||||
* @param window The window.
|
||||
* @param set The state of the window.
|
||||
*/
|
||||
void hideWindow( quint64 window, bool set );
|
||||
|
||||
/**
|
||||
* @brief listXWindows. Get all the windows.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user