aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/LSession.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-05-25 15:15:27 -0400
committerKen Moore <ken@ixsystems.com>2017-05-25 15:15:27 -0400
commit2f06b47c824fb59a45a0468a97a8f1b18b451d0b (patch)
tree7497c4ad02d3f16b3362449677bd39d657108c9e /src-qt5/core/lumina-desktop/LSession.cpp
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-2f06b47c824fb59a45a0468a97a8f1b18b451d0b.tar.gz
lumina-2f06b47c824fb59a45a0468a97a8f1b18b451d0b.tar.bz2
lumina-2f06b47c824fb59a45a0468a97a8f1b18b451d0b.zip
enable some debugging on the virtualbox window detection/adjustment routine.
Diffstat (limited to 'src-qt5/core/lumina-desktop/LSession.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/LSession.cpp4
1 files changed, 3 insertions, 1 deletions
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<LXCB::WINDOWSTATE> 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::WINDOWTYPE>() << LXCB::T_NORMAL );
+ qDebug() << "Adjusting VirtualBox Window (fullscreen)";
+ XCB->WM_Set_Window_Type(win, QList<LXCB::WINDOWTYPE>() << LXCB::T_NORMAL << LXCB::T_UTILITY );
XCB->RestoreWindow(win);
}
}
bgstack15