git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35495
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Suspends X11 errors. Used when we expect errors but they are not fatal
// for us.
-extern "C" {
+extern "C"
+{
+ typedef int (*wxX11ErrorHandler)(Display *, XErrorEvent *);
+
static int wxX11ErrorsSuspender_handler(Display*, XErrorEvent*) { return 0; }
}
+
class wxX11ErrorsSuspender
{
public:
private:
Display *m_display;
- int (*m_old)(Display*, XErrorEvent *);
+ wxX11ErrorHandler m_old;
};