Re: [dev] [dwm] floating window if fullscreen

From: TJ Robotham <tj.robotham_AT_gmail.com>
Date: Mon, 24 Jan 2011 20:23:40 -0500

On Tue, Jan 25, 2011 at 01:14:17AM +0000, Nick wrote:
> I like using fullscreen mplayer, and being able to switch between
> different windows in monocle mode. However, if mplayer is set to
> fullscreen (-fs), when I use the next/previous window key commands,
> mplayer stays shown (though the keyboard focus does move). I don't
> know if this is due to the mplayer window deciding it should float
> (there are no such rules set up in my config.h). If I set no
> fullscreen (-nofs) the problem disappears, providing the dimensions
> of the window are less than my screen, otherwise the same thing
> happens.
>
> I could set nofullscreen and x & y to a few pixels less than my
> screen size in the mplayer config, but that is a little unclean, and
> I'd really like to understand what's going on.

Basically, when a client is first created dwm checks to see if its dimensions
are the same as that of the monitor it's on. If so then the window is set to
floating. This logic appears after applying any rules, a rule explicitly
setting the window to be non-floating will be overriden by this behaviour.
(I'm presuming that this is in order to respect fullscreen programs even when
in a different layout.) If you have no use for this, then you can always
remove it from your version (look in the function manage).
Received on Tue Jan 25 2011 - 02:23:40 CET

This archive was generated by hypermail 2.2.0 : Tue Jan 25 2011 - 02:36:01 CET