Made event selection a little more robust. Also fixed failure

to marshall clipboard data when updating primary clipboards.
This commit is contained in:
crs
2002-04-29 14:08:48 +00:00
parent 6299eea7b6
commit 6a9a180688
7 changed files with 43 additions and 7 deletions

View File

@@ -406,6 +406,17 @@ void CXWindowsPrimaryScreen::onCloseDisplay()
m_window = None;
}
long CXWindowsPrimaryScreen::getEventMask(Window w) const
{
if (w == m_window)
return PointerMotionMask |// PointerMotionHintMask |
ButtonPressMask | ButtonReleaseMask |
KeyPressMask | KeyReleaseMask |
KeymapStateMask;
else
return PointerMotionMask | SubstructureNotifyMask;
}
void CXWindowsPrimaryScreen::selectEvents(
Display* display, Window w) const
{
@@ -419,8 +430,7 @@ void CXWindowsPrimaryScreen::selectEvents(
return;
// select events of interest
XSelectInput(display, w, PointerMotionMask | SubstructureNotifyMask |
PropertyChangeMask);
XSelectInput(display, w, PointerMotionMask | SubstructureNotifyMask);
// recurse on child windows
Window rw, pw, *cw;