Lines Matching refs:seat_x11

458 create_device (MetaSeatX11    *seat_x11,  in create_device()  argument
546 "seat", seat_x11, in create_device()
606 update_touch_mode (MetaSeatX11 *seat_x11) in update_touch_mode() argument
610 touch_mode = seat_x11->has_touchscreens; in update_touch_mode()
612 if (seat_x11->touch_mode == touch_mode) in update_touch_mode()
615 seat_x11->touch_mode = touch_mode; in update_touch_mode()
616 g_object_notify (G_OBJECT (seat_x11), "touch-mode"); in update_touch_mode()
620 add_device (MetaSeatX11 *seat_x11, in add_device() argument
626 device = create_device (seat_x11, backend, info); in add_device()
628 g_hash_table_replace (seat_x11->devices_by_id, in add_device()
633 info->deviceid == seat_x11->pointer_id) in add_device()
635 seat_x11->core_pointer = device; in add_device()
638 info->deviceid == seat_x11->keyboard_id) in add_device()
640 seat_x11->core_keyboard = device; in add_device()
643 info->attachment == seat_x11->pointer_id) || in add_device()
645 info->attachment == seat_x11->keyboard_id)) in add_device()
647 seat_x11->devices = g_list_prepend (seat_x11->devices, device); in add_device()
662 has_touchscreens (MetaSeatX11 *seat_x11) in has_touchscreens() argument
666 for (l = seat_x11->devices; l; l = l->next) in has_touchscreens()
676 remove_device (MetaSeatX11 *seat_x11, in remove_device() argument
679 if (seat_x11->core_pointer == device) in remove_device()
681 seat_x11->core_pointer = NULL; in remove_device()
683 else if (seat_x11->core_keyboard == device) in remove_device()
685 seat_x11->core_keyboard = NULL; in remove_device()
689 seat_x11->devices = g_list_remove (seat_x11->devices, device); in remove_device()
697 MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat); in meta_seat_x11_handle_event_post() local
715 seat_x11->has_touchscreens |= is_touch; in meta_seat_x11_handle_event_post()
719 seat_x11->has_touchscreens = has_touchscreens (seat_x11); in meta_seat_x11_handle_event_post()
727 update_touch_mode (seat_x11); in meta_seat_x11_handle_event_post()
764 MetaSeatX11 *seat_x11, in translate_hierarchy_event() argument
774 !g_hash_table_lookup (seat_x11->devices_by_id, in translate_hierarchy_event()
791 device = add_device (seat_x11, backend, &info[0]); in translate_hierarchy_event()
806 g_hash_table_steal_extended (seat_x11->devices_by_id, in translate_hierarchy_event()
813 remove_device (seat_x11, device); in translate_hierarchy_event()
836 translate_property_event (MetaSeatX11 *seat_x11, in translate_property_event() argument
848 device = g_hash_table_lookup (seat_x11->devices_by_id, in translate_property_event()
864 tool = g_hash_table_lookup (seat_x11->tools_by_serial, in translate_property_event()
871 g_hash_table_insert (seat_x11->tools_by_serial, in translate_property_event()
884 emulate_motion (MetaSeatX11 *seat_x11, in emulate_motion() argument
892 pointer = clutter_seat_get_pointer (CLUTTER_SEAT (seat_x11)); in emulate_motion()
907 translate_raw_event (MetaSeatX11 *seat_x11, in translate_raw_event() argument
920 device = g_hash_table_lookup (seat_x11->devices_by_id, in translate_raw_event()
941 if (!seat_x11->has_pointer_focus) in translate_raw_event()
942 emulate_motion (seat_x11, x, y); in translate_raw_event()
1067 get_event_stage (MetaSeatX11 *seat_x11, in get_event_stage() argument
1296 MetaSeatX11 *seat_x11 = META_SEAT_X11 (object); in meta_seat_x11_set_property() local
1301 seat_x11->opcode = g_value_get_int (value); in meta_seat_x11_set_property()
1304 seat_x11->pointer_id = g_value_get_int (value); in meta_seat_x11_set_property()
1307 seat_x11->keyboard_id = g_value_get_int (value); in meta_seat_x11_set_property()
1321 MetaSeatX11 *seat_x11 = META_SEAT_X11 (object); in meta_seat_x11_get_property() local
1326 g_value_set_int (value, seat_x11->opcode); in meta_seat_x11_get_property()
1329 g_value_set_int (value, seat_x11->pointer_id); in meta_seat_x11_get_property()
1332 g_value_set_int (value, seat_x11->keyboard_id); in meta_seat_x11_get_property()
1335 g_value_set_boolean (value, seat_x11->touch_mode); in meta_seat_x11_get_property()
1343 meta_seat_x11_notify_devices (MetaSeatX11 *seat_x11, in meta_seat_x11_notify_devices() argument
1349 g_hash_table_iter_init (&iter, seat_x11->devices_by_id); in meta_seat_x11_notify_devices()
1365 MetaSeatX11 *seat_x11 = META_SEAT_X11 (object); in meta_seat_x11_constructed() local
1384 add_device (seat_x11, backend, xi_device); in meta_seat_x11_constructed()
1414 seat_x11->keymap = g_object_new (META_TYPE_KEYMAP_X11, in meta_seat_x11_constructed()
1417 g_signal_connect (seat_x11->keymap, in meta_seat_x11_constructed()
1420 seat_x11); in meta_seat_x11_constructed()
1422 meta_seat_x11_a11y_init (CLUTTER_SEAT (seat_x11)); in meta_seat_x11_constructed()
1431 MetaSeatX11 *seat_x11 = META_SEAT_X11 (object); in meta_seat_x11_finalize() local
1433 g_hash_table_unref (seat_x11->devices_by_id); in meta_seat_x11_finalize()
1434 g_hash_table_unref (seat_x11->tools_by_serial); in meta_seat_x11_finalize()
1435 g_hash_table_unref (seat_x11->touch_coords); in meta_seat_x11_finalize()
1436 g_list_free (seat_x11->devices); in meta_seat_x11_finalize()
1444 MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat); in meta_seat_x11_get_pointer() local
1446 return seat_x11->core_pointer; in meta_seat_x11_get_pointer()
1452 MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat); in meta_seat_x11_get_keyboard() local
1454 return seat_x11->core_keyboard; in meta_seat_x11_get_keyboard()
1460 MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat); in meta_seat_x11_peek_devices() local
1462 return (const GList *) seat_x11->devices; in meta_seat_x11_peek_devices()
1501 MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat); in meta_seat_x11_warp_pointer() local
1505 seat_x11->pointer_id, in meta_seat_x11_warp_pointer()
1568 MetaSeatX11 *seat_x11 = META_SEAT_X11 (seat); in meta_seat_x11_query_state() local
1577 seat_x11->pointer_id, in meta_seat_x11_query_state()
1592 touch_info = g_hash_table_lookup (seat_x11->touch_coords, sequence); in meta_seat_x11_query_state()
2384 meta_seat_x11_lookup_device_id (MetaSeatX11 *seat_x11, in meta_seat_x11_lookup_device_id() argument
2387 return g_hash_table_lookup (seat_x11->devices_by_id, in meta_seat_x11_lookup_device_id()