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