Google
  Web www.spinics.net

Re: Odd behavior with damage events and override-redirect windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Jess VanDerwalker <washu@xxxxxxxxx> writes:

> This works correctly for non-override redirect windows. But something
> odd occurs with window flagged as override redirect. In that case, the
> coordinates for the window are root relative, not window relative. As
> an example, if the override redirect window is mapped with x=10, y=10,
> width=100, height=100 the first damage event (which is a complete
> drawing of the window) would report a damage area of x=10, y=10,
> width=100, height=100.

I'll bet the damage is somehow computed before the window is redirected
by Composite. Damage has this mode where it saves regions from *before*
an action, and then reports them *after* an action. If that action
redirects the window, the region is probably left relative to the old
window state.

Non override-redirect windows wouldn't get this as they go through a
very different path due to the window manager interaction.

-- 
keith.packard@xxxxxxxxx

Attachment: pgpj_aRH0MADg.pgp
Description: PGP signature

_______________________________________________
xorg@xxxxxxxxxxx: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: list-xorg@xxxxxxxxxxx

[X Forum]     [Nouveau Driver]     [Devices]     [XFree86]     [XFree86 Newbie]     [Site Home]     [IETF Annouce]     [Security]     [Fontconfig]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Video for Linux]     [Linux RAID]     [Linux Resources]

Powered by Linux