-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On Fri, Nov 18, 2016 at 03:52:25PM +0100, yaqu wrote: > On Sun, 13 Nov 2016 22:23:08 +0100, Marek Marczykowski-Górecki > <marma...@invisiblethingslab.com> wrote: > > > > Thanks, executing qubes-monitor-layout-notify works as a workaround > > > - it is much cleaner solution than hack with switching displays off > > > and on :) > > > > Actually this tool is called automatically when monitor layout is > > changed (see watch-screen-layout-changes process). The problem is a > > race condition - it is called before new configuration is actually > > applied, so it sends the old configuration again... I haven't found > > yet any way to receive notification _after_ new configuration is > > applied. Any idea? > > Monitoring relevant X Window events with xev in dom0: > > $ xev -root -event randr -event structure > > and changing display settings, shows that after increasing resolution > XRROutputChangeNotifyEvent is not sent (only RRScreenChangeNotify, > XRRCrtcChangeNotifyEvent and ConfigureNotify), at least on my machine > (R3.2, Intel gfx and Xfce). > > Watch-screen-layout-changes monitors only OutputChange events, and > that's why it doesn't detect change and doesn't execute > qubes-monitor-layout-notify. > > I think it would be better to monitor RRScreenChangeNotify event, as it > is always sent after changing display settings and it's supported in any > randr version (no need to use ConfigureNotify). > > I have prepared a fix and a pull request.
Thanks, this indeed looks like a good idea. - -- Best Regards, Marek Marczykowski-Górecki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJYLzxCAAoJENuP0xzK19csvK8H/ig2+Sx0ZQlVlSMrNuJmHD2y faZF4PcIRBjmqLgKCtXqH5vAR6HLTqjdiCepGtF83KOGhujTpSv0EMPfIOlMg6cp FYL52oOe2e4iKZLjBo3nk6KwjmWVChvyCp96xIUVpCAeGn6yoxFmfluzRrNDrLvf syBA17JQlFzEn7KMq7O95VVv4vi+rMcstNpw+ChzZGT/M7xrQPNrAcwVgghrt3XH 7XpmpSwiqpnZNWwjA2BLVNgz+gLF63MNkrdpJoMjEuXp949HlXN4Q5ch3oBE1tAz eJq5wef0xTtSGNS5GO9Zv5JYwT16RqANk3Ln19pzliPpX2VbJSdjR4XJoxLyteA= =FB2U -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to email@example.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20161118173706.GT1145%40mail-itl. For more options, visit https://groups.google.com/d/optout.