Share

Tk Toolkit

Tracker: Bugs

8 Tk sets min, max size in WM_HINTS when it shouldn't - ID: 915350
Last Update: Comment added ( jenglish )

(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.


Joe English ( jenglish ) - 2004-03-12 23:16

8

Closed

Fixed

Jeffrey Hobbs

67. Unix Window Operations

obsolete: 8.4.6

Public


Comments ( 6 )

Date: 2004-04-21 02:53
Sender: jenglish

Logged In: YES
user_id=68433

> Please backport to core-8-4-branch.

Done.


Date: 2004-04-14 22:14
Sender: hobbsSourceForge.net SubscriberProject Admin

Logged In: YES
user_id=72656

Please backport to core-8-4-branch.


Date: 2004-04-04 20:24
Sender: jenglish

Logged In: YES
user_id=68433

Patch comitted; closing.

(Jeff -- if you'd like me to back-port this to the 8.4
branch, let me know.)


Date: 2004-03-25 15:50
Sender: jenglish

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.



Date: 2004-03-24 23:00
Sender: jenglish

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).



Date: 2004-03-13 12:13
Sender: nobody

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 (jfontain@free.fr)


Attached File ( 1 )

Filename Description Download
tk-wm-maxsize.patch Download

Changes ( 10 )

Field Old Value Date By
status_id Open 2004-04-21 02:53 jenglish
close_date 2004-04-04 20:24 2004-04-21 02:53 jenglish
resolution_id Remind 2004-04-21 02:53 jenglish
resolution_id None 2004-04-14 22:14 hobbs
status_id Closed 2004-04-14 22:14 hobbs
priority 5 2004-04-14 22:14 hobbs
status_id Open 2004-04-04 20:24 jenglish
close_date - 2004-04-04 20:24 jenglish
assigned_to jenglish 2004-04-04 20:24 jenglish
File Added 81258: tk-wm-maxsize.patch 2004-03-24 23:00 jenglish