
Thanks everyone for you replies!
I'm not exactly what you would call well versed in Haskell but with some
clues from above and some googling I think I managed to solve it with the
below change:
- , handleEventHook = ewmhDesktopsEventHook
+ , handleEventHook = ewmhDesktopsEventHook <+> fullscreenEventHook
Thomas
fre 22 jan. 2016 kl 16:03 skrev Bogdan Sinitsyn
On Friday, January 22, 2016 9:22:27 AM MSK you wrote:
On Fri, Jan 22, 2016 at 2:05 AM, Bogdan Sinitsyn < bogdan.sinitsyn@gmail.com> wrote:
If we remove the border before sending any full-screen message to layout, we don't need to adjust the position and size because layout will calculate window size after we remove border.
We are supposed to guess beforehand that a normal window that gets fullscreened (this is the case that requires the handleEventHook) needs its border removed? Or that we should do so after it is removed from the tile but before we receive the message telling us to remove it from the tile and fullscreen it?
I'm really not sure what window model you are using, but it doesn't seem to be X11's.
Event hook for full-screen windows already exists in X.L.Fullscreen. If we add removing and re-applying borders just before sending messages to layout in that hook(X.L.Fullscreen.fullscreenEventHook, it'll work fine.
-- Bogdan Sinitsyn _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad