captaincurrie / wmii

Automatically exported from code.google.com/p/wmii
Other
0 stars 1 forks source link

Crash when resizing non-floating window #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
  1. Create several non-floating windows
  2. Resize a window using $MODKEY-RightMouse in
     top/bottom/left/right center of the window.

For example, if the below grid were a 5 pixel by 5 pixel
window, resizing by clicking on a 1 would crash wmii:

  0 0 1 0 0
  0 0 1 0 0
  1 1 0 1 1
  0 0 1 0 0
  0 0 1 0 0

This appears to be an issue in the latest HG checkout.

The crash appears to be cause by the following section of
code from mouse_resizecolframe().

  > assert((align&(East|West)) != (East|West));
  > assert((align&(North|South)) != (North|South));

For example, when clicking in the center-left of the window,
align will be both North and South causing the second
assertion to fail.

Original issue reported on code.google.com by andy753...@gmail.com on 21 Jul 2010 at 5:19

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 8b5f415a90.

Original comment by maglion...@gmail.com on 21 Jul 2010 at 2:08