Re: [dwm] Layers

From: Jeremy Jay <dinkumator_AT_gmail.com>
Date: Thu, 22 Jan 2009 16:47:25 -0500

sounds like this could be very easily done by re-ordering the clients
list, since the draw order determines the "layering" IIRC.

i don't feel like thinking that hard, so here's pseudocode:

togglelayers() {
  if( sel->isfloating ) {
          // for each client in clients
                  // if it is floating, move it to the end of clients

        } else { // notfloating
          // for each client in clients
                  // if it is floating, move it to the top of clients
                
        }
  // change sel to top of clients
}

Jeremy

On Thu 22 Jan 2009 - 10:25PM, Matthias-Christian Ott wrote:
> Hi,
> I can't remember if we talked about this some time ago. If so, I think
> we didn't come to a satisifying consensus, so I want to revive the
> discussion. But let me first of all introduce you to the problem.
>
> Dwm has by default a floating and a tiled layer that can have a different
> layout. Tiling or maximisation works fine for most clients (by the way,
> is there are reason why windows are called clients in dwm jargon?), some
> dialogs, popups or short-living windows require to be floating. Therefore
> dwm keeps these windows on an upper layer.
>
> While this makes sense for most applications, there are some (Gimp is
> as famous example for this) that are build around this WIMP concept and
> thus have to be floating in order to usable. But sometimes it makes sense
> to quickly hide them to access information hidden by them (for example
> I use the dictionary programme Ding when writing E-Mails in English).
>
> A common approach would be to dedicate a tag to them and switch
> via ALT+TAB back and forth. In my opinion this a bit cumbersome and
> non-intuitive. I rather expect to rotate the two layers like I can do
> with windows in monocle layout.
>
> Regards,
> Matthias-Christian
>
Received on Thu Jan 22 2009 - 21:47:25 UTC

This archive was generated by hypermail 2.2.0 : Thu Jan 22 2009 - 22:00:02 UTC