Changes in uspace/srv/hid/compositor/compositor.c [523b17a:2f6ad06] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/compositor/compositor.c
r523b17a r2f6ad06 55 55 #include <async.h> 56 56 #include <loc.h> 57 #include <task.h> 57 58 58 59 #include <io/keycode.h> … … 470 471 /* FIXME: Ghost is currently drawn based on the bounding 471 472 * rectangle of the window, which is sufficient as long 472 * as the windows can be rotated only by 90 degrees. 473 * as the windows can be rotated only by 90 degrees. 473 474 * For ghost to be compatible with arbitrary-angle 474 475 * rotation, it should be drawn as four lines adjusted … … 896 897 ipc_call_t call; 897 898 ipc_callid_t callid; 898 service_id_t service_id = (service_id_t) IPC_GET_ARG 1(*icall);899 service_id_t service_id = (service_id_t) IPC_GET_ARG2(*icall); 899 900 900 901 /* Allocate resources for new window and register it to the location service. */ … … 909 910 if (!win) { 910 911 async_answer_2(callid, ENOMEM, 0, 0); 911 fibril_mutex_unlock(&window_list_mtx);912 912 return; 913 913 } … … 928 928 window_destroy(win); 929 929 async_answer_2(callid, EINVAL, 0, 0); 930 fibril_mutex_unlock(&window_list_mtx);931 930 return; 932 931 } … … 936 935 window_destroy(win); 937 936 async_answer_2(callid, EINVAL, 0, 0); 938 fibril_mutex_unlock(&window_list_mtx);939 937 return; 940 938 } … … 1055 1053 1056 1054 /* Create surface with respect to the retrieved mode. */ 1057 surface_t *new_surface = surface_create(new_mode.screen_width, 1055 surface_t *new_surface = surface_create(new_mode.screen_width, 1058 1056 new_mode.screen_height, NULL, SURFACE_FLAG_SHARED); 1059 1057 if (!new_surface) { … … 1178 1176 async_sess_t *sess; 1179 1177 1180 sess = loc_service_connect( EXCHANGE_SERIALIZE, sid, 0);1178 sess = loc_service_connect(sid, INTERFACE_DDF, 0); 1181 1179 if (sess == NULL) { 1182 1180 printf("%s: Unable to connect to visualizer %s\n", NAME, svc); … … 1185 1183 1186 1184 async_exch_t *exch = async_exchange_begin(sess); 1187 rc = async_connect_to_me(exch, sid, 0, 0, vsl_notifications, NULL); 1185 1186 port_id_t port; 1187 rc = async_create_callback_port(exch, INTERFACE_VISUALIZER_CB, 0, 0, 1188 vsl_notifications, NULL, &port); 1189 1188 1190 async_exchange_end(exch); 1189 1191 … … 2148 2150 } 2149 2151 2150 sess = loc_service_connect( EXCHANGE_ATOMIC, dsid, 0);2152 sess = loc_service_connect(dsid, INTERFACE_INPUT, 0); 2151 2153 if (sess == NULL) { 2152 2154 printf("%s: Unable to connect to input service %s\n", NAME, … … 2243 2245 2244 2246 /* Register compositor server. */ 2245 async_set_ client_connection(client_connection);2247 async_set_fallback_port_handler(client_connection, NULL); 2246 2248 2247 2249 int rc = loc_server_register(NAME);
Note:
See TracChangeset
for help on using the changeset viewer.