ee8cc0c06b
* fix(linux): prevent X11 BadWindow crash in get_focused_display When the active window is destroyed between xdo_get_active_window and xdo_get_window_location/xdo_get_window_size calls, the default X11 error handler terminates the process with a BadWindow error. This causes the rustdesk --server process to crash and the remote session to disconnect and reconnect every time the user closes a window. Install a custom X error handler around the xdo calls that catches BadWindow errors and returns gracefully instead of crashing. Fixes: https://github.com/rustdesk/rustdesk/issues/9003 Co-Authored-By: Claude (claude-opus-4-6) <noreply@anthropic.com> Signed-off-by: easonysliu <easonysliu@tencent.com> * fix(linux): prevent BadWindow crash in focus display lookup Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: easonysliu <easonysliu@tencent.com> Signed-off-by: fufesou <linlong1266@gmail.com> Co-authored-by: easonysliu <easonysliu@tencent.com> Co-authored-by: Claude (claude-opus-4-6) <noreply@anthropic.com> Co-authored-by: fufesou <linlong1266@gmail.com>