[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmonad
Subject:    Re: [xmonad] Problem with smartBorders, multiple screens, and fullscreen windows
From:       Hans Chen <hanswchen () gmail ! com>
Date:       2012-12-01 2:00:14
Message-ID: CAFfzviC8YCS8jKAs-tVFKyDZXbJ0PFT5Wow7EjyemPGQWwSHLw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


 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@gmail.com>wrote:

> On Wed, Nov 28, 2012 at 9:17 PM, <wagnerdm@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@gmail.com
> ballbery@sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
>

[Attachment #5 (text/html)]

 Thanks for your replies!<br><br>1. Here&#39;s a sample xmonad.hs: <a \
href="http://pastebin.com/FTFahY9T">http://pastebin.com/FTFahY9T</a><br>Note that I \
have copied /usr/share/xmonad-0.10/man/xmonad.hs and just added smartBorders to \
myLayout (and imported XMonad<span class="sy0">.</span>Layout<span \
class="sy0">.</span>NoBorders).<br>

<br>2. More detailed reproduce steps:<br>- Run &quot;mplayer \
/path/to/video/file&quot; in a terminal on [screen 1]. A floating mplayer window \
should show up on [screen 1].<br>- Press &quot;f&quot; key to make mplayer \
fullscreen.<br>

- Move focus to [screen 2], e.g. with mod-e.<br>- 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).<br>- Notice how mplayer on [screen 1] seems to &quot;freeze&quot;.<br>

<br>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&#39;t work with floating windows, and mplayer windows become \
stretched).<br>

<br>mplayer seems to set the following MOTIF_WM_HINTS when it&#39;s fullscreen: \
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x0, 0x0, 0x0, 0x0<br>I use \
vo=&quot;xv&quot;, zoom=&quot;yes&quot;, and double=&quot;yes&quot;.<br> <br>
virtualbox sets _NET_WM_STATE(ATOM) = _NET_WM_STATE_FULLSCREEN, and \
changes<br>_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0 (tiled) \
to<br>_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x3, 0x0, 0x0, 0x0 (fullscreen)<br>

<br>Hope that helps,<br>Hans<br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at \
3:38 AM, Brandon Allbery <span dir="ltr">&lt;<a href="mailto:allbery.b@gmail.com" \
target="_blank">allbery.b@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div class="im">On Wed, Nov 28, 2012 at 9:17 \
PM,  <span dir="ltr">&lt;<a href="mailto:wagnerdm@seas.upenn.edu" \
target="_blank">wagnerdm@seas.upenn.edu</a>&gt;</span> wrote:<br>

</div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> 2. give very, \
very specific instructions, like, down to exactly what keys to press (for example, \
what does &quot;make a window fullscreen&quot; 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)<br>


</blockquote><div><br></div></div><div>You also don&#39;t say which fullscreen \
mechanism you have in your xmonad.hs; the default doesn&#39;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.</div>


<div><br></div><div>Also note that all three of your examples are special cases that \
can be quite fragile; it&#39;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 &quot;flash doesn&#39;t work right fullscreened&quot; help \
guides tell you to do is turn off its hardware acceleration), and virtualbox&#39;s \
video drivers are in my experience quite unreliable and oddly behaved.</div>

<span class="HOEnZb"><font color="#888888">
<div><br></div></font></span></div><span class="HOEnZb"><font color="#888888">-- \
<br><div dir="ltr"><div>brandon s allbery kf8nh                               sine \
nomine associates</div><div><a href="mailto:allbery.b@gmail.com" \
target="_blank">allbery.b@gmail.com</a>                                  <a \
href="mailto:ballbery@sinenomine.net" \
target="_blank">ballbery@sinenomine.net</a></div>


<div>unix, openafs, kerberos, infrastructure, xmonad        <a \
href="http://sinenomine.net" \
target="_blank">http://sinenomine.net</a></div></div><br> </font></span></div>
</blockquote></div><br>



_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://www.haskell.org/mailman/listinfo/xmonad


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic