Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/compositor/compositor.c

    r2f6ad06 r523b17a  
    5555#include <async.h>
    5656#include <loc.h>
    57 #include <task.h>
    5857
    5958#include <io/keycode.h>
     
    471470                                                /* FIXME: Ghost is currently drawn based on the bounding
    472471                                                 * 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.
    474473                                                 * For ghost to be compatible with arbitrary-angle
    475474                                                 * rotation, it should be drawn as four lines adjusted
     
    897896        ipc_call_t call;
    898897        ipc_callid_t callid;
    899         service_id_t service_id = (service_id_t) IPC_GET_ARG2(*icall);
     898        service_id_t service_id = (service_id_t) IPC_GET_ARG1(*icall);
    900899
    901900        /* Allocate resources for new window and register it to the location service. */
     
    910909                        if (!win) {
    911910                                async_answer_2(callid, ENOMEM, 0, 0);
     911                                fibril_mutex_unlock(&window_list_mtx);
    912912                                return;
    913913                        }
     
    928928                                window_destroy(win);
    929929                                async_answer_2(callid, EINVAL, 0, 0);
     930                                fibril_mutex_unlock(&window_list_mtx);
    930931                                return;
    931932                        }
     
    935936                                window_destroy(win);
    936937                                async_answer_2(callid, EINVAL, 0, 0);
     938                                fibril_mutex_unlock(&window_list_mtx);
    937939                                return;
    938940                        }
     
    10531055
    10541056        /* 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,
    10561058            new_mode.screen_height, NULL, SURFACE_FLAG_SHARED);
    10571059        if (!new_surface) {
     
    11761178        async_sess_t *sess;
    11771179
    1178         sess = loc_service_connect(sid, INTERFACE_DDF, 0);
     1180        sess = loc_service_connect(EXCHANGE_SERIALIZE, sid, 0);
    11791181        if (sess == NULL) {
    11801182                printf("%s: Unable to connect to visualizer %s\n", NAME, svc);
     
    11831185
    11841186        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);
    11901188        async_exchange_end(exch);
    11911189
     
    21502148        }
    21512149
    2152         sess = loc_service_connect(dsid, INTERFACE_INPUT, 0);
     2150        sess = loc_service_connect(EXCHANGE_ATOMIC, dsid, 0);
    21532151        if (sess == NULL) {
    21542152                printf("%s: Unable to connect to input service %s\n", NAME,
     
    22452243       
    22462244        /* Register compositor server. */
    2247         async_set_fallback_port_handler(client_connection, NULL);
     2245        async_set_client_connection(client_connection);
    22482246       
    22492247        int rc = loc_server_register(NAME);
Note: See TracChangeset for help on using the changeset viewer.