Skip to content
Commit 57cf0998 authored by Xuetian Weng's avatar Xuetian Weng Committed by Xuetian Weng
Browse files

Auto cleanup the dangling KWayland::Client::Surface returned from fromWindow

Clean up the Surface object returned from fromWindow if the internal
wl_surface object is destroyed. Otherwise it will stay there until the
QWindow is destroyed.

While we change the behavior of this object, it should generally be fine,
because the internal wl_surface pointer won't be valid and cause crash already
if the invalid wl_surface is referenced. Grepping through the existing code
base in KDE also seems to be ok to make this change.
parent 7da9f074
Pipeline #215080 passed with stage
in 4 minutes and 1 second
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment