diff options
author | Ken Moore <ken@ixsystems.com> | 2017-05-26 08:20:18 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-05-26 08:20:18 -0400 |
commit | 84bdfc3fdf4db8e7fe2cb4c08ba1f9b6cbf09a63 (patch) | |
tree | f7dd09bb6b88d1d06826108ac845752b1fc36e34 | |
parent | Get the new LIconCache class all setup and compiling. Now to actually start t... (diff) | |
parent | Disable the VirtualBox fullscreen detection/fix logic (diff) | |
download | lumina-84bdfc3fdf4db8e7fe2cb4c08ba1f9b6cbf09a63.tar.gz lumina-84bdfc3fdf4db8e7fe2cb4c08ba1f9b6cbf09a63.tar.bz2 lumina-84bdfc3fdf4db8e7fe2cb4c08ba1f9b6cbf09a63.zip |
Merge branch 'master' of github.com:trueos/lumina
-rw-r--r-- | src-qt5/core/lumina-desktop/LSession.cpp | 9 | ||||
-rw-r--r-- | src-qt5/core/lumina-desktop/LSession.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/LSession.cpp b/src-qt5/core/lumina-desktop/LSession.cpp index 8932ac36..d03ab4d3 100644 --- a/src-qt5/core/lumina-desktop/LSession.cpp +++ b/src-qt5/core/lumina-desktop/LSession.cpp @@ -686,6 +686,15 @@ void LSession::WindowPropertyEvent(WId win){ //Emit the single-app signal if the window in question is one used by the task manager 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)){ + qDebug() << "Adjusting VirtualBox Window (fullscreen)"; + XCB->WM_Set_Window_Type(win, QList<LXCB::WINDOWTYPE>() << LXCB::T_NORMAL << LXCB::T_UTILITY ); + XCB->RestoreWindow(win); + } + }*/ //emit WindowListEvent(); WindowPropertyEvent(); //Run through the entire routine for window checks }else if(RunningTrayApps.contains(win)){ diff --git a/src-qt5/core/lumina-desktop/LSession.h b/src-qt5/core/lumina-desktop/LSession.h index 8f799cd0..4c8da41c 100644 --- a/src-qt5/core/lumina-desktop/LSession.h +++ b/src-qt5/core/lumina-desktop/LSession.h @@ -67,7 +67,7 @@ public: // (DO NOT USE MANUALLY) void RootSizeChange(); void WindowPropertyEvent(); - void WindowPropertyEvent(WId); + void WindowPropertyEvent(WId); void SysTrayDockRequest(WId); void WindowClosedEvent(WId); void WindowConfigureEvent(WId); |