FVWM: Wishlist: NoIconPixmap

From: Richard Lister <listerrj_at_helios.aston.ac.uk>
Date: Wed, 12 Jun 1996 11:51:55 +0100

Chuck

Come the Great Style Flag Rewrite how about a NoIconPixmap style to
complement the existing NoIconTitle?

I currently use fake pixmap names to achieve icons with just the
little title window (e.g. Style "*" none.xpm). Obviously this is
inelegant, but the main problem is that it doesn't work for applications
that supply their own icon (e.g. netscape).

Actually, on the subject of elegance, it would be quite nice to have
a syntax like Jarl's buttons, i.e.:

Style "name" Element (PropertyList), Element (PropertyList)

e.g.:

Style "Netscape" Window (NoTitle, Sticky), Icon (Title, Sticky, NoPixmap)

What do you think?

In the meantime, while we wait for the GSFR how about including the
following horrible hack to icons.c which allows us to say 'Icon NoPixmap'
and override the application's icon?

Ric


--- icons.c Wed Jun 12 11:19:53 1996
+++ icons.c.nopixmap Wed Jun 12 11:22:37 1996
_at_@ -85,6 +85,14 @@
          (tmp_win->wmhints)&&(tmp_win->wmhints->flags & IconPixmapHint))
     GetIconBitmap(tmp_win);
 
+ /* Allow override of application icon using 'Icon NoPixmap' */
+ if ( (tmp_win->icon_bitmap_file != NULL) &&
+ !(strncasecmp(tmp_win->icon_bitmap_file, "NoPixmap", 8)) ) {
+ tmp_win->icon_p_height = 0;
+ tmp_win->icon_p_width = 0;
+ }
+
+
   /* figure out the icon window size */
   if (!(tmp_win->flags & NOICON_TITLE)||(tmp_win->icon_p_height == 0))
     {


 ~~~~~~~~~~~~~~ Richard J. Lister r.j.lister_at_aston.ac.uk ~~~~~~~~~~~~~~~~
            Research Assistant, Neural Computing Research Group
                  Aston University, Birmingham B4 7ET, UK
 ~~~~~~~~~~~~~~~~~ http://www.ncrg.aston.ac.uk/~listerrj/ ~~~~~~~~~~~~~~~~~~
--
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 Wed Jun 12 1996 - 05:54:14 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:59 BST