Bug 165009 - Right click an object to select + open context menu doesn't work for foreground object if the background image is selected
Summary: Right click an object to select + open context menu doesn't work for foregrou...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Object-Selection-Alignment
  Show dependency treegraph
 
Reported: 2025-02-03 13:27 UTC by Telesto
Modified: 2025-02-04 10:43 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample (9.68 KB, application/vnd.oasis.opendocument.graphics)
2025-02-03 13:30 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2025-02-03 13:27:53 UTC
Description:
Right click an object to select + open context menu doesn't work for foreground object if the background image is selected

Steps to Reproduce:
1. Open the attached file
2. Right Click on the Red Arrow -> Arrow gets selected and context menu opens (fine)
3. Right Click somewhere in the blue square: Square gets selected and context menu opens
4. Right Click the Red arrow again

Actual Results:
Arrow isn't selected

Expected Results:
Right Click on different object should de-select the background image / select the foreground image


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a8ec21adf255b70bb6eeb0a1717190df303d8b26
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded
Comment 1 Telesto 2025-02-03 13:30:19 UTC
Created attachment 198938 [details]
Sample

And in
Versie: 4.4.7.2 
Build ID: f3153a8b245191196a4b6b9abd1d0da16eead600
Locale: nl_NL

Also in
OpenOffice 2.2.0
Comment 2 Telesto 2025-02-03 13:36:33 UTC
@Heiko 
UX input required?
Comment 3 Heiko Tietze 2025-02-03 14:12:24 UTC
I would expect to select the object underneath the cursor on right click and apply the modifications on it. It kind of works like this if you select the arrow in from of the rectangle and right click the rectangle - changing the area color applies to this object. And with a stack of rectangular shapes it works exactly as expected, although the selection is done after the modification. But for some reason it's not happening in your example. 

Armin, do you have an idea why?

(The issue is unclear to me and very specific, and it feels wrong to accept it as new.)
Comment 4 Telesto 2025-02-03 18:22:45 UTC
(In reply to Heiko Tietze from comment #3)
> (The issue is unclear to me and very specific, and it feels wrong to accept
> it as new.)

With issue you mean: real life use case scenario? Well I have layered document. So an image as background (not Page Properties -> Background) Covering 90% of the page (A4). the image is bottom in the Z order.

Next I'm drawing arrows circles and so on on the image (marking stuff). Say I want to modify something particular: size of the arrow heads. So I require use the Line dialog (at this point in time)

The quickest way to do so is Right Click + Picking Line from context menu. So constantly running into the inconsistency, that it doesn't select in this case
Comment 5 LeroyG 2025-02-03 20:35:36 UTC
UX:
A great semitransparent square in front of a little circle. 
You can select the circle by dragging around it.
But how do you open the context menu for it with the mouse?

For me, not a bug.
Comment 6 Telesto 2025-02-04 02:38:36 UTC
(In reply to Heiko Tietze from comment #3)
> And with a stack of rectangular shapes it
> works exactly as expected, although the selection is done after the
> modification. 

Not happening on Windows, but same experience on macOS. Reported it at bug 165022. Did you use macOS or Linux while testing?
Comment 7 Heiko Tietze 2025-02-04 10:43:33 UTC
(In reply to Telesto from comment #4)
> (In reply to Heiko Tietze from comment #3)
> > (The issue is unclear to me and very specific, and it feels wrong to accept
> > it as new.)
> 
> With issue you mean: real life use case scenario?
The use case is not a question but what exact combination of object. Stacking rectangles works but this particular arrow not? In other words: I struggle to summarize the issue in a generic way.