Skip to content

Window spans over multiple virtual desktop #8

@lesnake

Description

@lesnake

I'm using multiple virtual desktops on ubuntu 15.10 and opencv 3.0.0.

When I start imageclipper the view spans over all the desktops and it is not possible to resize it.

It seems to be related to those lines:

    cvNamedWindow( param->w_name, CV_WINDOW_AUTOSIZE );
    cvNamedWindow( param->miniw_name, CV_WINDOW_AUTOSIZE );

Opencv API specifies that:

CV_WINDOW_NORMAL or CV_WINDOW_AUTOSIZE: CV_WINDOW_NORMAL enables you to resize the window, whereas CV_WINDOW_AUTOSIZE adjusts automatically the window size to fit the displayed image (see imshow() ), and you cannot change the window size manually.

I could not find any direct call to imshow, my guess is that is is hidden in cvShowxxx functions.

Using:

    cvNamedWindow( param->w_name, CV_WINDOW_NORMAL );
    cvNamedWindow( param->miniw_name, CV_WINDOW_NORMAL );

Fixed my problem, but it could be better since weird effect (kind of zooming and cropping that stop uppon selecting another window and coming back to it) occur when resizing the window...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions