~cmiller/ubuntu/trusty/icewm/translations-cause-crash-lp447883

« back to all changes in this revision

Viewing changes to src/misc.cc

  • Committer: Bazaar Package Importer
  • Author(s): Eduard Bloch
  • Date: 2009-01-26 00:18:14 UTC
  • mfrom: (1.3.1 upstream) (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090126001814-ea5ceoy4uroruz72
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
void logEvent(const XEvent &xev) {
25
25
    switch (xev.type) {
26
 
#if 0
 
26
#if 1
27
27
    case CreateNotify:
28
28
        msg("window=0x%lX: create serial=%10d parent=0x%lX, (%d:%d-%dx%d) border_width=%d, override_redirect=%s",
29
29
            xev.xcreatewindow.window,
46
46
    case DestroyNotify:
47
47
        break;
48
48
#endif
49
 
#if 0
 
49
#if 1
50
50
    case MapRequest:
51
51
        msg("window=0x%lX: mapRequest serial=%10d parent=0x%lX",
52
52
            xev.xmaprequest.window,
79
79
    case UnmapNotify:
80
80
        break;
81
81
#endif
82
 
#if 0
 
82
#if 1
83
83
    case ConfigureRequest:
84
84
        msg("window=0x%lX: %s configureRequest serial=%10d parent=0x%lX, (%d:%d-%dx%d) border_width=%d, above=0x%lX, detail=%d, value_mask=0x%lX",
85
85
            xev.xconfigurerequest.window,
126
126
        break;
127
127
#endif
128
128
 
129
 
#if 0
 
129
#if 1
130
130
    case ReparentNotify:
131
131
        msg("window=0x%lX: reparentNotify serial=%10d event=0x%lX, parent=0x%lX, (%d:%d), override_redirect=%s",
132
132
            xev.xreparent.window,
227
227
    case MotionNotify:
228
228
        break;
229
229
#endif
230
 
#if 1
 
230
#if 0
231
231
    case EnterNotify:
232
232
    case LeaveNotify:
233
233
        msg("window=0x%lX: %s serial=%10d root=0x%lX, subwindow=0x%lX, time=%ld, (%d:%d %d:%d) mode=%d detail=%d same_screen=%s, focus=%s state=0x%X",
250
250
    case LeaveNotify:
251
251
        break;
252
252
#endif
253
 
#if 1
 
253
#if 0
254
254
    case KeyPress:
255
255
    case KeyRelease:
256
256
        msg("window=0x%lX: %s root=0x%lX, subwindow=0x%lX, time=%ld, (%d:%d %d:%d) state=0x%X keycode=0x%x same_screen=%s",
281
281
    case Expose:
282
282
        break;
283
283
#endif
284
 
#if 0
 
284
#if 1
285
285
    default:
286
286
        msg("window=0x%lX: unknown type=%d", xev.xany.window, xev.type);
287
287
        break;