繁体   English   中英

XMonad:在将窗口浮动后,如何再次将其重新插入平铺布局中?

[英]XMonad: How can I again re-insert a window back into the tiling layout after having it made floating?

我使用以下绑定使窗口浮动和可拖动:

myMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
  [
    -- mod-button1, Set the window to floating mode and move by dragging
    ((modMask, button1),
     (\w -> focus w >> mouseMoveWindow w))

    -- mod-button2, Raise the window to the top of the stack
    , ((modMask, button2),
       (\w -> focus w >> windows W.swapMaster))

    -- mod-button3, Set the window to floating mode and resize by dragging
    , ((modMask, button3),
       (\w -> focus w >> mouseResizeWindow w))

    -- you may also bind events to the mouse scroll wheel (button4 and button5)
  ]

这非常有用,但是有时我想将窗口重新插入平铺布局中 XMonad中有一种机制可以做到这一点吗? 一些函数funcThatInsertWindowBack

((modMask .|. shiftMask, button1),
     (\w -> focus w >> funcThatInsertWindowBack w))

标准配置已经具有以下绑定:

((modMask, xK_t), withFocused $ windows . W.sink) 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM