diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-05 10:31:20 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-05 10:31:20 +0000 |
| commit | 2494762dbf89e0ea8eb72c460c6f7281fa0a2204 (patch) | |
| tree | ac1b917249f017201b28e96f685e1cb7dc9c99f7 /openbox/frame.h | |
| parent | 853d5f4b70ccc475ae25806a6683406119236b29 (diff) | |
a couple frame layout bugfixes hidden inside all this.. wee
fixes for maximizing windows:
- when you toggledecor, it will reconfigure once, but the new constraints from the decor changes would not be in effect when the window was resized to the contranits. fixed by calling frame_adjust_area first thing ni client_configure_fulll with fake=TRUE which will recalc all the frame geometry without resizing/redrawing anything in the frame. this way the decor can take effect in the geometries.
- when maxed horizontally, make the client fill the screen, but dont do this by just making it wider than the screen, fit it to the screen and adjust the titlebar/handle as appropriate to keep it all on the screen.
- when maxed horizontally and vertically, remove the handle from the decorations
Diffstat (limited to 'openbox/frame.h')
| -rw-r--r-- | openbox/frame.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openbox/frame.h b/openbox/frame.h index 8eacbb1b..6bb69599 100644 --- a/openbox/frame.h +++ b/openbox/frame.h @@ -93,7 +93,9 @@ struct _ObFrame gint max_x; /* x-position of the window maximize button */ gint close_x; /* x-position of the window close button */ gint bwidth; /* border width */ - gint cbwidth; /* client border width */ + gint rbwidth; /* title border width */ + gint cbwidth_x; /* client border width */ + gint cbwidth_y; /* client border width */ gboolean max_press; gboolean close_press; @@ -113,7 +115,8 @@ ObFrame *frame_new(); void frame_show(ObFrame *self); void frame_hide(ObFrame *self); void frame_adjust_shape(ObFrame *self); -void frame_adjust_area(ObFrame *self, gboolean moved, gboolean resized); +void frame_adjust_area(ObFrame *self, gboolean moved, + gboolean resized, gboolean fake); void frame_adjust_state(ObFrame *self); void frame_adjust_focus(ObFrame *self, gboolean hilite); void frame_adjust_title(ObFrame *self); |
