#772033 gimp: Gimp evades certain window manager settings - places dialogs on wrong monitor

Package:
gimp
Source:
gimp
Description:
GNU Image Manipulation Program
Submitter:
"I.P."
Date:
2015-01-10 14:39:04 UTC
Severity:
normal
#772033#5
Date:
2014-12-04 14:03:15 UTC
From:
To:

#772033#10
Date:
2014-12-06 15:56:51 UTC
From:
To:
Which window manager?
#772033#15
Date:
2014-12-07 12:27:05 UTC
From:
To:
I'm sorry, somehow I missed to post the bug description.

I'm using LXDE with openbox and have it configured to always put
windows/dialogs onto the monitor where the mouse pointer currently is.
Gimp instead *always* opens the save-file dialog and some other dialogs
on the other monitor. This is confusing behavior and in my case pretty
annoying, since I have pen input on one monitor and have to switch to
the mouse to drag over the window everytime this happens.
I think this might a Gimp bug, because the WM setting works for every
other application I use, except for Gimp.

#772033#20
Date:
2015-01-10 14:36:35 UTC
From:
To:
Deleting ~/.gimp-2.8/sessionrc fixed the problem for me.

There seems to be a bug that caused the file not to get updated. This
caused the dialog windows to show up on the last saved location which
was on another monitor.
I can't investigate this problem anymore, because I deleted the file
without any backup.

Here is something I found digging into the code. It turned out not to be
the cause of the bug, but it's something which just makes you furious
when it takes you hours to debug an issue like that.
But hey, it's not a bug, it's a "feature" ^^ (from gimpsessioninfo.c):

  /*  Window managers and windowing systems suck. They have their own
   *  ideas about WM standards and when it's appropriate to honor
   *  user/application-set window positions and when not. Therefore,
   *  use brute force and "manually" position dialogs whenever they
   *  are shown. This is important especially for transient dialog,
   *  because window managers behave even "smarter" then...
   */

I wonder why gimp has to force window positions at all. The Window
Manager I'm using would have chosen perfectly reasonable places for the
dialog windows (well, I especially configured it to do that).