GNOME Bugzilla – Bug 336651
Constraints bug causing width of windows to be made negative and causing crashes
Last modified: 2006-04-02 23:13:49 UTC
seb128 pointed this one out to me; originally filed at https://launchpad.net/distros/ubuntu/+bug/37021 Some investigation found that constrain_partially_onscreen has a bug that will resize the window and shrink it further if it's already thin and near the screen edge. Since constrain_partially_onscreen takes precedence over size constraints, this resulted in a window with width <= 0 and caused application crashes. Patch to fix it is pretty simple, though.
Created attachment 62409 [details] [review] Fix the bug
2006-04-02 Elijah Newren <newren gmail com> Fix constraints bug causing negative width windows and crashes. #336651 * src/constraints.c (constrain_partially_onscreen): Don't accidentally shove & resize the window by requiring more pixels to be onscreen than the size of the window.