From: SourceForge.net <no...@so...> - 2004-03-25 18:02:53
|
Bugs item #915350, was opened at 2004-03-12 15:16 Message generated for change (Comment added) made by jenglish You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=915350&group_id=12997 Category: 67. Unix Window Operations Group: current: 8.4.6 Status: Open Resolution: None Priority: 5 Submitted By: Joe English (jenglish) Assigned to: Joe English (jenglish) Summary: Tk sets min, max size in WM_HINTS when it shouldn't Initial Comment: (See also: http://bugs.kde.org/show_bug.cgi?id=67577) Problem: Tk toplevels always set the min_width, min_height, max_width, and max_height fields in the WM_NORMAL_HINTS property, even when the user has not called [wm minsize] or [wm maxsize]. The default minimum size is 1x1 (which is redundant), and the default maximum is taken from the size of the screen (which is not even correct in the context of multi-head displays). This causes recent versions of KWM (and possibly other WMs) to disable maximization. In any event, Tk shouldn't specify these fields unless explicitly instructed to. ---------------------------------------------------------------------- >Comment By: Joe English (jenglish) Date: 2004-03-25 07:50 Message: Logged In: YES user_id=68433 Jean-Luc Fontain reports (via email): > Just tried it [the patch] with moodss on Red Hat Fedora Core 1 > with kde 3.2.1 and it works just fine with both Tk 8.4.6 and 8.5a1. ---------------------------------------------------------------------- Comment By: Joe English (jenglish) Date: 2004-03-24 15:00 Message: Logged In: YES user_id=68433 With the attached patch, Tk will only set the PMaxSize hints flag if the program has called [wm maxsize $win $x $y], with $x or $y > 0. [wm maxsize $win 0 0] (or any values <= 0) will clear the PMaxSIze bit. If one or the other of $x and $y are <= 0, but not both, it will use the screen width (resp. height) as the maximum size for that dimension. This is a conservative patch; no other behaviour should be affected, iincluding min-size hints. (However, there are probably some some now-dead code paths that should be cleaned up). ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-03-13 04:13 Message: Logged In: NO Would you please announce in comp.lang.tcl when a patch becomes available? I would like to include it in my binarires (rpms, ...). Many thanks in advance. Jean-Luc (jfo...@fr...) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112997&aid=915350&group_id=12997 |