aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2017-05-26 08:20:18 -0400
committerKen Moore <ken@ixsystems.com>2017-05-26 08:20:18 -0400
commit84bdfc3fdf4db8e7fe2cb4c08ba1f9b6cbf09a63 (patch)
treef7dd09bb6b88d1d06826108ac845752b1fc36e34
parentGet the new LIconCache class all setup and compiling. Now to actually start t... (diff)
parentDisable the VirtualBox fullscreen detection/fix logic (diff)
downloadlumina-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.cpp9
-rw-r--r--src-qt5/core/lumina-desktop/LSession.h2
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);
bgstack15