Ignore:
Timestamp:
2015-06-17T23:49:07Z (9 years ago)
Author:
Michal Koutný <xm.koutny+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c8dc9ac
Parents:
cf3aee19
Message:

compositor: Release window_list_mtx also in exceptional states

File:
1 edited

Legend:

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

    rcf3aee19 r523b17a  
    470470                                                /* FIXME: Ghost is currently drawn based on the bounding
    471471                                                 * rectangle of the window, which is sufficient as long
    472                                                  * as the windows can be rotated only by 90 degrees. 
     472                                                 * as the windows can be rotated only by 90 degrees.
    473473                                                 * For ghost to be compatible with arbitrary-angle
    474474                                                 * rotation, it should be drawn as four lines adjusted
     
    909909                        if (!win) {
    910910                                async_answer_2(callid, ENOMEM, 0, 0);
     911                                fibril_mutex_unlock(&window_list_mtx);
    911912                                return;
    912913                        }
     
    927928                                window_destroy(win);
    928929                                async_answer_2(callid, EINVAL, 0, 0);
     930                                fibril_mutex_unlock(&window_list_mtx);
    929931                                return;
    930932                        }
     
    934936                                window_destroy(win);
    935937                                async_answer_2(callid, EINVAL, 0, 0);
     938                                fibril_mutex_unlock(&window_list_mtx);
    936939                                return;
    937940                        }
     
    10521055
    10531056        /* Create surface with respect to the retrieved mode. */
    1054         surface_t *new_surface = surface_create(new_mode.screen_width, 
     1057        surface_t *new_surface = surface_create(new_mode.screen_width,
    10551058            new_mode.screen_height, NULL, SURFACE_FLAG_SHARED);
    10561059        if (!new_surface) {
Note: See TracChangeset for help on using the changeset viewer.