[xmonad] ManageHook and child windows

adam vogt vogt.adam at gmail.com
Sun Jun 24 18:56:10 CEST 2012


On Sat, Jun 23, 2012 at 2:30 PM, Raghavendra D Prabhu
<raghu.prabhu13 at gmail.com> wrote:
> Hi,
>
> I am using ManageHook to assign windows to workspaces; however, sometimes I
> tend to move the window to other workspace and after that happens, any
> dialog/child window  of this window appears in the original assigned
> workspace and not in the new workspace.
>
> Is there a way to fix / workaround this?

Hi Raghavendra,

If you run xprop on the dialog windows you find a property like:
WM_TRANSIENT_FOR(WINDOW): window id # 0x7c00006

If that's the case, you can use the transience' defined in
XMonad.Hooks.ManageHelpers, putting it as the left-most managehook
(that is,         manageHook = composeAll [ transience' , className =?
"a" --> doShift "b", ... ] )

http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-ManageHelpers.html

Adam



More information about the xmonad mailing list