Ticket #8000: ticket-8000.diff

File ticket-8000.diff, 649 bytes (added by mmadia, 11 years ago)
  • src/kits/tracker/TrackerSettingsWindow.cpp

    diff --git a/src/kits/tracker/TrackerSettingsWindow.cpp b/src/kits/tracker/TrackerSettingsWindow.cpp
    index 66267a6..b7744a4 100644
    a b TrackerSettingsWindow::Show()  
    186186
    187187        Unlock();
    188188    }
     189    // if the window is already showing, don't jerk the workspaces around,
     190    // just pull it to us
     191    uint32 workspace = 1UL << (uint32)current_workspace();
     192    uint32 windowWorkspaces = Workspaces();
     193    if (!(windowWorkspaces & workspace))
     194        // window in a different workspace, reopen in current
     195        SetWorkspaces(workspace);
     196
    189197    _inherited::Show();
    190198}
    191199