On Wed, 20 Apr 2011, Thomas Adam wrote:

> On 20 April 2011 06:24, Daniel Barkalow <[email protected]> wrote:
> > Due to my laptop developing a flaky panel connector, I recently got an
> > external monitor for it. Switching outputs works great (with xrandr), but
> > now I've got two outputs with different native resolutions, and I'd like
> > to get fvwm to handle this nicely.
> 
> lib/FScreen.h has always had skeleton code to handle XRandr support.

The code there is a bit too skeletal for me to follow; in particular, I 
think there needs to either be something that updates Scr as well or a lot 
more code needs to find out the edges from FScreen instead of Scr.

> > The first thing is that X will now send a ConfigureEvent for the root
> > window of the screen when the size of the screen changes. I wrote up the
> > obvious patch to update Scr and screens[0] in FScreen, and it seems to
> > work. I'm not sure if there's anything more that needs to be done in fvwm
> > to deal with the size of the Screen changing; it seems like the effects
> > are at worst annoying (Windows off of the Screen because it shrank,
> > windows placed relative to the right and bottom not moving) and
> > nothing is relying on the screen size not to change from one X event to
> > another, but I'm sure I'm not testing everything. Are there tricky things
> > I might miss in this area?
> 
> Yes, it's not the whole story -- it's not enough to react to the
> ConfigureNotify events.  Just let FVWM react to XRandr proper; see
> above.
>
> I ought to resurrect my patches to do this, it was very easy and
> worked for me at the time.

I'd like to try them out.

        -Daniel
*This .sig left intentionally blank*

Reply via email to