From fd280ca81c6ee5a1f5f669c8ede0d0b448e89b69 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 14 Nov 2005 03:25:09 +0000 Subject: [PATCH] only damage the new regions SVN revision: 18467 --- legacy/ecore/src/lib/ecore_x/ecore_x_window.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x_window.c b/legacy/ecore/src/lib/ecore_x/ecore_x_window.c index a2c20dede5..0e49cb7230 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x_window.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x_window.c @@ -38,6 +38,8 @@ ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h) attr.colormap = DefaultColormap(_ecore_x_disp, DefaultScreen(_ecore_x_disp)); attr.border_pixel = 0; attr.background_pixmap = None; + attr.bit_gravity = NorthWestGravity; + attr.win_gravity = NorthWestGravity; attr.save_under = False; attr.do_not_propagate_mask = NoEventMask; attr.event_mask = KeyPressMask | @@ -65,7 +67,9 @@ ecore_x_window_new(Ecore_X_Window parent, int x, int y, int w, int h) CWBackPixmap | CWSaveUnder | CWDontPropagate | - CWEventMask, + CWEventMask | + CWBitGravity | + CWWinGravity, &attr); if (parent == DefaultRootWindow(_ecore_x_disp)) ecore_x_window_defaults_set(win); @@ -95,6 +99,8 @@ ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h) attr.colormap = DefaultColormap(_ecore_x_disp, DefaultScreen(_ecore_x_disp)); attr.border_pixel = 0; attr.background_pixmap = None; + attr.bit_gravity = NorthWestGravity; + attr.win_gravity = NorthWestGravity; attr.save_under = False; attr.do_not_propagate_mask = NoEventMask; attr.event_mask = KeyPressMask | @@ -122,7 +128,9 @@ ecore_x_window_override_new(Ecore_X_Window parent, int x, int y, int w, int h) CWBackPixmap | CWSaveUnder | CWDontPropagate | - CWEventMask, + CWEventMask | + CWBitGravity | + CWWinGravity, &attr); if (parent == DefaultRootWindow(_ecore_x_disp)) ecore_x_window_defaults_set(win);