Re: [Gimp-developer] Re: Windows suggestion
Hi, Tor Lillqvist [EMAIL PROTECTED] writes: I think what you meant was that one could tell the GIMP toolbox (and whatever windows are docked below it) to place itself at some edge of the sceen (and maximize its height or width), and then if one would maximize a GIMP image window it would only expand just enough not to cover the toolbox. This might be doable cross-platform in GTK, using so-called window hints. Or some other way. It would certainly be worthwhile to improve the function that determines the initial size of a GIMP image window. This function could take into account the GIMP dockables and other image windows and check if there's dominant empty space between them. If that's the case, the image window could be sized so that it fits into this space. With some luck, the window manager will even put it there ;) This same algorithm could be made available in the View menu. It would expand an image window as much as possible w/o overlapping other GIMP windows. Most of the information necessary to implement such a heuristic could be taken from the existing session handling code. I don't know however if there's a portable way to request information about panels or other non-GIMP windows that should be taken into account. Sven ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Re: Windows suggestion
On Thu, Jan 29, 2004 at 01:19:14AM +0100, Sven Neumann [EMAIL PROTECTED] wrote: check if there's dominant empty space between them. If that's the case, the image window could be sized so that it fits into this space. I am not sure wether this is possible, as you only know the size of a window after it has been mapped, because of the decorations (I might err, but trying to do this portably smells like a nightmare :) -- -==- | ==-- _ | ---==---(_)__ __ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / [EMAIL PROTECTED] |e| -=/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | | ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
[Gimp-developer] Re: Windows suggestion
codemastr writes: Well the people in #gimp were telling me in Linux that's called a sticky window. If so, they probably misunderstood you (or I did). A sticky window is (as I understand it) a window that is always on top of all other windows, and stays sticked at the same place even if you switch virtual desktops. You can instruct some window managers to treat certain windows (based on the window name) as sticky. I don't think this was what you had in mind, was it? I think what you meant was that one could tell the GIMP toolbox (and whatever windows are docked below it) to place itself at some edge of the sceen (and maximize its height or width), and then if one would maximize a GIMP image window it would only expand just enough not to cover the toolbox. This might be doable cross-platform in GTK, using so-called window hints. Or some other way. --tml ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer