I can't find any preference in GIMP for that behavior, so I think I can't help you....
(in KDE Configure your Desktop there also isn't a preference for that (I searched for it)
Other applications have that possibility,
maybe someone else knows a solution?