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@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> |
||
---|---|---|
.. | ||
.gitignore | ||
drm.xml | ||
Makefile.am | ||
meson.build | ||
xwayland-cursor.c | ||
xwayland-cvt.c | ||
xwayland-glamor-xv.c | ||
xwayland-glamor.c | ||
xwayland-input.c | ||
xwayland-output.c | ||
xwayland-shm.c | ||
xwayland-vidmode.c | ||
xwayland.c | ||
xwayland.h |