Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gui/window.c

    r2c7fdaa r10cb47e  
    591591}
    592592
    593 window_t *window_open(const char *winreg, window_flags_t flags,
    594     const char *caption)
     593window_t *window_open(const char *winreg, const void *data,
     594    window_flags_t flags, const char *caption)
    595595{
    596596        window_t *win = (window_t *) malloc(sizeof(window_t));
     
    604604        fibril_mutex_initialize(&win->guard);
    605605       
    606         widget_init(&win->root, NULL);
     606        widget_init(&win->root, NULL, data);
    607607        win->root.window = win;
    608608        win->root.destroy = root_destroy;
     
    623623        }
    624624       
    625         async_sess_t *reg_sess = loc_service_connect(EXCHANGE_SERIALIZE,
    626             reg_dsid, 0);
     625        async_sess_t *reg_sess =
     626            loc_service_connect(reg_dsid, INTERFACE_COMPOSITOR, 0);
    627627        if (reg_sess == NULL) {
    628628                free(win);
     
    639639        }
    640640       
    641         win->osess = loc_service_connect(EXCHANGE_SERIALIZE, out_dsid, 0);
     641        win->osess = loc_service_connect(out_dsid, INTERFACE_COMPOSITOR, 0);
    642642        if (win->osess == NULL) {
    643643                free(win);
     
    645645        }
    646646       
    647         win->isess = loc_service_connect(EXCHANGE_SERIALIZE, in_dsid, 0);
     647        win->isess = loc_service_connect(in_dsid, INTERFACE_COMPOSITOR, 0);
    648648        if (win->isess == NULL) {
    649649                async_hangup(win->osess);
Note: See TracChangeset for help on using the changeset viewer.