簡體   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