1 | Index: src/apps/pulse/PulseView.cpp
|
---|
2 | ===================================================================
|
---|
3 | --- src/apps/pulse/PulseView.cpp (révision 18297)
|
---|
4 | +++ src/apps/pulse/PulseView.cpp (copie de travail)
|
---|
5 | @@ -80,9 +80,12 @@
|
---|
6 |
|
---|
7 | if (buttons & B_SECONDARY_MOUSE_BUTTON) {
|
---|
8 | ConvertToScreen(&point);
|
---|
9 | + // Set a rectangle to make the menu sticky
|
---|
10 | + BRect clickToOpenRect(point.x, point.y, point.x, point.y);
|
---|
11 | + clickToOpenRect.InsetBy(-5, -5);
|
---|
12 | // Use the asynchronous version so we don't interfere with
|
---|
13 | // the window responding to Pulse() events
|
---|
14 | - popupmenu->Go(point, true, false, true);
|
---|
15 | + popupmenu->Go(point, true, false, clickToOpenRect, true);
|
---|
16 | }
|
---|
17 | }
|
---|
18 |
|
---|