small problems with doFullFloat

Dear all, I love using xmonad and would like to thank the developers for this wonderful piece of software. It really added a lot to the usability of my computer! Three small issues that I have been living with for some time, but am wondering if others know how to solve: To make Youtube videos display in fullscreen, I googled and then appended this last line to my myManageHook: myManageHook = [ appName =? "Skype" --> doFloat, -- other lines with appName/className/title --> doFloat composeOne [ isFullscreen -?> doFullFloat ] ] [Am I doing this right?] Problem 1: This solution sort of worked: now the Firefox window expands after I click the "fullscreen" button on Youtube, but not as it should since the Youtube control bar stays halfway across the screen. [See attached screenshot.] It looks as if the control bar is being positioned "too early" while the window is still being maximized. That is the first problem. Problem 2: The second problem is that the moment I move focus away from this screen (I have two monitors) the full-screen video disappears. Eg, if I move my mouse to the second monitor to edit an email then the full-screen video disappears. If anyone can help me solve these two issues, I would be very grateful. I am using xmonad 0.9.1 on Ubuntu 10.04 and am attaching my xmonad.hs. Best, Lara

Lara,
There's no need to use composeOne (I think it may solve problem1)
myManageHook =
[ appName =? "Skype --> doFloat
, isFullscreen --> doFullFloat
]
I not sure, but I guess there's no pretty solution to problem2,
since it's a flash problem/feature, when it loses focus it closes itself.
Other apps behave normally, like a fullscreen presentation, etc.
Regards,
Henrique G. Abreu
On Tue, Jul 6, 2010 at 14:16, Lara Michaels
Dear all,
I love using xmonad and would like to thank the developers for this wonderful piece of software. It really added a lot to the usability of my computer!
Three small issues that I have been living with for some time, but am wondering if others know how to solve:
To make Youtube videos display in fullscreen, I googled and then appended this last line to my myManageHook:
myManageHook = [ appName =? "Skype" --> doFloat, -- other lines with appName/className/title --> doFloat composeOne [ isFullscreen -?> doFullFloat ] ]
[Am I doing this right?]
Problem 1: This solution sort of worked: now the Firefox window expands after I click the "fullscreen" button on Youtube, but not as it should since the Youtube control bar stays halfway across the screen. [See attached screenshot.] It looks as if the control bar is being positioned "too early" while the window is still being maximized. That is the first problem.
Problem 2: The second problem is that the moment I move focus away from this screen (I have two monitors) the full-screen video disappears. Eg, if I move my mouse to the second monitor to edit an email then the full-screen video disappears.
If anyone can help me solve these two issues, I would be very grateful. I am using xmonad 0.9.1 on Ubuntu 10.04 and am attaching my xmonad.hs.
Best, Lara
_______________________________________________ xmonad mailing list xmonad@haskell.orghttps://mail.google.com/mail?view=cm&tf=0&to=xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Excerpts from Lara Michaels's message of Tue Jul 06 11:16:35 -0600 2010:
Problem 2: The second problem is that the moment I move focus away from this screen (I have two monitors) the full-screen video disappears. Eg, if I move my mouse to the second monitor to edit an email then the full-screen video disappears.
Try isFullscreen --> doF W.focusDown <+> doFullFloat This seems to work for problem 2 for most users. I had the impression that the small-size mid-screen bar issue was a property of the player used by the site and flash version. At least it behaves that same way on certain sites for me using metacity too. Definitely could be wrong about that though. There's also fullscreen event hook in darcs Hooks.ManageHelpers you could try, but for me vlc and evince are the only apps I use that need it. regards, -- wmw

On Tue, Jul 6, 2010 at 15:13, Wirt Wolff
isFullscreen --> doF W.focusDown <+> doFullFloat
Nice workaround, don't give it the focus so it won't lose it when the mouse
leaves.
This will probably introduce another minor problems, but is still nice!
Like the Esc key will not close the window, since it does not have the
focus;
Also, if one uses X.H.FadeInactive the window will get faded out (which
could also be workarounded).
On Tue, Jul 6, 2010 at 15:13, Wirt Wolff
There's also fullscreen event hook in darcs Hooks.ManageHelpers you...
The fullscreen eventHook is in EwmhDesktops, not ManageHelpers :) Henrique G. Abreu
Problem 2: The second problem is that the moment I move focus away from this screen (I have two monitors) the full-screen video disappears. Eg, if I move my mouse to the second monitor to edit an email then the full-screen video disappears.
Try
This seems to work for problem 2 for most users. I had the impression that the small-size mid-screen bar issue was a property of the player used by the site and flash version. At least it behaves that same way on certain sites for me using metacity too. Definitely could be wrong about that though.
There's also fullscreen event hook in darcs Hooks.ManageHelpers you could try, but for me vlc and evince are the only apps I use that need it.
regards, -- wmw _______________________________________________ xmonad mailing list xmonad@haskell.orghttps://mail.google.com/mail?view=cm&tf=0&to=xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad
Excerpts from Lara Michaels's message of Tue Jul 06 11:16:35 -0600 2010:

On Tue, 2010/07/06 10:16:35 -0700, Lara Michaels wrote:
To make Youtube videos display in fullscreen
This doesn’t directly answer your questions, but it worked for me. I used to have problems watching YouTube videos fullscreen, but they all went away when I removed Flash and replaced it with Gnash, the open-source SWF player. The YouTube interface even looks nicer in Gnash than in Adobe Flash (I’m not sure exactly why, but the play button and text look somehow better). Also, I can close individual Flash objects, by right-clicking them and choosing Quit, to eliminate annoying animation on web pages. The only downside is that Gnash uses much more CPU time on my machine (I don’t know if that is a general Gnash problem, a Gnash compile-time configuration problem, or a misconfiguration in my X.org config or other graphics libraries). I don’t have full-screen windows set to automatically float, so when I click the full-screen button in YouTube, Gnash opens a tiled window that scales its contents to the size of the window. Flash used to scale the contents to the screen and only showed half of the video in a standard Tall layout. When I switch to Full layout the video goes full-screen; Flash immediately closed the window when I used Full. Escape works to return the window to the browser, as it did in Flash. Also, I can switch focus without the window closing, a problem I had in Flash. Mainly I switched away from Flash because Adobe stopped supporting 64-bit Linux. I had problems using the 32-bit wrapper, which is why I installed the 64-bit alpha in the first place. But now there are known vulnerabilities in the 64-bit version that will not be fixed.
participants (4)
-
Henrique G. Abreu
-
Lara Michaels
-
lithis
-
Wirt Wolff