property_notify: refresh_frame_parts hardwired.

Someone on IRC asked, how to avoid a form of DOS attack caused by a window which
changes its window name continuously.

I suggested using a timer in a function in prop-changes, instead of what themes
usually register(a direct call to rebuild-frame).

But a closer look at events.c, property_notify, shows, that the frame update is
hardwired in C.

         if (need_refresh && w->reparented
             && w->property_change != 0 && !WINDOW_IS_GONE_P (w))
                  w->property_change (w);

Is there any reason for
     w->property_change = refresh_frame_parts;
in list_frame_generator (frames.c) ?

i'm on 1.2, dunno about recent versions, but 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]