Hi all!

Im having some troubles trying to pacth ctwm, I hope you could help me.

I dont like to have any bitmaps on the icons, I like to have all of them
the same size and with a border (when an app specify a bitmap the icon is
drawn without a border). So I made a 1x1 pixmap and started to add window
names inside an 'Icons' statement and a 'ForceIcons' in the config file,
eventhough this solve the problem some way it is annoying to have to add
window names every time, also the icons doesnt align right the top of the
screen.

So I made a patch to avoid ctwm to put a bitmap on the icons and it is
working. I wanted to add a config statement named 'NoIconBitmap' or so
to the parser but I've failed. I tried to add the pieces of code I thought
were necessary to the grammar but Im getting some erros.

Here is the patch I thought would make the parser understand this new
statement. I dont think you need my config file (I dont want the make this
email bigger) but in the other case let me know.

I havent add the new statement to the config file and the error
Im getting is something like this:

        'ignoring unknown keyword:  noiconmanagers'

where this keyword is somewhere in the middle of the config file. I think
this error message is irrelevant except for the fact that I've broken the
parser.

I think its no so difficult but I cannot realize what Im doing wrong.
Is there something Im missing?

Thanks in advance...

--
Greetings,
VĂ­ctor Toofic
diff -r ctwm.old/gram.y ctwm/gram.y
145c145
< %token <num> IGNORE_TRANSIENT DONTTOGGLEWORKSPACEMANAGERSTATE
---
> %token <num> IGNORE_TRANSIENT DONTTOGGLEWORKSPACEMANAGERSTATE NO_ICON_BITMAP 
336a337,340
>               | NO_ICON_BITMAP                { list = &Scr->NoIconBitmap; }
>                 win_list
>               | NO_ICON_BITMAP                { if (Scr->FirstTime)
>                                               Scr->NoIconBitmaps = TRUE; }
diff -r ctwm.old/parse.c ctwm/parse.c
979a980
>     { "noiconbitmap",         NO_ICON_BITMAP, 0  },
diff -r ctwm.old/screen.h ctwm/screen.h
282a283
>     name_list *NoIconBitmap;  /* list of window names with no icon bitmap */
374a376
>     short NoIconBitmaps;      /* put bitmaps on icons */

Reply via email to