remote-desktop/virtual: Drop absolute events if not active
If the remote desktop service emits absolute input events (e.g. absolute pointer events) before the stream has started streaming, we don't have a virtual monitor, as the size has not been negotiated yet. When this happens, just drop the event. Remote desktop services should probably make sure not to send events before the streaming has started, but them doing so anyway shouldn't trigger a crash, which would be the case otherwise. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2270>
This commit is contained in:
@ -678,7 +678,7 @@ meta_screen_cast_stream_src_maybe_record_frame (MetaScreenCastStreamSrc *src,
|
||||
pw_stream_queue_buffer (priv->pipewire_stream, buffer);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
gboolean
|
||||
meta_screen_cast_stream_src_is_enabled (MetaScreenCastStreamSrc *src)
|
||||
{
|
||||
MetaScreenCastStreamSrcPrivate *priv =
|
||||
|
Reference in New Issue
Block a user