Disable debug, cleanup

This commit is contained in:
Ximi1970
2021-01-17 00:07:05 +01:00
parent d24408a6a7
commit fdaf6f004a
3 changed files with 8 additions and 40 deletions

View File

@@ -4,8 +4,8 @@
/*
* show all actions (normalize, minimize, hide, show/hide)
*/
#define DEBUG_DISPLAY_ACTIONS
#define DEBUG_DISPLAY_ACTIONS_DETAILS
#define DEBUG_DISPLAY_ACTIONS_END
//#define DEBUG_DISPLAY_ACTIONS
//#define DEBUG_DISPLAY_ACTIONS_DETAILS
//#define DEBUG_DISPLAY_ACTIONS_END
#endif // DEBUG_H

View File

@@ -763,7 +763,6 @@ void WindowCtrlUnix::minimizeWindow( quint64 window )
/*
* Flush the pipes
*/
// Flush( m_display );
Sync( m_display );
#ifdef DEBUG_DISPLAY_ACTIONS_END
@@ -853,7 +852,6 @@ void WindowCtrlUnix::normalizeWindow( quint64 window )
/*
* Flush the pipes
*/
// Flush( m_display );
Sync( m_display );
/*

View File

@@ -84,7 +84,7 @@ void WindowCtrl::slotWindowTest1()
// findWindows( m_ppid );
#define MINIMIZE_TEST
//#define MINIMIZE_TEST
#ifdef MINIMIZE_TEST
emit signalConsole( QString( "Pid: %1").arg( m_ppid ) );
findWindows( m_ppid );
@@ -115,7 +115,7 @@ void WindowCtrl::slotWindowTest2()
// hideWindow( getWinId(), true );
#define NORMALIZE_TEST
//#define NORMALIZE_TEST
#ifdef NORMALIZE_TEST
emit signalConsole( QString( "Pid: %1").arg( m_ppid ) );
findWindows( m_ppid );
@@ -144,8 +144,11 @@ void WindowCtrl::slotWindowTest3()
// emit signalConsole( QString( "Pid %1" ).arg( m_pid ) );
// emit signalConsole( QString( "Ppid %1" ).arg( m_ppid ) );
//#define FINDWINDOW_TEST
#ifdef FINDWINDOW_TEST
emit signalConsole( QString( "Pid: %1").arg( m_ppid ) );
findWindows( m_ppid );
#endif
emit signalConsole("Test 3 done");
}
@@ -233,38 +236,6 @@ void WindowCtrl::slotWindowState( Preferences::WindowState state )
}
}
}
else
{
/*
* Let the montor handle this
*/
#ifdef MONITOR
if( state == Preferences::STATE_MINIMIZED )
{
/*
* Update the TB windows and states
*/
findWindows( m_ppid );
QList< quint64 > win_ids = getWinIds();
/*
* Compare the x11 states and the internal states
*/
for( int i = 0 ; i < win_ids.length() ; ++i )
{
Preferences::WindowState current_state = getWindowStateX11( i );
if( ( current_state == Preferences::STATE_MINIMIZED || current_state == Preferences::STATE_DOCKED ) && current_state != getWindowState( win_ids.at( i ) ) )
{
minimizeWindow( win_ids.at( i ) );
}
}
}
#endif
}
#else
@@ -349,7 +320,6 @@ void WindowCtrl::slotShowHide()
/*
* Update the TB windows
*/
// findWindows( m_ppid );
updateX11WindowStates();
#else