Bug 154206 - Missing/disappearing text cursor in Ubuntu Xorg session (gtk3)
Summary: Missing/disappearing text cursor in Ubuntu Xorg session (gtk3)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.1.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: GTK3
  Show dependency treegraph
 
Reported: 2023-03-15 12:53 UTC by tester user
Modified: 2023-10-24 14:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot (87.44 KB, image/png)
2023-03-15 12:56 UTC, tester user
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tester user 2023-03-15 12:53:51 UTC
Description:
Missing text cursor in 'Ubuntu Xorg' session
Is in the 'Ubuntu' session

When entering text, there is no text entry point cursor.
After switching the session type from 'Ubuntu Xorg' to 'Ubuntu' the cursor appeared.
But there were also problems in other programs.
How can I set up LibreOffice Writer so that the cursor also appears in an 'Ubuntu Xorg' session?

Ubuntu 22.04.2LTS


Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 16; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Calc: threaded

And


Version: 7.3.7.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Ubuntu package version: 1:7.3.7-0ubuntu0.22.04.2
Calc: threaded

Steps to Reproduce:

1. Start LibreOffice Writer
2. Insert any text

Actual Results:
Cursor missing

Expected Results:
Should be shown blinking cursor at text entry point


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 16; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Calc: threaded
Comment 1 tester user 2023-03-15 12:56:38 UTC
Created attachment 185979 [details]
Screenshot
Comment 2 tester user 2023-03-15 13:08:24 UTC
=============================================================================
Libreoffice writer: Typing cursor (caret, not the mouse pointer) appearance - Ask Ubuntu
https://askubuntu.com/questions/1027877/libreoffice-writer-typing-cursor-caret-not-the-mouse-pointer-appearance/1459367#1459367
----
In newer configurations with compiled gtk themes, you just need to add this to ~/.config/gtk-3.0/gtk.css. Create the file if it doesn't exist.

* { -GtkWidget-cursor-aspect-ratio: 0.2; } 
=============================================================================
not helps
Comment 3 Stéphane Guillou (stragu) 2023-03-29 16:21:56 UTC
Can you please test if turning "Use hardware acceleration" off in "Tools > Options > LibreOffice > View > Graphics Output" helps?

Thank you.
Comment 4 QA Administrators 2023-09-26 03:14:35 UTC Comment hidden (obsolete)
Comment 5 tester user 2023-09-26 08:42:23 UTC
(In reply to Stéphane Guillou (stragu) from comment #3)
> Can you please test if turning "Use hardware acceleration" off in "Tools >
> Options > LibreOffice > View > Graphics Output" helps?
> 
> Thank you.

It did not help

There is a cursor in the Wayland session
There is no cursor in Xorg session
Comment 6 Stéphane Guillou (stragu) 2023-09-30 16:11:52 UTC
I just tested a Xorg session on Ubuntu 22.04 and still can't reproduce, the cursor is there and stays there. (Just like the Wayland session.)

- Are other apps affected?
- Make sure you test the latest version 7.5.7.1
- Can you please check again in safe mode with Help > Restart in Safe Mode?
- Do you see the caret if you use the gen VCL plugin, with the following command?

SAL_USE_VCLPLUGIN=gen libreoffice7.5 --writer

Thank you.
Comment 7 tester user 2023-10-02 09:53:25 UTC
> - Are other apps affected?
 No, other applications work fine
 
> - Make sure you test the latest version 7.5.7.1

I removed the duplicate Version: 7.3.7.2
My
Version: 7.5.1.2 (X86_64) / LibreOffice Community
Build ID: fcbaee479e84c6cd81291587d2ee68cba099e129
CPU threads: 16; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Calc: threaded

> - Can you please check again in safe mode with Help > Restart in Safe Mode?
No cursor

> - Do you see the caret if you use the gen VCL plugin, with the following command?
> SAL_USE_VCLPLUGIN=gen libreoffice7.5 --writer

The interface changes, the cursor appears
 
I install Version: 7.6.2.1 - No cursor!

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 16; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: en-US
Calc: threaded
Comment 8 tester user 2023-10-02 12:55:01 UTC
> SAL_USE_VCLPLUGIN=gen libreoffice7.5 --writer


My 
Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 16; OS: Linux 5.18; UI render: default; VCL: gtk3
Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU
Calc: threaded

After

 SAL_USE_VCLPLUGIN=gen libreoffice7.6 --writer

the cursor did  appear!


But the interface is not very nice.
Comment 9 Buovjaga 2023-10-24 11:55:39 UTC
There was also bug 130339 about this same topic, so let's set to NEW (also due to AskUbuntu topic).