[PATCH] xwayland: Avoid repeatedly looping through window ancestor chain

Adam Jackson ajax at nwnk.net
Wed Sep 13 15:52:14 UTC 2017


On Tue, 2017-08-22 at 15:38 +0200, Roman Gilg wrote:
> Calling xwl_window_from_window means looping through the window ancestor
> chain whenever it is called on a child window or on an automatically
> redirected window.
> 
> Since these properties and the potential ancestor's xwl_window are constant
> between window realization and unrealization, we can omit the looping by
> always putting the respective xwl_window in the Window's private field on
> its realization. If the Window doesn't feature an xwl_window on its own,
> it's the xwl_window of its first ancestor with one.
> 
> Signed-off-by: Roman Gilg <subdiff at gmail.com>

remote: I: patch #172927 updated using rev 82df2ce38c560915f8c6574052bd56215b649072.
remote: I: 1 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/xorg/xserver
   1089d5d518..82df2ce38c  master -> master

- ajax


More information about the xorg-devel mailing list