! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Moving text being editied in GIMP


Description John 2008-11-18 19:55:39 CET
Hello people,

The above thread describes a problem I hadn't noticed because it seems to appear only in certain WMs.

Open a new drawing in GIMP, start editing text. According to the GIMP people, it should be possible to move the text around while the text editor is still open.
This does not work in XFCE 4.4.3. 

Note that this kind of editing was not possible in older GIMPs - I believe the text editor window appeared in GIMP 2.4.x.

The only way to move text, is to click on the move tool, which closes the text editor.

I have XFCE 4.4.3 ('home compiled'), xorg 7.4 (idem), and GIMP 2.4.7

This is not a matter of life-or-death, as it is always possible to re-open the editor, and continue editing. But this problem might be upsetting the workings of other programs too.

GIMP user mail list thread:
Comment 1 Olivier Fourdan editbugs 2008-11-18 21:08:08 CET
Please provide a simple explanation on how to reproduce the bug, reading a whole thread to determine how to reproduce a problem is by no mean efficient for me.

Wrt the last comment, xfwm4 is not treating transients as modals.
Comment 2 Olivier Fourdan editbugs 2008-11-18 21:10:57 CET
btw it works just fine for me
Comment 3 Olivier Fourdan editbugs 2008-11-18 21:16:49 CET
clearly, the gimp is changing focus back to the editing dialog (easily noticeable as the decorations blink), not the WM, but still that does not stop from moving the text using the mouse.
Comment 4 John 2008-11-18 21:37:22 CET
To produce the problem, as stated above:

- Open the GIMP
- Open a new drawing,
- Click on the text tool,
- Click anywhere on the drawing to start editing text

Try to move the text with the cursor without closing the text editor.

NEW: I hadn't notice before, but when (trying to) starting dragging the text, the focus switches back to the edit window immediately (which makes it impossible for the drawing window to receive any cursor move events, I suppose).

As it seems to be a focusing issue, I tried several combinations of 'focus' settings, but none produce the desired effect.

It seems to me that focus shouldn't switch back to the editor window.

Comment 5 John 2008-11-18 21:40:18 CET
As Olivier noted too, the focus switches back, but _here_ the text doesn't move at all.

I wonder if what happens here isn't more logical - Can a window receive mouse events if it isn't focused?

Comment 6 Olivier Fourdan editbugs 2008-11-18 21:45:51 CET
The application changes the focus, not the WM. There is no such thing as "mouse" focus, focalisation is for keyboard, mouse events are sent to the windows independently of the focused window.

Try with othe WM (metacity, kwin -from KDE 4-), they all behave the same.
Comment 7 David Mohr 2008-11-19 07:15:05 CET
Can you please verify for us that you have gimp 2.6? In that gimp mailing list thread referenced, some person (don't remember who) explicitly mentioned that they were using gimp 2.4.
Comment 8 Olivier Fourdan editbugs 2008-11-19 09:18:51 CET
That feature was added in gimp 2.6 as mentioned in the gimp release notes:


See "Minor Changes" section.

This bug mentions gimp 2.4, which does not have this feature, tested in kwin, metacity and openbox.
Comment 9 John 2008-11-19 12:30:07 CET
As far as I can determine, on the changes page mentioned, I cannot find any mention to the text movement. The reference to the bounding box is not relevant, it's only to obtain wrapping.

Also, in the original thread (on GIMP users) both users (me and the other one) mention using 2.4.7, and _then_ Sven says it should work (or the WM is broken).

BTW, I have no other WM installed at the moment. I'll install another WM later today and report.

Comment 10 John 2008-11-20 04:22:15 CET
Hello people,

Sorry about all the paper wasted, but I just compiled GIMP 2.6.2, and it seems
there is no problem - text _is_ movable now. 

I guess Sven on the GIMP list hadn't registered I was using 2.4.7 of GIMP, and told me it should work.

Thanks for the attention.
Comment 11 John 2008-11-20 04:23:37 CET
This wasn't an XFCE problem at all (see previous comment)


Bug #4631

Reported by:
Reported on: 2008-11-18
Last modified on: 2009-07-14


Olivier Fourdan
CC List:
1 user



Additional information