linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.48k stars 730 forks source link

Cannot take screenshot while LibreOffice Calc AutoFilter window is visible #12360

Closed NeatNit closed 2 weeks ago

NeatNit commented 3 weeks ago

Distribution

Mint 22

Package version

6.2.9

Graphics hardware in use

No response

Frequency

Always

Bug description

I can't take a screenshot of the AutoFilter UI in LibreOffice Calc. Whenever it's visible the PrintScreen button does nothing, regardless of Ctrl/Alt/Shift combinations.

It seems like Calc puts this sub-window on top of everything else in some way, but shouldn't it still be possible to take a screenshot?

Steps to reproduce

  1. Open LibreOffice Calc (I have version
  2. Input some data, or just copy this: Header 1 3 2 3
  3. Activate AutoFilter image
  4. Open the dropdown filter image
  5. While it's open, try to take a screenshot using the PrintScreen key

Expected behavior

Screenshot is taken

Additional information

I don't know whether this is a Cinnamon issue or a LibreOffice issue, so I am opening an issue with both. I think Cinnamon should always be able to take a screenshot, but if LibreOffice is specifically blocking this (by a bug of course), then Cinnamon is obviously innocent. I personally have no way of figuring out which is at fault here.

NeatNit commented 3 weeks ago

Opened issue with LibreOffice: https://bugs.documentfoundation.org/show_bug.cgi?id=162611

With a bit more playing around I am really suspecting that Calc is at fault and Cinnamon is probably behaving correctly. But I can't say for certain, so I'll leave the issue open until someone smarter can take a look.

mtwebster commented 2 weeks ago

I suspect this is 'normal behavior' - that header dialog window is really a combo box popup being abused as a dialog window.

It is exactly the behavior you get if you click a combo box in Nemo or cinnamon settings: image

When one of those combos is 'open', shortcut keys are also disabled.

In Cinnamon (and any other x11-based window manager/desktop), shortcut bindings are placed on all 'normal' windows automatically, so no matter what app is focused, those shortcuts will work. These popups are not normal windows - they're temporary, and usually untracked by the window manager, and as a result won't have had those bindings applied.

These popups grab all focus, keyboard and mouse, and nothing will work until they close again.

The right-click popup menu in Calc is the same way - open it and try to take a screenshot.

I'm guessing one reason they're creating that filter window in this manner is to take advantage of the fact that it will automatically lose focus and close if you click elsewhere in the page.

I'd probably have done the same thing :)

NeatNit commented 2 weeks ago

I see, thanks for the explanation. Is it really acceptable for certain things to be impossible to screenshot? It certainly makes life hard when I specifically want to capture that element.

I'm guessing one reason they're creating that filter window in this manner is to take advantage of the fact that it will automatically lose focus and close if you click elsewhere in the page.

Elsewhere in Calc, sure. Issue is, it won't lose focus if you click on another window. You can manipulate a Firefox window with the mouse to your heart's content, but any keyboard input is still hijacked by the AutoFilter.

Edit: I realize this is veering away from the initial point of this issue

mtwebster commented 2 weeks ago

This issue is immortal, and is baked into x11. Leaving that window (or any other popup) open can also block the screensaver from starting Yeah, it's annoying to work around. One reasonably easy way is to launch cinnamon-screenshot from the menu, and enable a timer. Then you can have time to setup and get the window open before it triggers.

NeatNit commented 2 weeks ago

Thanks, that's an option I'll consider next time I need to do that.

mtwebster commented 2 weeks ago

Ok closing this then.