Re: [dwm] ImageMagick & display(1)

From: Anselm R. Garbe <arg_AT_10kloc.org>
Date: Wed, 16 Aug 2006 17:59:59 +0200

On Wed, Aug 16, 2006 at 05:38:25PM +0200, Sander van Dijk wrote:
> On 8/16/06, Anselm R. Garbe <arg_AT_10kloc.org> wrote:
> >
> >I fixed this for floating clients now, they will be centralized
> >to its transient resp. to the root window.
>
> Good idea, there's one cornercase though: new windows should never be
> allowed to appear off-screen, and the current algorithm does not take
> that into account. If, for instance, you start firefox, move it
> off-screen to the bottom right so that only "File" is still visible,
> and then select "Save Page As" from the menu, you get stuck in a
> pretty nasty situation... (especially since it's a transient window,
> so it will stay floating (and hence off-screen) even after switching
> modes).

I fixed the cornercase as follows in hg tip: if the transient
window is totally offscreen (nothing visible on the screen) it
will be centered to the root window, otherwise it will be
centered to the transient_for window (in your case firefox),
even if some portions might not cover the screen.

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Wed Aug 16 2006 - 17:59:59 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:11 UTC