# Incorrect behavior of right-click context menu

**URL:** https://discourse.paraview.org/t/incorrect-behavior-of-right-click-context-menu/13361
**Category:** ParaView Support
**Created:** [November 28, 2023, 3:36am UTC](https://discourse.paraview.org/t/incorrect-behavior-of-right-click-context-menu/13361 "2023-11-28T03:36:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![fashing](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fashing/32/12357_2.png) [@fashing](https://discourse.paraview.org/u/fashing)
#### Post date: [November 28, 2023, 3:36am UTC](https://discourse.paraview.org/t/incorrect-behavior-of-right-click-context-menu/13361/1 "2023-11-28T03:36:37Z")

</div>

Hi Paraview,  
I found an unexpected behavior in Paraview. Here’s the process to reproduce it.

1. Create `Box1` at `(0, 0, 0)`
2. Create `Box2` at `(1, 1, 1)`
3. Right click on `Box1` \> `Edit Color` \> choose black

And you’ll see the `Box2` becomes black. I guess it changes the active source rather than the source I click, e.g.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/c/ce60d8ffdf6290efd14b3ef2e7585dd89f72578b.png)

But the first two functions (`Hide` and `Representation`) in the menu work fine, they do change on the source I click. I wonder how to get the clicked source like the first two function in python script and how the other functions do not work.

Thank you!

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [November 28, 2023, 5:38pm UTC](https://discourse.paraview.org/t/incorrect-behavior-of-right-click-context-menu/13361/2 "2023-11-28T17:38:44Z")

</div>

Sounds incorrect to me. Thanks for reporting.  
@mwestphal @cory.quammen @utkarsh.ayachit What is expected behavior? All behavior should be the same. But what should take presidence? The selection in the pipeline browser or what the user clicks on with the mouse? I’m tempted to say what the mouse is on?

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [November 28, 2023, 6:07pm UTC](https://discourse.paraview.org/t/incorrect-behavior-of-right-click-context-menu/13361/3 "2023-11-28T18:07:50Z")

</div>

> [@fashing](#):
>
> I guess it changes the active source rather than the source I click

sounds like a bug to me. The clicked on representation should indeed be the one that should be affected.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [November 28, 2023, 6:18pm UTC](https://discourse.paraview.org/t/incorrect-behavior-of-right-click-context-menu/13361/4 "2023-11-28T18:18:20Z")

</div>

[https://gitlab.kitware.com/paraview/paraview/-/issues/22391](https://gitlab.kitware.com/paraview/paraview/-/issues/22391).

---

<div class="post-metadata">

### Author: ![fashing](https://discourse.paraview.org/user_avatar/discourse.paraview.org/fashing/32/12357_2.png) [@fashing](https://discourse.paraview.org/u/fashing)
#### Post date: [November 29, 2023, 2:53am UTC](https://discourse.paraview.org/t/incorrect-behavior-of-right-click-context-menu/13361/5 "2023-11-29T02:53:58Z")

</div>

Thanks for the reply to confirm this issue. Beside it, I am curious about how Paraview infers the clicked source. I want to reproduce it in python script, but I cannot find any clue in the python trace tool.
