feat(bspwm): Add support for pseudo tiled nodes

This commit is contained in:
Berk Ozbalci 2016-12-30 05:51:39 +03:00 committed by Michael Carlberg
parent dffdc6a20b
commit 2fdbb6af41
2 changed files with 5 additions and 0 deletions

View File

@ -24,6 +24,7 @@ namespace modules {
LAYOUT_TILED, LAYOUT_TILED,
STATE_FULLSCREEN, STATE_FULLSCREEN,
STATE_FLOATING, STATE_FLOATING,
STATE_PSEUDOTILED,
NODE_LOCKED, NODE_LOCKED,
NODE_STICKY, NODE_STICKY,
NODE_PRIVATE NODE_PRIVATE

View File

@ -113,6 +113,7 @@ namespace modules {
m_modelabels.emplace(mode::LAYOUT_TILED, load_optional_label(m_conf, name(), "label-tiled")); m_modelabels.emplace(mode::LAYOUT_TILED, load_optional_label(m_conf, name(), "label-tiled"));
m_modelabels.emplace(mode::STATE_FULLSCREEN, load_optional_label(m_conf, name(), "label-fullscreen")); m_modelabels.emplace(mode::STATE_FULLSCREEN, load_optional_label(m_conf, name(), "label-fullscreen"));
m_modelabels.emplace(mode::STATE_FLOATING, load_optional_label(m_conf, name(), "label-floating")); m_modelabels.emplace(mode::STATE_FLOATING, load_optional_label(m_conf, name(), "label-floating"));
m_modelabels.emplace(mode::STATE_PSEUDOTILED, load_optional_label(m_conf, name(), "label-pseudotiled"));
m_modelabels.emplace(mode::NODE_LOCKED, load_optional_label(m_conf, name(), "label-locked")); m_modelabels.emplace(mode::NODE_LOCKED, load_optional_label(m_conf, name(), "label-locked"));
m_modelabels.emplace(mode::NODE_STICKY, load_optional_label(m_conf, name(), "label-sticky")); m_modelabels.emplace(mode::NODE_STICKY, load_optional_label(m_conf, name(), "label-sticky"));
m_modelabels.emplace(mode::NODE_PRIVATE, load_optional_label(m_conf, name(), "label-private")); m_modelabels.emplace(mode::NODE_PRIVATE, load_optional_label(m_conf, name(), "label-private"));
@ -277,6 +278,9 @@ namespace modules {
case 'F': case 'F':
mode_flag = mode::STATE_FLOATING; mode_flag = mode::STATE_FLOATING;
break; break;
case 'P':
mode_flag = mode::STATE_PSEUDOTILED;
break;
default: default:
m_log.warn("%s: Undefined T => '%s'", name(), value); m_log.warn("%s: Undefined T => '%s'", name(), value);
} }