MCPcopy Create free account
hub / github.com/BobdaProgrammer/doWM / toggleTiling

Method toggleTiling

wm/window_manager.go:1577–1593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1575}
1576
1577func (wm *WindowManager) toggleTiling() {
1578 if !wm.currWorkspace.detachTiling {
1579 if !wm.tiling {
1580 wm.tiling = true
1581 wm.enableTiling()
1582 } else {
1583 wm.tiling = false
1584 wm.disableTiling()
1585 }
1586 } else {
1587 if !wm.currWorkspace.tiling {
1588 wm.enableTiling()
1589 } else {
1590 wm.disableTiling()
1591 }
1592 }
1593}
1594
1595func (wm *WindowManager) disableTiling() {
1596 wm.currWorkspace.tiling = false

Callers 1

RunMethod · 0.95

Calls 2

enableTilingMethod · 0.95
disableTilingMethod · 0.95

Tested by

no test coverage detected