diff options
Diffstat (limited to 'gdk/x11/gdkwindow-x11.c')
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 09399dcf1a..c8a42595ed 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -33,8 +33,7 @@ #include <X11/extensions/shape.h> #endif -int nevent_masks = 20; -int event_mask_table[20] = +const int event_mask_table[20] = { ExposureMask, PointerMotionMask, @@ -57,6 +56,7 @@ int event_mask_table[20] = 0, /* PROXIMTY_OUT */ SubstructureNotifyMask }; +const int nevent_masks = sizeof(event_mask_table)/sizeof(int); static gboolean gdk_window_have_shape_ext (void); |