mouseReleased not called after file dialog (v9.8+)


While trying to solve a problem where my app does not receive mouse release after file dialog on older osx and windows versions, I bumped into this bug, which appears even on the current OF brach.

right click will bring up the file dialog, but when it is closed, release is not received, drag is called when moving the mouse:

void ofApp::mouseDragged(int x, int y, int button){
ofLog() << “mouseDragged”;

void ofApp::mousePressed(int x, int y, int button)
ofLog() << “mousePressed”;
if (button == OF_MOUSE_BUTTON_RIGHT) ofSystemLoadDialog(“open the evil file dialog”);

void ofApp::mouseReleased(int x, int y, int button){
ofLog() << “mouseReleased”;

in my original case this wont happen, but maybe fixing this will fix other issues as well.
What currently solves my original problem on both windows and osx, is to click on the desktop and back again on the app, or maximize and restore window.
any help would be appreciated