Bug 158700 - The input line is disabled when two Calcs are running
Summary: The input line is disabled when two Calcs are running
Status: RESOLVED DUPLICATE of bug 81636
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-14 09:18 UTC by Aleksandr
Modified: 2023-12-14 18:11 UTC (History)
1 user (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 Aleksandr 2023-12-14 09:18:42 UTC
Description:
When two Calcs are running and when switching between them by clicking on the formula input line, after a while one of the input lines becomes disabled.
This problem only occurs with GTK3.

Steps to Reproduce:
1.Open two Calc documents. Documents may be new.
2.Reduce the size of windows so that windows do not overlap each other for your convenience.
3.Click on the formula input line in the first Calc.
4.Click on the formula input line in the second Calc.
5. Repeat steps 3 - 4 until one of the input lines becomes disabled.

Actual Results:
The input line is disabled and when clicking on it, the window does not activate

Expected Results:
The input line is enabled and when clicking on it, the window is activated and text entry is allowed.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
This problem appeared after commit https://gerrit.libreoffice.org/c/core/+/104037
Comment 1 m_a_riosv 2023-12-14 16:25:54 UTC

*** This bug has been marked as a duplicate of bug 81636 ***
Comment 2 ady 2023-12-14 17:52:48 UTC
(In reply to Aleksandr from comment #0)
> 3.Click on the formula input line in the first Calc.
> 4.Click on the formula input line in the second Calc.

I might be wrong but I think that once you click on the formula input line in the first file, then you are effectively in edit mode.

For instance:

A.0. Save both files (so they are clearly identified/named).
A.1. On an empty cell of the first file, click on the formula input line.
A.2. Type-in the equal sign "=".
A.3. Click on some cell (preferably with content and some format) on the second file.
A.4. Press [ENTER].
A.5. Go back to the first file and review the content of the same cell of step A.1.

You should have a formula in the input line referring to the second file, and the cell itself should show the same content of the cell of the second file you clicked on. This is more clear when both files are already saved before starting the whole procedure (hence, step A.0.).

Therefore, since you are (still) on (cell's) "edit" mode after your step 3 (or after my step A.1.), you cannot also enter into edit mode in the second file simultaneously (i.e. your step 4); otherwise the kind of alternative steps I just described would not be possible.

If you want to enter into (cell's) edit mode in the second file, you need to exit edit mode from the first file before that (e.g press [ESC], or [ENTER], depending on the result you want in the first file).

I doubt there is some realistic solution, as Calc is not capable of preemptively knowing whether:
* you want to related the first file to the second one, or instead,
* you want to abort the first edit mode and enter into edit mode in the second file.
Comment 3 Aleksandr 2023-12-14 18:11:27 UTC
The problem is not with entering text, but with getting focus of the input line. See how it works with VCL QT5 turned on. Or in GTK3 on LibreOffice version 7.0.6.2