X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=35a649b0c50982e57e2cd8eaaf827f5d4b865d17;hb=38ed4331b1a2858e4700154e10b9bd3a030cdbbf;hp=bac087876e9571748b8be8572b04946cdb0d063b;hpb=bb5294199982817a84cd6b5c1197115389cbad56;p=chaz%2Fopenbox 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;