Skip to content
Snippets Groups Projects
Commit 52fe598d authored by Nick's avatar Nick :v:
Browse files

VncFlinger: sometimes we are fast, sometimes framework is

Change-Id: Ifc196fbd6079e63a3d3fa651b717b6f36caf1e5e
parent ded338d5
No related branches found
No related tags found
No related merge requests found
...@@ -284,12 +284,12 @@ void AndroidDesktop::notifyInputChanged() { ...@@ -284,12 +284,12 @@ void AndroidDesktop::notifyInputChanged() {
void AndroidDesktop::processInputChanged() { void AndroidDesktop::processInputChanged() {
if (mInputChanged && mInputDevice != nullptr) { if (mInputChanged && mInputDevice != nullptr) {
mInputChanged = false;
reloadInput(); reloadInput();
} }
} }
void AndroidDesktop::reloadInput() { void AndroidDesktop::reloadInput() {
mInputChanged = false;
mInputDevice->reconfigure(mDisplayModeRotated.width, mDisplayModeRotated.height, touch, relative); mInputDevice->reconfigure(mDisplayModeRotated.width, mDisplayModeRotated.height, touch, relative);
} }
...@@ -303,9 +303,7 @@ void AndroidDesktop::onBufferDimensionsChanged(uint32_t width, uint32_t height) ...@@ -303,9 +303,7 @@ void AndroidDesktop::onBufferDimensionsChanged(uint32_t width, uint32_t height)
mDisplayRect = mVirtualDisplay->getDisplayRect(); mDisplayRect = mVirtualDisplay->getDisplayRect();
if (mInputDevice->isOpened()) { // if we are resizing, first start gets called by java later reloadInput();
reloadInput();
}
mServer->setPixelBuffer(mPixels.get(), computeScreenLayout()); mServer->setPixelBuffer(mPixels.get(), computeScreenLayout());
mServer->setScreenLayout(computeScreenLayout()); mServer->setScreenLayout(computeScreenLayout());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment