Ignore hidden or minimized windows in workspaces mouse down.
This avoids selecting those windows for moving and more importantly bringing to front a minimized window with Ctrl-click, which causes the minimized state to be out of sync between the app_server and BWindow, causing #8860.
This commit is contained in:
parent
6c6f5ecef1
commit
b0841df466
@ -448,6 +448,9 @@ WorkspacesView::MouseDown(BMessage* message, BPoint where)
|
||||
BRect windowFrame;
|
||||
BPoint leftTop;
|
||||
while (workspace.GetPreviousWindow(window, leftTop) == B_OK) {
|
||||
if (window->IsMinimized() || window->IsHidden())
|
||||
continue;
|
||||
|
||||
BRect frame = _WindowFrame(workspaceFrame, screenFrame, window->Frame(),
|
||||
leftTop);
|
||||
if (frame.Contains(where) && window->Feel() != kDesktopWindowFeel
|
||||
|
Loading…
x
Reference in New Issue
Block a user