Ignore:
File:
1 edited

Legend:

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

    r523b17a r2f6ad06  
    5555#include <async.h>
    5656#include <loc.h>
     57#include <task.h>
    5758
    5859#include <io/keycode.h>
     
    470471                                                /* FIXME: Ghost is currently drawn based on the bounding
    471472                                                 * 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. 
    473474                                                 * For ghost to be compatible with arbitrary-angle
    474475                                                 * rotation, it should be drawn as four lines adjusted
     
    896897        ipc_call_t call;
    897898        ipc_callid_t callid;
    898         service_id_t service_id = (service_id_t) IPC_GET_ARG1(*icall);
     899        service_id_t service_id = (service_id_t) IPC_GET_ARG2(*icall);
    899900
    900901        /* Allocate resources for new window and register it to the location service. */
     
    909910                        if (!win) {
    910911                                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);
    931930                                return;
    932931                        }
     
    936935                                window_destroy(win);
    937936                                async_answer_2(callid, EINVAL, 0, 0);
    938                                 fibril_mutex_unlock(&window_list_mtx);
    939937                                return;
    940938                        }
     
    10551053
    10561054        /* 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, 
    10581056            new_mode.screen_height, NULL, SURFACE_FLAG_SHARED);
    10591057        if (!new_surface) {
     
    11781176        async_sess_t *sess;
    11791177
    1180         sess = loc_service_connect(EXCHANGE_SERIALIZE, sid, 0);
     1178        sess = loc_service_connect(sid, INTERFACE_DDF, 0);
    11811179        if (sess == NULL) {
    11821180                printf("%s: Unable to connect to visualizer %s\n", NAME, svc);
     
    11851183
    11861184        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       
    11881190        async_exchange_end(exch);
    11891191
     
    21482150        }
    21492151
    2150         sess = loc_service_connect(EXCHANGE_ATOMIC, dsid, 0);
     2152        sess = loc_service_connect(dsid, INTERFACE_INPUT, 0);
    21512153        if (sess == NULL) {
    21522154                printf("%s: Unable to connect to input service %s\n", NAME,
     
    22432245       
    22442246        /* Register compositor server. */
    2245         async_set_client_connection(client_connection);
     2247        async_set_fallback_port_handler(client_connection, NULL);
    22462248       
    22472249        int rc = loc_server_register(NAME);
Note: See TracChangeset for help on using the changeset viewer.