You are not logged in.

#1 2012-03-31 05:06:03

lifesgood
Member
Registered: 2012-03-28
Posts: 3

Tiling window manager - fullscreen inside window

Hi, I have used xmonad for some time now and I can not figure out a way to implement my preferred fullscreen behavior. I would like to be able to watch a video stream or flash video in one window, such that the video is using the full window, i.e. the video is fullscreen inside a window.

I started to begin to look at other tiling window managers, but haven't found one, which allows this kind of behavior. Does anybody know a wm in which this is easy to implement (or how to implement it in xmonad, i am generally very happy with it)? Thanks for any ideas, suggestions, etc.

Offline

#2 2012-03-31 06:54:11

qrl
Member
Registered: 2011-12-17
Posts: 2

Re: Tiling window manager - fullscreen inside window

Are you trying to achieve something like this?
I don't think a WM can do this for you, it must be done application-side.
For the screenshot, I switched VLC to minimal mode with [Ctrl-H], but using mplayer or cvlc would have worked as well.
Sometimes, switching an application to fullscreen inside the application and then toggling fullscreen-mode inside the WM
can also have the desired effect. (I'm using i3, so this might not work with xmonad)

Offline

#3 2012-03-31 08:24:32

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Tiling window manager - fullscreen inside window

WM Can do it by ignoring the the _NET_WM_FULLSCREEN atom, or removing it. You could in example just add return inside setfullscreen function in monsterwm, then fullscreen windows are ignored.

Last edited by Cloudef (2012-04-01 10:27:14)

Offline

#4 2012-03-31 11:46:45

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,557
Website

Re: Tiling window manager - fullscreen inside window

This is the result I get by default in xmonad.  If an application tries to play a video fullscreen it is just gets it's own tiled window that it fills ... as long as I am in a tiling mode.  For example, if I go to youtube, and hit the fullscreen button, the video opens in a new tiled window filling that window.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-03-31 19:03:06

lifesgood
Member
Registered: 2012-03-28
Posts: 3

Re: Tiling window manager - fullscreen inside window

thanks for the replies

@qrl: yes, that is what I want to achieve, specifically to have a new window besides this; it works for me in vlc as well, but does not with the fullscreen mode of stream and flash movies

@cloudef: that might be exactly what I wanted, I have to look into that

@ trilby: i think it was the default behavior in earlier versions of xmonad, at least according to this post http://comments.gmane.org/gmane.comp.gnome.wm-spec/1497 . In my xmonad, the size of the fullscreen is bigger than the window size, but otherwise the behavior you described.

Offline

#6 2012-03-31 20:33:50

lifesgood
Member
Registered: 2012-03-28
Posts: 3

Re: Tiling window manager - fullscreen inside window

I looked into how to disable the _NET_WM_STATE_FULLSCREEN in i3, but didn't really succeed. Do I need to change it in the source code and recompile it?

Offline

#7 2012-04-01 10:36:00

Cloudef
Member
Registered: 2010-10-12
Posts: 636

Re: Tiling window manager - fullscreen inside window

Yes. I looked at the source and there is two ways you can do it. Either disable the event handling for WM_STATE atoms by commenting out

xcb_event_set_client_message_handler(&evenths, handle_client_message, NULL);

in mainx.c

Or add return to the event handler function so you can hack it to be more flexible later.
The event handler is in handlers.c the function handle_client_message.

Offline

Board footer

Powered by FluxBB