Resolution revert on application crash

Alan Coopersmith alan.coopersmith at oracle.com
Thu Jul 29 10:02:53 PDT 2010


Luke Benstead wrote:
> Hi all,
> 
> I did bring this issue up for discussion about a year ago here:
> http://www.mail-archive.com/xorg-devel@lists.x.org/msg00832.html
> 
> But that thread sort of died, and this is still an issue. There is a bug
> report for it here: https://bugs.freedesktop.org/show_bug.cgi?id=14255
> 
> I've been trying to work out where the issue lies, well more
> specifically where it should be fixed. I've just had a chat to a Compiz
> dev and he thinks that if an application crashes it should be up to the
> xserver to restore the resolution. If a fullscreen program loses focus,
> then I think it's probably the WM's job of restoring the resolution there.
> 
> Does anyone have any thoughts on how this should all be tied together?
> Does the xserver have enough information to restore the resolution if an
> application crashes? If so, is it a trivial thing to implement?

As far as the X server knows, all resolution changes are intended to be
permanent configuration changes, not temporary for the life of a certain
app which just happens to be displaying a window the same size as the
screen resolution.   There's nothing for it to "restore".

To do what you want I believe you'd have to update the RandR extension to
somehow capture intent - perhaps a new request to specify that any
resolution changes requested by this client only be applied when the
client has focus.

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list