Author: mordante
Date: Sun Apr 27 13:33:15 2008
New Revision: 26168

URL: http://svn.gna.org/viewcvs/wesnoth?rev=26168&view=rev
Log:
Properly clear the X11 clipboard when we select in another application.
Pasting from another application is still borked.

Modified:
    trunk/src/clipboard.cpp

Modified: trunk/src/clipboard.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/clipboard.cpp?rev=26168&r1=26167&r2=26168&view=diff
==============================================================================
--- trunk/src/clipboard.cpp (original)
+++ trunk/src/clipboard.cpp Sun Apr 27 13:33:15 2008
@@ -240,8 +240,11 @@
        if (xev.type == SelectionClear) {
                UseX x11;
 
-               if (xev.xselectionclear.selection == x11->XA_CLIPBOARD())
+               if (xev.xselectionclear.selection == x11->XA_CLIPBOARD() 
+                               || xev.xselectionclear.selection == XA_PRIMARY) 
{
+
                        clipboard_string = ""; //We no longer own the 
clipboard, don't try in-process C&P
+               }
        }
 }
 


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

Reply via email to