Bug 164375 - Selected/highlighted text in Writer not highlighted when switching to another LO window
Summary: Selected/highlighted text in Writer not highlighted when switching to another...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.1.0.4 release
Hardware: All All
: medium trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-19 10:56 UTC by bugzilla
Modified: 2025-05-20 12:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugzilla 2024-12-19 10:56:44 UTC
Description:
Situation: working with an email from Outlook and I need to copy IDs and change their related info in a sheet and web app. A long time ago MS had the brililant idea to un-highlight text you selected in any Office app when it becomes the background app (because keeping it highlighted might confuse people, and losing track of what you had selected is obviously not confusing /s)

This was one of the many, many reasons I use Calc and Writer over Excel and Word. (Unfortunately there is no alternative for Outlook.)

However, I discovered that LO has a similar “feature”: when highlighting text in Writer and switching to a different LO app, the highlighted text is not highlighted anymore (until you switch back). This only happens when switching to an LO app, so this often isn’t a problem, but when working in Writer and Calc it is. (Luckily the easy solution was to just use notepad.)

Tested on 2 computers on a very old version (7.something) and 24.8.3.2

To be clear: when switching from Writer to a non-LO app the text is still highlighted. But it also doesn't change appearance, whereas e.g. Firefox when it's the foreground window the selected text is white-on-blue, vs. white on grey in a background window. For writer the text is black-on-blue in both states. (I still prefer this over no highlighting when it's the background window.)

Steps to Reproduce:
1. Select text in Writer, selected text is black-on-blue
2. Switch to any LO app


Actual Results:
3. Text isn't highlighted anymore

Expected Results:
3. Text is still highlighted (like it is when switching to a non-LO app)

Or: 3b. Text is highlighted in a different color (e.g. black-on-grey)


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Uhm, there is no other information, why is this field required?
Comment 1 zcrhonek 2024-12-27 14:19:53 UTC
reproducible with Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: cac9c7db6257b27724d90d4a355e52e456ef7e08
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
and Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)

Not sure if it's bug, leaving Unconfirmed.
Comment 2 bugzilla 2025-04-22 15:43:25 UTC
@zcrhonek: what do you mean by "Not sure if it's bug, leaving Unconfirmed"? Do you see it happening but you don't know whether to consider it a bug, or have you not been able to reproduce it?
Comment 3 Andrew Kopf 2025-05-20 03:11:34 UTC
Hello bugzilla@gerarddekker.com,

Thank you for reporting the bug. I can confirm that the bug is present in master. I marked it as new, but reduced its importance to trivial. While I am fairly sure that the result should be consistent between LO and other programs, I don't know which is better: that it stays highlighted or that it removes the highlighting when losing focus. You can't actually copy, cut, or paste that part with keyboard commands because it doesn't have focus.

Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 19f3b72f34c487dc97d582712d21734a7e055fd5
CPU threads: 22; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 22; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded
Comment 4 LeroyG 2025-05-20 12:42:13 UTC
Testing with Firefox (v. 138, on Windows), the selected text is shown in white with blue background, but if the window is not active the background turns to gray.