Author: mordante
Date: Sun Apr 27 13:29:28 2008
New Revision: 26167

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26167&view=rev
Log:
Send system events to the event handler for the X11 clipboard.

Modified:
    trunk/src/gui/widgets/event_handler.cpp

Modified: trunk/src/gui/widgets/event_handler.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/event_handler.cpp?rev=26167&r1=26166&r2=26167&view=diff
==============================================================================
--- trunk/src/gui/widgets/event_handler.cpp (original)
+++ trunk/src/gui/widgets/event_handler.cpp Sun Apr 27 13:29:28 2008
@@ -19,6 +19,7 @@
 
 #include "gui/widgets/event_handler.hpp"
 
+#include "clipboard.hpp"
 #include "config.hpp"
 #include "gui/widgets/widget.hpp"
 #include "gui/widgets/window.hpp"
@@ -210,6 +211,15 @@
                case SDL_VIDEORESIZE:
                        get_window().window_resize(*this, event.resize.w, 
event.resize.h);
                        break;
+
+#if defined(_X11) && !defined(__APPLE__)
+                       case SDL_SYSWMEVENT: {
+                               DBG_G_E << "Event: System event.\n";
+                               //clipboard support for X11
+                               handle_system_event(event);
+                               break;
+                       }
+#endif
 
                default:
                


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to