(svn r7130) -Codechange: Handle the positioning of windows through the desc->left/top settings with

some special values (WDP_) instead of checking window-class. This also fixes FS#172
 now that we can position windows arbitrarily and are not restricted to window-classes.
This commit is contained in:
Darkvater
2006-11-11 10:12:00 +00:00
parent 73b8d80036
commit cab930041a
7 changed files with 43 additions and 27 deletions

View File

@@ -275,8 +275,10 @@ enum {
/* can be used as x or y coordinates to cause a specific placement */
enum {
WDP_AUTO = -1,
WDP_CENTER = -2,
WDP_AUTO = -1, ///< Find a place automatically
WDP_CENTER = -2, ///< Center the window (left/right or top/bottom)
WDP_ALIGN_TBR = -3, ///< Align the right side of the window with the right side of the main toolbar
WDP_ALIGN_TBL = -4, ///< Align the left side of the window with the left side of the main toolbar
};
typedef struct Textbuf {