Re: FVWM: Can I have my long icon labels all on screen?

From: Dan Espen <dane_at_bae.bellcore.com>
Date: Fri, 08 Aug 1997 09:16:02 -0400

Elmar Kurgpold <elmar_at_autodesk.com> writes:
> When a window is iconified, it has a nice short icon label (ex.
> "Netscape"). When the icon has the focus, the full label shows up (ex.
> "Netscape: The Title of the Page I am Looking At"). The problem is the
> icon label is centered on the icon, and sometimes part of the label
> goes off screen if the icon is near the edge. Is it possible to force
> the entire title to show up on screen, a la CDE?

Apply this patch in the fvwm directory:

*** icons.c.orig Fri Aug 8 09:07:55 1997
--- icons.c Fri Aug 8 09:12:11 1997
***************
*** 228,233 ****
--- 228,245 ----
              Tmp_win->icon_w_width = Tmp_win->icon_p_width;
            Tmp_win->icon_xl_loc = Tmp_win->icon_x_loc -
              (Tmp_win->icon_w_width - Tmp_win->icon_p_width)/2;
+ /* start keep label on screen. dje 8/7/97 */
+ if (Tmp_win->icon_xl_loc < 0) { /* if new loc neg (off left edge) */
+ Tmp_win->icon_xl_loc = 0; /* move to edge */
+ } else { /* if not on left edge */
+ /* if (new loc + width) > screen width (off edge on right) */
+ if ((Tmp_win->icon_xl_loc + Tmp_win->icon_w_width) >
+ Scr.MyDisplayWidth) { /* off right */
+ /* position up against right edge */
+ Tmp_win->icon_xl_loc = Scr.MyDisplayWidth - Tmp_win->icon_w_width;
+ }
+ /* end keep label on screen. dje 8/7/97 */
+ }
          }
      }
    else


> ++Elmar
> --

--
Dan Espen                                    Phone: (908) 699-5570
dane_at_bae.bellcore.com
444 Hoes Lane  Room RRC 1C-214
Piscataway, NJ 08854
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Fri Aug 08 1997 - 08:17:52 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST