Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window spans over multiple virtual desktop #8

Open
lesnake opened this issue Nov 29, 2015 · 1 comment
Open

Window spans over multiple virtual desktop #8

lesnake opened this issue Nov 29, 2015 · 1 comment

Comments

@lesnake
Copy link

lesnake commented Nov 29, 2015

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...

@JoakimSoderberg
Copy link
Owner

I'm not very familiar with this and I don't have a Linux desktop to test myself. But one idea would be too add this as a command line option instead at least. Could you create a Pull Request for that change maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants