Chart Demo: Fix for failure to detect already opened popup windows
Clicking on the FPS, color chart or any other buttons meant to make a popup window appear was failing to detect and re-focus an already opened popup.
This commit is contained in:
@@ -1125,7 +1125,8 @@ ChartWindow::GetAppWindow(const char *name)
|
||||
if (window == NULL)
|
||||
break;
|
||||
if (window->LockWithTimeout(200000) == B_OK) {
|
||||
if (strcmp(window->Name(), name) == 0) {
|
||||
// skip the w> prefix in window's name.
|
||||
if (strcmp(window->Name() + 2, name) == 0) {
|
||||
window->Unlock();
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user