Christopher Roy Bratusek <zanghar freenet de> writes: >> An alternate approach would be to use the gravity to decide the 0,0 >> point for the initial placement. I'd be happy to come up with a >> patch, if desired. > > Yes. If you wrap a matcher around gravity or modify gravity directly > is you decision. I can't use the gravity to specify the origin for position since gravity may not be set yet, so here's a slightly different approach. With the patch below it's possible to specify a gravity instead of x,y coordinates as a position, in which case the gravity is set and the window is placed in the appropriate position: in a corner, centered on an edge, or at the center of the screen. It also sets the gravity if a negative x or y are provided. One problem is that the patch doesn't make this functionality available to the configuration interface, and I don't know how easy that would be to do.
It would be possible to separate this out to a different match setter, though that would presumably require adding to the hack at line 303 (presumably that has something to do with placement code?).
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil