windows-x11.c: Fix leaked error trap

The merge of the commit af46ef3b 'meta_window_new: clean up error handling'
to the wayland branch accidentally added an extra call to meta_error_trap_push(),
meaning that we leaked one level of error traps for each new window.

Fixes warning:
  Gdk-WARNING **: XSetErrorHandler() called with a GDK error trap pushed.

https://bugzilla.gnome.org/show_bug.cgi?id=736589
This commit is contained in:
Owen W. Taylor 2014-09-12 16:30:31 -04:00
parent df2587a61c
commit 611f6741c2

View File

@ -2869,8 +2869,6 @@ meta_window_x11_new (MetaDisplay *display,
wm_state_to_string (existing_wm_state));
}
meta_error_trap_push (display);
/*
* XAddToSaveSet can only be called on windows created by a different
* client. with Mutter we want to be able to create manageable windows