After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336651 - Constraints bug causing width of windows to be made negative and causing crashes
Constraints bug causing width of windows to be made negative and causing crashes
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
trunk
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks:
 
 
Reported: 2006-03-30 17:50 UTC by Elijah Newren
Modified: 2006-04-02 23:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix the bug (1.31 KB, patch)
2006-03-30 17:51 UTC, Elijah Newren
committed Details | Review

Description Elijah Newren 2006-03-30 17:50:41 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.
Comment 1 Elijah Newren 2006-03-30 17:51:30 UTC
Created attachment 62409 [details] [review]
Fix the bug
Comment 2 Elijah Newren 2006-04-02 23:13:49 UTC
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.