Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/backends/meta-cursor-renderer.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,6 @@ meta_cursor_renderer_set_position (MetaCursorRenderer *renderer,
{
MetaCursorRendererPrivate *priv = meta_cursor_renderer_get_instance_private (renderer);

g_assert (meta_is_wayland_compositor ());

priv->current_x = x;
priv->current_y = y;

Expand Down
2 changes: 0 additions & 2 deletions src/backends/meta-cursor-tracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,6 @@ meta_cursor_tracker_update_position (MetaCursorTracker *tracker,
MetaCursorRenderer *cursor_renderer =
meta_backend_get_cursor_renderer (backend);

g_assert (meta_is_wayland_compositor ());

meta_cursor_renderer_set_position (cursor_renderer, new_x, new_y);

g_signal_emit (tracker, signals[CURSOR_MOVED], 0, new_x, new_y);
Expand Down
8 changes: 8 additions & 0 deletions src/backends/meta-stage.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,14 @@ meta_stage_paint_view (ClutterStage *stage,
notify_watchers_for_mode (meta_stage, view, NULL,
META_STAGE_WATCH_BEFORE_PAINT);

{
CoglFramebuffer *framebuffer = clutter_stage_view_get_framebuffer (view);

if (framebuffer && !cogl_is_onscreen (framebuffer))
cogl_framebuffer_clear4f (framebuffer, COGL_BUFFER_BIT_COLOR,
0.0f, 0.0f, 0.0f, 1.0f);
}

CLUTTER_STAGE_CLASS (meta_stage_parent_class)->paint_view (stage, view,
redraw_clip);

Expand Down
4 changes: 4 additions & 0 deletions src/backends/x11/meta-backend-x11.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,10 @@ Window
meta_backend_x11_get_xwindow (MetaBackendX11 *x11)
{
ClutterActor *stage = meta_backend_get_stage (META_BACKEND (x11));

if (!stage || !CLUTTER_IS_STAGE (stage))
return None;

return meta_x11_get_stage_window (CLUTTER_STAGE (stage));
}

Expand Down
6 changes: 4 additions & 2 deletions src/core/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,8 @@

display->sound_player = g_object_new (META_TYPE_SOUND_PLAYER, NULL);

meta_input_settings_refresh (meta_backend_get_input_settings (backend));
if (meta_backend_get_input_settings (backend))
meta_input_settings_refresh (meta_backend_get_input_settings (backend));

/* Done opening new display */
display->display_opening = FALSE;
Expand Down Expand Up @@ -1602,7 +1603,7 @@
}

/* We return a pointer into a ring of static buffers. This is to make
* using this function for debug-logging convenient and avoid tempory

Check failure on line 1606 in src/core/display.c

View workflow job for this annotation

GitHub Actions / build / build (mint22, linuxmintd/mint22.3-amd64, Mint 22, true) / Mint 22

tempory ==> temporary
* strings that must be freed. */
const char *
meta_display_describe_stack_id (MetaDisplay *display,
Expand Down Expand Up @@ -2272,7 +2273,7 @@
/**
* meta_display_pong_for_serial:
* @display: the display we got the pong from
* @serial: the serial in the pong repsonse

Check failure on line 2276 in src/core/display.c

View workflow job for this annotation

GitHub Actions / build / build (mint22, linuxmintd/mint22.3-amd64, Mint 22, true) / Mint 22

repsonse ==> response
*
* Process the pong (the response message) from the ping we sent
* to the window. This involves removing the timeout, calling the
Expand Down Expand Up @@ -3061,7 +3062,8 @@

/* First, lookup the action, as imposed by settings */
settings = meta_backend_get_input_settings (meta_get_backend ());
label = meta_input_settings_get_pad_action_label (settings, pad, action_type, action_number);
if (settings)
label = meta_input_settings_get_pad_action_label (settings, pad, action_type, action_number);
if (label)
return label;

Expand Down
1 change: 1 addition & 0 deletions src/core/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ meta_display_handle_event (MetaDisplay *display,
handle_pad_event = !display->current_pad_osd || is_mode_switch;

if (handle_pad_event &&
meta_backend_get_input_settings (backend) &&
meta_input_settings_handle_pad_event (meta_backend_get_input_settings (backend),
event))
{
Expand Down
Loading