
It seems to be one of the most frequently asked questions on the IRC, so I've just added it to FAQ[1]. As I wrote there, I don't see any way to automate this task with manageHook. Keeping an extra bit for each window (whether to draw borders) looks like overkill for, I guess, single program which needs it. Does anyone have ideas how to automate NoBorders in a simple way? 1. http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#I_don.27t_l... -- Roman I. Cheplyaka (aka Feuerbach @ IRC)

Roman Cheplyaka
It seems to be one of the most frequently asked questions on the IRC, so I've just added it to FAQ[1]. As I wrote there, I don't see any way to automate this task with manageHook. Keeping an extra bit for each window (whether to draw borders) looks like overkill for, I guess, single program which needs it. Does anyone have ideas how to automate NoBorders in a simple way?
1. http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#I_don.27t_l...
I don't understand why xmonad cannot do the same thing as how dwm treats mplayer. -- c/* __o/* <\ * (__ */\ <

* Xiao-Yong Jin
Roman Cheplyaka
writes: It seems to be one of the most frequently asked questions on the IRC, so I've just added it to FAQ[1]. As I wrote there, I don't see any way to automate this task with manageHook. Keeping an extra bit for each window (whether to draw borders) looks like overkill for, I guess, single program which needs it. Does anyone have ideas how to automate NoBorders in a simple way?
1. http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#I_don.27t_l...
I don't understand why xmonad cannot do the same thing as how dwm treats mplayer.
Would you tell us? I don't see dwm treats mplayer separately. Just one rule to make it floating in config.def.h. -- Roman I. Cheplyaka (aka Feuerbach @ IRC)

Roman Cheplyaka
* Xiao-Yong Jin
[2008-02-01 17:25:13-0500] Roman Cheplyaka
writes: It seems to be one of the most frequently asked questions on the IRC, so I've just added it to FAQ[1]. As I wrote there, I don't see any way to automate this task with manageHook. Keeping an extra bit for each window (whether to draw borders) looks like overkill for, I guess, single program which needs it. Does anyone have ideas how to automate NoBorders in a simple way?
1. http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#I_don.27t_l...
I don't understand why xmonad cannot do the same thing as how dwm treats mplayer.
Would you tell us?
I don't see dwm treats mplayer separately. Just one rule to make it floating in config.def.h.
Have you tried it? It is not a separate treatment. The issue is that, in dwm, when the rule is applied, full screened mplayer, got by pressing `f', is _correctly_ positioned on the screen, borders _outside_ of the screen. On the contrary, what you can get from a floating full screened mplayer in xmonad is top and left borders on the edge of the screen and you need to move the mplayer window up and left 1 pixel manually to achieve what dwm does automatically. I'm no expert on window manager. Hope the above description is informative enough. -- c/* __o/* <\ * (__ */\ <

xj2106:
Roman Cheplyaka
writes: * Xiao-Yong Jin
[2008-02-01 17:25:13-0500] Roman Cheplyaka
writes: It seems to be one of the most frequently asked questions on the IRC, so I've just added it to FAQ[1]. As I wrote there, I don't see any way to automate this task with manageHook. Keeping an extra bit for each window (whether to draw borders) looks like overkill for, I guess, single program which needs it. Does anyone have ideas how to automate NoBorders in a simple way?
1. http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#I_don.27t_l...
I don't understand why xmonad cannot do the same thing as how dwm treats mplayer.
Would you tell us?
I don't see dwm treats mplayer separately. Just one rule to make it floating in config.def.h.
Have you tried it? It is not a separate treatment. The issue is that, in dwm, when the rule is applied, full screened mplayer, got by pressing `f', is _correctly_ positioned on the screen, borders _outside_ of the screen. On the contrary, what you can get from a floating full screened mplayer in xmonad is top and left borders on the edge of the screen and you need to move the mplayer window up and left 1 pixel manually to achieve what dwm does automatically.
I'm no expert on window manager. Hope the above description is informative enough.
Oh! How about we just have a manageHook that sets the desired geometry?

* Don Stewart
xj2106:
Roman Cheplyaka
writes: * Xiao-Yong Jin
[2008-02-01 17:25:13-0500] Roman Cheplyaka
writes: It seems to be one of the most frequently asked questions on the IRC, so I've just added it to FAQ[1]. As I wrote there, I don't see any way to automate this task with manageHook. Keeping an extra bit for each window (whether to draw borders) looks like overkill for, I guess, single program which needs it. Does anyone have ideas how to automate NoBorders in a simple way?
1. http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#I_don.27t_l...
I don't understand why xmonad cannot do the same thing as how dwm treats mplayer.
Would you tell us?
I don't see dwm treats mplayer separately. Just one rule to make it floating in config.def.h.
Have you tried it? It is not a separate treatment. The issue is that, in dwm, when the rule is applied, full screened mplayer, got by pressing `f', is _correctly_ positioned on the screen, borders _outside_ of the screen. On the contrary, what you can get from a floating full screened mplayer in xmonad is top and left borders on the edge of the screen and you need to move the mplayer window up and left 1 pixel manually to achieve what dwm does automatically.
I'm no expert on window manager. Hope the above description is informative enough.
Oh! How about we just have a manageHook that sets the desired geometry?
Any ideas on how to do it? I came to:
fullScreen :: Ord a => a -> S.StackSet i l a s sd -> S.StackSet i l a s sd fullScreen w s = s { S.floating = M.insert w (S.RationalRect 0 0 1 1) (S.floating s) } mplayerManageHook :: ManageHook mplayerManageHook = ask >>= doF . fullScreen
Firstly, it doesn't actually work with mplayer -- maybe due to sizehints? Secondly, though it works e.g. with rxvt, border is still there. It's not that easy to cheat with borders, I think. -- Roman I. Cheplyaka (aka Feuerbach @ IRC)

Don Stewart
xj2106:
Roman Cheplyaka
writes: * Xiao-Yong Jin
[2008-02-01 17:25:13-0500] Have you tried it? It is not a separate treatment. The issue is that, in dwm, when the rule is applied, full screened mplayer, got by pressing `f', is _correctly_ positioned on the screen, borders _outside_ of the screen. On the contrary, what you can get from a floating full screened mplayer in xmonad is top and left borders on the edge of the screen and you need to move the mplayer window up and left 1 pixel manually to achieve what dwm does automatically.
I'm no expert on window manager. Hope the above description is informative enough.
Oh! How about we just have a manageHook that sets the desired geometry?
A geometry that offsets the border? I played with the borders months ago, but it remains a mystery to me. Or it can be generalized to set more app specific properties. But I've no idea how to implement it. Xiao-Yong -- c/* __o/* <\ * (__ */\ <
participants (3)
-
Don Stewart
-
Roman Cheplyaka
-
Xiao-Yong Jin