1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-24 17:33:50 +03:00

add LastActiveWindow debug records

--in DebugWindow
This commit is contained in:
Michail Vourlakos 2019-06-04 20:08:30 +03:00
parent a0226e1de9
commit c0e3004717
11 changed files with 26 additions and 9 deletions

View File

@ -44,7 +44,7 @@
#include "wm/xwindowinterface.h"
#include "wm/tracker/lastactivewindow.h"
#include "wm/tracker/schemes.h"
#include "wm/tracker/windows.h"
#include "wm/tracker/trackerwindows.h"
// Qt
#include <QAction>

View File

@ -25,8 +25,8 @@
#include "../lattecorona.h"
#include "../layouts/manager.h"
#include "../wm/schemecolors.h"
#include "../wm/tracker/windows.h"
#include "../wm/tracker/lastactivewindow.h"
#include "../wm/tracker/trackerwindows.h"
#include "../../liblatte2/types.h"
namespace Latte {

View File

@ -22,7 +22,7 @@
// local
#include "tracker/schemes.h"
#include "tracker/windows.h"
#include "tracker/trackerwindows.h"
#include "../lattecorona.h"

View File

@ -25,7 +25,7 @@
#include "schemecolors.h"
#include "tasktools.h"
#include "windowinfowrap.h"
#include "tracker/windows.h"
#include "tracker/trackerwindows.h"
#include "../liblatte2/types.h"
#include "../liblatte2/extras.h"

View File

@ -1,9 +1,9 @@
set(lattedock-app_SRCS
${lattedock-app_SRCS}
${CMAKE_CURRENT_SOURCE_DIR}/lastactivewindow.cpp
${CMAKE_CURRENT_SOURCE_DIR}/windows.cpp
${CMAKE_CURRENT_SOURCE_DIR}/schemes.cpp
${CMAKE_CURRENT_SOURCE_DIR}/trackedgeneralinfo.cpp
${CMAKE_CURRENT_SOURCE_DIR}/trackedviewinfo.cpp
${CMAKE_CURRENT_SOURCE_DIR}/trackerwindows.cpp
PARENT_SCOPE
)

View File

@ -21,7 +21,7 @@
// local
#include "trackedgeneralinfo.h"
#include "windows.h"
#include "trackerwindows.h"
#include "../abstractwindowinterface.h"
#include "../tasktools.h"
#include "../../view/view.h"

View File

@ -20,7 +20,7 @@
#include "trackedgeneralinfo.h"
//local
#include "windows.h"
#include "trackerwindows.h"
#include "../schemecolors.h"
#include "../../view/view.h"

View File

@ -20,7 +20,7 @@
#include "trackedviewinfo.h"
//local
#include "windows.h"
#include "trackerwindows.h"
#include "../schemecolors.h"
#include "../../view/view.h"

View File

@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "windows.h"
#include "trackerwindows.h"
// local
#include "lastactivewindow.h"

View File

@ -757,6 +757,23 @@ Window{
Text{
text: root.appletsNeedWindowsTracking
}
Text{
text: "Last Active Window (id)"+space
}
Text{
text: latteView && latteView.windowsTracker ? latteView.windowsTracker.lastActiveWindow.winId : ""
}
Text{
text: "Last Active Window (title)"+space
}
Text{
text: latteView && latteView.windowsTracker ? latteView.windowsTracker.lastActiveWindow.display : ""
elide: Text.ElideRight
}
}
}