diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-09 19:40:37 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-09 19:40:37 +0000 |
| commit | a95a364b9aa89ac409ec33d38940efee8931cca4 (patch) | |
| tree | 43f9927cbb5c70aeb2687742dd6a205d894bc386 /openbox/action.c | |
| parent | da226cdeff0072cf24afc8ff1e84d6cf7a3052ba (diff) | |
for very small windows make sure you can resize them larger
Diffstat (limited to 'openbox/action.c')
| -rw-r--r-- | openbox/action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c index bac08787..35a649b0 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1308,8 +1308,8 @@ void action_toggle_decorations(union ActionData *data) static guint32 pick_corner(int x, int y, int cx, int cy, int cw, int ch) { - if (x - cx > cw / 3 * 2) { - if (y - cy > ch / 3 * 2) + if ((cw / 3 < 1) || (x - cx > cw / 3 * 2)) { + if ((ch / 3 < 1) || (y - cy > ch / 3 * 2)) return prop_atoms.net_wm_moveresize_size_bottomright; else if (y - cy < ch / 3) return prop_atoms.net_wm_moveresize_size_topright; |
