~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to iconmgr.c

  • Committer: Matthew Fuller
  • Date: 2016-09-20 20:22:19 UTC
  • mfrom: (523.1.26 cleanups)
  • Revision ID: fullermd@over-yonder.net-20160920202219-ykdjyr1whmip1e5u
Cleanup organization of some window handling code.

Especially move various window-handling bits ouf of menus.c and util.c,
where they have no business being.  Create win_ops and win_util files for
much of it, as well as moving some to other existing locations they
better fit.  Do a little light commenting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
#include "otp.h"
81
81
#include "add_window.h"
82
82
#include "gram.tab.h"
 
83
#include "win_utils.h"
83
84
 
84
85
 
85
86
/* Where we start drawing the name in the icon manager */
245
246
                Scr->workSpaceMgr.workSpaceList->iconmgr = Scr->iconmgr;
246
247
        }
247
248
 
 
249
 
 
250
        /*
 
251
         * Grab buttons/keystrokes for icon managers appropriately.
 
252
         * Normally, this is done in AddWindow(), but it explicitly skips it
 
253
         * for icon managers.  It's not at all clear why GrabButtons() would
 
254
         * do so; I don't think it needs to.  GrabKeys() does do some looping
 
255
         * over the Scr->iconmgr list at the end though, so it's possible we
 
256
         * need to delay calling it until now when they list is all filled
 
257
         * up.  This needs further investigation; it may be that the special
 
258
         * case and this code can be removed.  X-ref comments in add_window.c
 
259
         * about it.
 
260
         */
248
261
        for(q = Scr->iconmgr; q != NULL; q = q->nextv) {
249
262
                for(p = q; p != NULL; p = p->next) {
250
263
                        GrabButtons(p->twm_win);