mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 745077 - Reconfigure InputReader on screen rotation. r=mwu a=b2g-only
This commit is contained in:
parent
195432d5ee
commit
d3400d40e1
@ -696,8 +696,15 @@ nsAppShell::NotifyNativeEvent()
|
||||
write(signalfds[1], "w", 1);
|
||||
}
|
||||
|
||||
/*static*/ void
|
||||
/* static */ void
|
||||
nsAppShell::NotifyScreenInitialized()
|
||||
{
|
||||
gAppShell->InitInputDevices();
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
nsAppShell::NotifyScreenRotation()
|
||||
{
|
||||
gAppShell->mReaderPolicy->setDisplayInfo();
|
||||
gAppShell->mReader->requestRefreshConfiguration(InputReaderConfiguration::CHANGE_DISPLAY_INFO);
|
||||
}
|
||||
|
@ -98,6 +98,7 @@ public:
|
||||
void NotifyNativeEvent();
|
||||
|
||||
static void NotifyScreenInitialized();
|
||||
static void NotifyScreenRotation();
|
||||
|
||||
protected:
|
||||
virtual ~nsAppShell();
|
||||
|
@ -681,6 +681,8 @@ nsScreenGonk::SetRotation(PRUint32 aRotation)
|
||||
sVirtualBounds.height,
|
||||
!i);
|
||||
|
||||
nsAppShell::NotifyScreenRotation();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user