From 2f06b47c824fb59a45a0468a97a8f1b18b451d0b Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Thu, 25 May 2017 15:15:27 -0400 Subject: enable some debugging on the virtualbox window detection/adjustment routine. --- src-qt5/core/lumina-desktop/LSession.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src-qt5/core') diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp index 02a08782..8b143449 100644 --- a/src-qt5/core/lumina-desktop/LSession.cpp +++ b/src-qt5/core/lumina-desktop/LSession.cpp @@ -687,9 +687,11 @@ void LSession::WindowPropertyEvent(WId win){ if(RunningApps.contains(win)){ if(DEBUG){ qDebug() << "Single-window property event"; } if( XCB->WindowClass(win).contains("VirtualBox")){ + qDebug() << "Found VirtualBox Window:"; QList states = XCB->WM_Get_Window_States(win); if(states.contains(LXCB::S_FULLSCREEN) && !states.contains(LXCB::S_HIDDEN)){ - XCB->WM_Set_Window_Type(win, QList() << LXCB::T_NORMAL ); + qDebug() << "Adjusting VirtualBox Window (fullscreen)"; + XCB->WM_Set_Window_Type(win, QList() << LXCB::T_NORMAL << LXCB::T_UTILITY ); XCB->RestoreWindow(win); } } -- cgit