[xmonad] Problem with smartBorders, multiple screens, and fullscreen windows
Hans Chen
hanswchen at gmail.com
Sat Dec 1 03:00:14 CET 2012
Thanks for your replies!
1. Here's a sample xmonad.hs: http://pastebin.com/FTFahY9T
Note that I have copied /usr/share/xmonad-0.10/man/xmonad.hs and just added
smartBorders to myLayout (and imported XMonad.Layout.NoBorders).
2. More detailed reproduce steps:
- Run "mplayer /path/to/video/file" in a terminal on [screen 1]. A floating
mplayer window should show up on [screen 1].
- Press "f" key to make mplayer fullscreen.
- Move focus to [screen 2], e.g. with mod-e.
- Switch to a hidden workspace on [screen 2], i.e., a workspace not shown
in [screen 1] or [screen 2] (or other screens you may have).
- Notice how mplayer on [screen 1] seems to "freeze".
This only happens when using the fullscreen feature provided by
applications - if I use the Full layout in xmonad, it works as expected
(however there are other issues, e.g. it doesn't work with floating
windows, and mplayer windows become stretched).
mplayer seems to set the following MOTIF_WM_HINTS when it's fullscreen:
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x0, 0x0, 0x0, 0x0
I use vo="xv", zoom="yes", and double="yes".
virtualbox sets _NET_WM_STATE(ATOM) = _NET_WM_STATE_FULLSCREEN, and changes
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0 (tiled) to
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x3, 0x0, 0x0, 0x0 (fullscreen)
Hope that helps,
Hans
On Thu, Nov 29, 2012 at 3:38 AM, Brandon Allbery <allbery.b at gmail.com>wrote:
> On Wed, Nov 28, 2012 at 9:17 PM, <wagnerdm at seas.upenn.edu> wrote:
>
>> 2. give very, very specific instructions, like, down to exactly what keys
>> to press (for example, what does "make a window fullscreen" mean? I can
>> think of half a dozen things to do in xmonad that might reasonably be
>> called making a window fullscreen, and probably only one of them triggers
>> your problem)
>>
>
> You also don't say which fullscreen mechanism you have in your xmonad.hs;
> the default doesn't support fullscreen except by the application
> specifically opening a fullscreen (by its determination) floating window,
> and there are at least three different ways to add fullscreen support in
> contrib.
>
> Also note that all three of your examples are special cases that can be
> quite fragile; it's not at all unusual for mplayer or flash to decide to do
> something stupid on loss of focus of a fullscreened window (or sometimes
> even a non-fullscreen window; and something different depending on which
> mplayer video driver you use or whether flash is using hardware
> acceleration or not: note that the very first thing most "flash doesn't
> work right fullscreened" help guides tell you to do is turn off its
> hardware acceleration), and virtualbox's video drivers are in my experience
> quite unreliable and oddly behaved.
>
> --
> brandon s allbery kf8nh sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20121201/98eb1561/attachment.htm>
More information about the xmonad
mailing list