Also set the x11 hide flags

This commit is contained in:
Ximi1970
2020-12-29 16:17:15 +01:00
parent 1cd73ae7f5
commit d95f313cb0

View File

@@ -500,6 +500,15 @@ void WindowCtrlUnix::minimizeWindow( quint64 window )
#ifdef DEBUG_DISPLAY_ACTIONS
emit signalConsole( "Withdraw window" );
#endif
/*
* Set the flags (GNOME, Wayland?)
*/
SendEvent( m_display, window, "_NET_WM_STATE", _NET_WM_STATE_ADD, _ATOM_SKIP_TASKBAR );
SendEvent( m_display, window, "_NET_WM_STATE", _NET_WM_STATE_ADD, _ATOM_SKIP_PAGER );
Flush( m_display );
/*
* Remove from taskbar and task switchers
*/
@@ -572,6 +581,14 @@ void WindowCtrlUnix::normalizeWindow( quint64 window )
MapWindow( m_display, window );
SetWMNormalHints( m_display, window, m_tb_window_hints[ window ] );
/*
* Reset the hide flags
*/
SendEvent( m_display, window, "_NET_WM_STATE", _NET_WM_STATE_REMOVE, _ATOM_SKIP_TASKBAR );
SendEvent( m_display, window, "_NET_WM_STATE", _NET_WM_STATE_REMOVE, _ATOM_SKIP_PAGER );
Flush( m_display );
}
/*