mir: don't create GDK_INPUT_ONLY windows
This commit is contained in:
parent
41d3f99e44
commit
e63d4111a4
@ -552,6 +552,9 @@ ensure_mir_window_full (GdkWindow *window,
|
||||
GdkMirWindowReference *window_ref;
|
||||
MirWindowSpec *spec;
|
||||
|
||||
if (window->input_only)
|
||||
return;
|
||||
|
||||
if (impl->mir_window)
|
||||
{
|
||||
if (impl->pending_spec_update)
|
||||
@ -641,6 +644,7 @@ send_buffer (GdkWindow *window)
|
||||
GdkMirWindowImpl *impl = GDK_MIR_WINDOW_IMPL (window->impl);
|
||||
|
||||
/* Send the completed buffer to Mir */
|
||||
if (impl->mir_window)
|
||||
mir_buffer_stream_swap_buffers_sync (mir_window_get_buffer_stream (impl->mir_window));
|
||||
|
||||
/* The Cairo context is no longer valid */
|
||||
@ -668,6 +672,9 @@ gdk_mir_window_impl_ref_cairo_surface (GdkWindow *window)
|
||||
|
||||
ensure_mir_window (window);
|
||||
|
||||
if (!impl->mir_window)
|
||||
return NULL;
|
||||
|
||||
if (window->gl_paint_context)
|
||||
{
|
||||
cairo_surface = cairo_image_surface_create (pixel_format, window->width, window->height);
|
||||
|
Loading…
Reference in New Issue
Block a user