void ToggleFocusedSpaceFloating() { if(KWMScreen.Current && IsSpaceInitializedForScreen(KWMScreen.Current)) { if(!IsSpaceFloating(KWMScreen.Current->ActiveSpace)) FloatFocusedSpace(); else TileFocusedSpace(SpaceModeBSP); } }
tree_node *CreateTreeFromWindowIDList(screen_info *Screen, std::vector<window_info*> *WindowsPtr) { if(IsSpaceFloating(Screen->ActiveSpace)) return NULL; tree_node *RootNode = CreateRootNode(); SetRootNodeContainer(Screen, RootNode); bool Result = false; space_info *Space = &Screen->Space[Screen->ActiveSpace]; if(Space->Mode == SpaceModeBSP) Result = CreateBSPTree(RootNode, Screen, WindowsPtr); else if(Space->Mode == SpaceModeMonocle) Result = CreateMonocleTree(RootNode, Screen, WindowsPtr); if(!Result) { free(RootNode); RootNode = NULL; } return RootNode; }
bool IsActiveSpaceFloating() { return KWMScreen.Current && IsSpaceFloating(KWMScreen.Current->ActiveSpace); }