checkpoint. implementing clipboard owner in x windows.

This commit is contained in:
crs
2001-11-25 22:20:41 +00:00
parent c19022e965
commit ff9c3ba7af
4 changed files with 222 additions and 55 deletions

View File

@@ -121,7 +121,10 @@ void CXWindowsPrimaryScreen::run()
// we just lost the selection. that means someone else
// grabbed the selection so this screen is now the
// selection owner. report that to the server.
m_server->grabClipboard();
if (lostClipboard(xevent.xselectionclear.selection,
xevent.xselectionclear.time)) {
m_server->grabClipboard();
}
break;
case SelectionNotify: