[comp.windows.x] More uwm bugs fixed

tsf@theory.cs.cmu.edu.UUCP (03/08/87)

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.