mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
backends/native: Replace tabs with spaces
Replace the few remaining places where tabs are used for indentation with spaces. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1065
This commit is contained in:
parent
e07478f8bc
commit
7cc02cf24e
@ -1284,10 +1284,10 @@ meta_input_device_native_class_init (MetaInputDeviceNativeClass *klass)
|
||||
|
||||
obj_props[PROP_DEVICE_MATRIX] =
|
||||
g_param_spec_boxed ("device-matrix",
|
||||
"Device input matrix",
|
||||
"Device input matrix",
|
||||
CAIRO_GOBJECT_TYPE_MATRIX,
|
||||
CLUTTER_PARAM_READWRITE);
|
||||
"Device input matrix",
|
||||
"Device input matrix",
|
||||
CAIRO_GOBJECT_TYPE_MATRIX,
|
||||
CLUTTER_PARAM_READWRITE);
|
||||
obj_props[PROP_OUTPUT_ASPECT_RATIO] =
|
||||
g_param_spec_double ("output-aspect-ratio",
|
||||
"Output aspect ratio",
|
||||
|
@ -78,8 +78,8 @@ uint32_t meta_input_device_tool_native_get_button_code (Clutt
|
||||
void meta_input_device_tool_native_set_pressure_curve (ClutterInputDeviceTool *tool,
|
||||
double curve[4]);
|
||||
void meta_input_device_tool_native_set_button_code (ClutterInputDeviceTool *tool,
|
||||
uint32_t button,
|
||||
uint32_t evcode);
|
||||
uint32_t button,
|
||||
uint32_t evcode);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
@ -470,9 +470,9 @@ meta_input_settings_native_set_tablet_keep_aspect (MetaInputSettings *settings,
|
||||
|
||||
backend = meta_get_backend ();
|
||||
monitor_manager = meta_backend_get_monitor_manager (backend);
|
||||
meta_monitor_manager_get_screen_size (monitor_manager,
|
||||
&width,
|
||||
&height);
|
||||
meta_monitor_manager_get_screen_size (monitor_manager,
|
||||
&width,
|
||||
&height);
|
||||
}
|
||||
|
||||
aspect_ratio = (double) width / height;
|
||||
|
@ -28,11 +28,11 @@ MetaLauncher *meta_launcher_new (GError **error);
|
||||
void meta_launcher_free (MetaLauncher *self);
|
||||
|
||||
gboolean meta_launcher_activate_session (MetaLauncher *self,
|
||||
GError **error);
|
||||
GError **error);
|
||||
|
||||
gboolean meta_launcher_activate_vt (MetaLauncher *self,
|
||||
signed char vt,
|
||||
GError **error);
|
||||
signed char vt,
|
||||
GError **error);
|
||||
|
||||
const char * meta_launcher_get_seat_id (MetaLauncher *launcher);
|
||||
|
||||
|
@ -1848,11 +1848,11 @@ process_device_event (MetaSeatNative *seat,
|
||||
seat_key_count =
|
||||
libinput_event_keyboard_get_seat_key_count (key_event);
|
||||
|
||||
/* Ignore key events that are not seat wide state changes. */
|
||||
if ((key_state == LIBINPUT_KEY_STATE_PRESSED &&
|
||||
seat_key_count != 1) ||
|
||||
(key_state == LIBINPUT_KEY_STATE_RELEASED &&
|
||||
seat_key_count != 0))
|
||||
/* Ignore key events that are not seat wide state changes. */
|
||||
if ((key_state == LIBINPUT_KEY_STATE_PRESSED &&
|
||||
seat_key_count != 1) ||
|
||||
(key_state == LIBINPUT_KEY_STATE_RELEASED &&
|
||||
seat_key_count != 0))
|
||||
{
|
||||
meta_topic (META_DEBUG_INPUT,
|
||||
"Dropping key-%s of key 0x%x because seat-wide "
|
||||
|
@ -271,7 +271,7 @@ meta_virtual_input_device_native_notify_key (ClutterVirtualInputDevice *virtual_
|
||||
if (key_count < 0 || key_count > 1)
|
||||
{
|
||||
g_warning ("Received multiple virtual 0x%x key %s (ignoring)", key,
|
||||
key_state == CLUTTER_KEY_STATE_PRESSED ? "presses" : "releases");
|
||||
key_state == CLUTTER_KEY_STATE_PRESSED ? "presses" : "releases");
|
||||
update_button_count (virtual_evdev, key, 1 - key_state);
|
||||
return;
|
||||
}
|
||||
|
@ -103,9 +103,9 @@ meta_xkb_translate_state (ClutterEvent *event,
|
||||
uint32_t button_state)
|
||||
{
|
||||
_clutter_event_set_state_full (event,
|
||||
button_state,
|
||||
xkb_state_serialize_mods (state, XKB_STATE_MODS_DEPRESSED),
|
||||
xkb_state_serialize_mods (state, XKB_STATE_MODS_LATCHED),
|
||||
xkb_state_serialize_mods (state, XKB_STATE_MODS_LOCKED),
|
||||
xkb_state_serialize_mods (state, XKB_STATE_MODS_EFFECTIVE) | button_state);
|
||||
button_state,
|
||||
xkb_state_serialize_mods (state, XKB_STATE_MODS_DEPRESSED),
|
||||
xkb_state_serialize_mods (state, XKB_STATE_MODS_LATCHED),
|
||||
xkb_state_serialize_mods (state, XKB_STATE_MODS_LOCKED),
|
||||
xkb_state_serialize_mods (state, XKB_STATE_MODS_EFFECTIVE) | button_state);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user