* XplatUIX11.cs: This is perhaps a dangerous change, but it seems
authorChris Toshok <toshok@novell.com>
Fri, 6 Oct 2006 21:23:57 +0000 (21:23 -0000)
committerChris Toshok <toshok@novell.com>
Fri, 6 Oct 2006 21:23:57 +0000 (21:23 -0000)
commitb2f53494d3ba49339aefa49c99093f9625516e39
treea16503981942dcaec344b57454da629953af230b
parent6b0fdb5968746d725ec01e6c9d9382860c13db70
* XplatUIX11.cs: This is perhaps a dangerous change, but it seems
to have no evil effects.

- Stop selecting StructureNotifyMask on non-toplevel windows.

  The only way children should be resized is by using the SWF api,
  and we already send WM_WINDOWPOSCHANGED messages in those cases.
  Toplevel windows can be interacted with via the window manager,
  and so we keep the input mask there.

  The other event StructureNotifyMask gives us (that we care
  about) is DestroyNotify.  The code is already structured such
  that it assumes we won't be getting a DestroyNotify event for
  the window we pass to XDestroyWindow (which is what
  StructureNotifyMask is supposed to guarantee.)  So, that code
  shouldn't be affected by this either.

- Stop selecting VisibilityChangeMask altogether.

  We weren't doing anything with the resulting events anyway.

This vastly reduces the number of X requests and events we see
when resizing/laying out a large ui.

2006-10-06  Chris Toshok  <toshok@ximian.com>

svn path=/trunk/mcs/; revision=66380
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs