#3197 Disable regular motion events when using XInput 2
This commit is contained in:
parent
8e6bf53233
commit
ba55369d42
|
@ -160,15 +160,12 @@ XWindowsScreen::XWindowsScreen(
|
||||||
|
|
||||||
// primary/secondary screen only initialization
|
// primary/secondary screen only initialization
|
||||||
if (m_isPrimary) {
|
if (m_isPrimary) {
|
||||||
// start watching for events on other windows
|
|
||||||
selectEvents(m_root);
|
|
||||||
m_xi2detected = detectXI2();
|
|
||||||
|
|
||||||
if (m_xi2detected) {
|
|
||||||
#ifdef HAVE_XI2
|
#ifdef HAVE_XI2
|
||||||
|
m_xi2detected = detectXI2();
|
||||||
|
if (m_xi2detected) {
|
||||||
selectXIRawMotion();
|
selectXIRawMotion();
|
||||||
#endif
|
|
||||||
} else
|
} else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// start watching for events on other windows
|
// start watching for events on other windows
|
||||||
selectEvents(m_root);
|
selectEvents(m_root);
|
||||||
|
@ -1300,7 +1297,7 @@ XWindowsScreen::handleSystemEvent(const Event& event, void*)
|
||||||
// handle the event ourself
|
// handle the event ourself
|
||||||
switch (xevent->type) {
|
switch (xevent->type) {
|
||||||
case CreateNotify:
|
case CreateNotify:
|
||||||
if (m_isPrimary) {
|
if (m_isPrimary && !m_xi2detected) {
|
||||||
// select events on new window
|
// select events on new window
|
||||||
selectEvents(xevent->xcreatewindow.window);
|
selectEvents(xevent->xcreatewindow.window);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue