Comment 3 for bug 782087

Revision history for this message
Walther (walther-md) wrote :

All right, I think I have fixed this issue in the attached patch.

I did what xrandr does:
1. Go through active crtcs and disable those whose "active, current configuration" would not match the new calculated dimensions.
2. Invoke set_size
3. Go through crtcs and apply changes to any which have been tagged as modified.

And now the _NET_WORKAREA is properly updated when changing resolutions. I would like to have some more testing done here, such as support for rotations, but it seems disper doesn't support rotation at all yet, so there appears to be little that can be tested.