Article View: comp.windows.x
Article #25062More uwm bugs fixed
From: tsf
Date: Sat, 07 Mar 1987 21:59
Date: Sat, 07 Mar 1987 21:59
49 lines
2036 bytes
2036 bytes
Here are fixes for two bugs in uwm:
If the keyword "nofreeze" appears in your .uwmrc file, the old version
doesn't always display the text in uwm-controlled icons.
(Specifically, the icon display started losing after you used uwm to
move a window.)
If you press rubout when the cursor is positioned upon an icon with a
zero-character name, the old version bombed.
Here are the diffs to GetButton.c. The first change is for the first
bug, the second change is for the second bug.
***************
*** 128,134
* is not of zero length, simply repaint the text in the icon window
* and return FALSE.
*/
! if (button_event->type == ExposeWindow && Frozen == 0) {
XClear(icon);
if (icon_str_len != 0) {
XTextPad(icon,
--- 128,134 -----
* is not of zero length, simply repaint the text in the icon window
* and return FALSE.
*/
! if (button_event->type == ExposeWindow && (!Freeze || Frozen == 0)) {
XClear(icon);
if (icon_str_len != 0) {
XTextPad(icon,
***************
*** 228,234
/*
* Set the window name to the new string.
*/
! XStoreName(icon_info.assoc_wind, icon_str);
/*
* Determine the new icon window configuration.
--- 228,234 -----
/*
* Set the window name to the new string.
*/
! XStoreName(icon_info.assoc_wind, icon_str?icon_str:"");
/*
* Determine the new icon window configuration.
Technical Details
Message-ID:
<1018@theory.cs.cmu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!rochester!pt.cs.cmu.edu!theory.cs.cmu.edu!tsfShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!rochester!pt.cs.cmu.edu!theory.cs.cmu.edu!tsf From: tsf@theory.cs.cmu.edu.UUCP Newsgroups: comp.windows.x Subject: More uwm bugs fixed Message-ID: <1018@theory.cs.cmu.edu> Date: Sat, 7-Mar-87 16:59:07 EST Article-I.D.: theory.1018 Posted: Sat Mar 7 16:59:07 1987 Date-Received: Sun, 8-Mar-87 17:33:48 EST Organization: Carnegie-Mellon University, CS/RI Lines: 49