Re: [RFC] _NET_WORKAREA and Xinerama



Havoc Pennington <hp redhat com> writes:

> So once you have your contiguous region, possible window positions and
> sizes are those that are inside this region. Maybe there is a
> reasonable way to compute that.

Note that you don't want a window to skip over a solid area during
drag:

  ###############################################################
  -------------------------|######|------------------------------
                           |######|
      +--------------+     |######|        ................
      |              |     |######|        .              .
      |   A          |     |######|        .   B          .
      |              |     +------+        .              .
      |              |                     .              .
      |              |                     .              .
      |              |                     .              .
      +--------------+                     ................


In the situation above you shouldn't be able to drag a window from
postion A to position B even though both positions are legal.

Maybe this could be computed by computing the line of window
rectangles between the two positions, and if they are all inside the
non-strut-covered region, the drag is allowed, otherwise it isn't.


Søren



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]