I've managed to get YouTube Flash videos fullscreen by using two tips, but whenever I move the mouse pointer to a different screen (thereby changing the application focus) the fullscreen mode is canceled. Is there some way to ensure that only application focus changes on the same screen cancels the fullscreen mode?

  • 1
    No as this is a security feature of flash - see superuser.com/questions/16055/… for a possible workaround Commented Mar 16, 2013 at 14:17
  • In the last few days, this appears to have stopped happening (disclaimer: I use dwm, not awesome). I use Flash 11.7.700.203 through Pepper. I just hope that it stays this way -- please let me know if the latest unstable version works for you.
    – Chris Down
    Commented May 27, 2013 at 12:33

2 Answers 2


Adding the following rule to your rc.lua config file (in ~/.config/awesome/) should fix the problem:

{ rule = { instance = "plugin-container" },
  properties = { floating = true,
                 focus = yes } },

It keeps the focus on the flash plugin, so the full screen mode is never canceled (until you press Esc).

  • 1
    Doesn't work for me.
    – l0b0
    Commented Dec 19, 2013 at 23:08
  • 2
    Also use: christianiversen.dk/2013/07/…
    – ehuang
    Commented Nov 15, 2014 at 18:48
  • 1
    Great, works for me with sudo sed -i -re s/_NET_ACTIVE_WINDOW/XNET_ACTIVE_WINDOW/ $(locate libflashplayer.so), derived from the link by @ehuang. Replace $(locate libflashplayer.so) by the location of your libflashplayer.so if you don't have locate installed.
    – exic
    Commented Feb 9, 2015 at 19:45

I don't have a solution to the flash problem, but here's a workaround. The following snippet maps to mod-v and starts the highlighted URL (the X PRIMARY selection) in VLC.

globalkeys = awful.util.table.join(globalkeys,
  awful.key({ modkey }, "v",
    function ()
      awful.util.spawn_with_shell('vlc $(xclip -o)')

This method can be combined with the cclive tool, which downloads videos from popular sites (also works by highlighting the URL0 and plays them back in VLC or a player of choice.

  • How is this a workaround?
    – user3356
    Commented Mar 26, 2013 at 4:32
  • @g33kz0r It's a workaround since it solves half of the problem: After focusing a different application on the other screen the video is still playing fullscreen.
    – l0b0
    Commented Mar 27, 2013 at 15:20
  • @l0b0 That's how VLC works and I like it that way. You press f to enter fullscreen and f again to exit fullscreen. Why should it leave fullscreen just because I focus another application? It could be an option, though.
    – Marco
    Commented Mar 27, 2013 at 15:33
  • But this only applies to direct links to videos, right? I thought this question was about videos embedded in browsers a la YouTube?
    – user3356
    Commented Mar 27, 2013 at 16:21
  • @g33kz0r Did you try to open VLC, press ctrl-n and paste a YouTube URL? That's exactly what this snippet does. (The old version before the edit even skipped the copy-paste step and opened the current video in VLC immediately.)
    – Marco
    Commented Mar 27, 2013 at 16:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .