# HG changeset patch # User Goffi # Date 1524905837 -7200 # Node ID 916af9c1cb9b8281e0c1bb5f08d90a04d0b4df0e # Parent 8ed389d156901b03995e96ccf66faa89e406c5e3 widget handler: don't set split delete mode if there is not top/left widget diff -r 8ed389d15690 -r 916af9c1cb9b cagou/core/widgets_handler.py --- a/cagou/core/widgets_handler.py Sat Apr 28 10:43:54 2018 +0200 +++ b/cagou/core/widgets_handler.py Sat Apr 28 10:57:17 2018 +0200 @@ -182,7 +182,7 @@ if top.height <= REMOVE_WID_LIMIT: # we are in remove zone, we add visual hint for that - if not self._split_del: + if not self._split_del and self._top_wids: self._split_del = True self._draw_ellipse() else: @@ -227,7 +227,7 @@ if left.width <= REMOVE_WID_LIMIT: # we are in remove zone, we add visual hint for that - if not self._split_del: + if not self._split_del and self._left_wids: self._split_del = True self._draw_ellipse() else: