mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
mir: fix compile-time warnings
This commit is contained in:
parent
0b7542bad1
commit
57a11ca28d
@ -127,6 +127,7 @@ _gdk_mir_print_touch_event (const MirInputEvent *event)
|
||||
}
|
||||
switch (mir_touch_event_tooltype (touch_event, i))
|
||||
{
|
||||
default:
|
||||
case mir_touch_tooltype_unknown:
|
||||
g_printerr (" ? ");
|
||||
break;
|
||||
@ -199,6 +200,12 @@ _gdk_mir_print_motion_event (const MirInputEvent *event)
|
||||
g_printerr (" Event Time %lli\n", (long long int) mir_input_event_get_event_time (event));
|
||||
}
|
||||
|
||||
static void
|
||||
_gdk_mir_print_input_event (const MirInputEvent *event)
|
||||
{
|
||||
g_printerr ("INPUT\n");
|
||||
}
|
||||
|
||||
static void
|
||||
_gdk_mir_print_surface_event (const MirSurfaceEvent *event)
|
||||
{
|
||||
@ -260,6 +267,9 @@ _gdk_mir_print_event (const MirEvent *event)
|
||||
case mir_input_event_type_pointer:
|
||||
_gdk_mir_print_motion_event (mir_event_get_input_event (event));
|
||||
break;
|
||||
default:
|
||||
_gdk_mir_print_input_event (mir_event_get_input_event (event));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case mir_event_type_key:
|
||||
|
@ -571,6 +571,8 @@ gdk_mir_event_source_queue_event (GdkDisplay *display,
|
||||
case mir_input_event_type_pointer:
|
||||
handle_motion_event (window, input_event);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -280,6 +280,10 @@ gdk_mir_screen_get_monitor_plug_name (GdkScreen *screen,
|
||||
return g_strdup_printf ("eDP-%u", output->output_id);
|
||||
case mir_display_output_type_virtual:
|
||||
return g_strdup_printf ("Virtual-%u", output->output_id);
|
||||
case mir_display_output_type_dsi:
|
||||
return g_strdup_printf ("DSI-%u", output->output_id);
|
||||
case mir_display_output_type_dpi:
|
||||
return g_strdup_printf ("DPI-%u", output->output_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user