equal
deleted
inserted
replaced
128 } else { |
128 } else { |
129 // ignore other attributes |
129 // ignore other attributes |
130 } |
130 } |
131 |
131 |
132 attributeIndex++; |
132 attributeIndex++; |
133 |
133 |
134 bool debug = configuration.debug; |
134 bool debug = configuration.debug; |
135 bool run = !configuration.dryRun; |
135 bool run = !configuration.dryRun; |
136 |
136 |
137 if (attributeIndex % attributes.size() == 0) { |
137 if (attributeIndex % attributes.size() == 0) { |
138 if (currentEvent.type == Event::Type::KEY) { |
138 if (currentEvent.type == Event::Type::KEY) { |
146 if (run) XTestFakeMotionEvent(display.display, currentEvent.screen, currentEvent.x, currentEvent.y, currentEvent.delay); |
146 if (run) XTestFakeMotionEvent(display.display, currentEvent.screen, currentEvent.x, currentEvent.y, currentEvent.delay); |
147 } else { |
147 } else { |
148 std::wcerr << L"Unsupported event" << std::endl; |
148 std::wcerr << L"Unsupported event" << std::endl; |
149 } |
149 } |
150 |
150 |
|
151 XFlush(display.display); |
151 attributeIndex = 0; |
152 attributeIndex = 0; |
152 currentEvent = Event(); |
153 currentEvent = Event(); |
153 } |
154 } |
154 } |
155 } |
155 |
156 |