Skip to content

“y” argument to moveWindow() being ignored? #16343

@cwreynolds

Description

@cwreynolds
System information (version)
  • OpenCV => 4.1.2
  • Operating System / Platform => macOS Catalina 10.15.2
  • Compiler => Xcode / clang / c++
Detailed description

(I must be doing something wrong. This seems too obvious to be a real bug.)

Running a version of OpenCV 4.1.2, recently installed (via homebrew) on macOS Catalina 10.15.2, I tried to show several images in individual windows. I wanted to offset the windows along a diagonal:

    int window_counter = 0;
    int window_position = 0;
    for (int i = 0; i < 4; i++)
    {
        std::string window_name = "TexSyn" + std::to_string(window_counter++);
        cv::namedWindow(window_name);
        cv::moveWindow(window_name, window_position, window_position);
        window_position += 30;
        cv::imshow(window_name, opencv_image);
    }
    cv::waitKey(0);

The windows appear. They are offset in “x” but not in “y”:

Screen Shot 2020-01-13 at 4 19 36 PM

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions