зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1083067 part.9 Remove nsGtkIMModule::IsVirtualKeyboardOpened() because it always returns false r=m_kato
This commit is contained in:
Родитель
ab614290a2
Коммит
6e1c43d928
|
@ -572,13 +572,6 @@ nsGtkIMModule::GetInputContext()
|
|||
return mInputContext;
|
||||
}
|
||||
|
||||
/* static */
|
||||
bool
|
||||
nsGtkIMModule::IsVirtualKeyboardOpened()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
GtkIMContext*
|
||||
nsGtkIMModule::GetCurrentContext() const
|
||||
{
|
||||
|
|
|
@ -89,10 +89,6 @@ public:
|
|||
InputContext GetInputContext();
|
||||
void OnUpdateComposition();
|
||||
|
||||
// If a software keyboard has been opened, this returns TRUE.
|
||||
// Otherwise, FALSE.
|
||||
static bool IsVirtualKeyboardOpened();
|
||||
|
||||
protected:
|
||||
// Owner of an instance of this class. This should be top level window.
|
||||
// The owner window must release the contexts when it's destroyed because
|
||||
|
|
|
@ -3186,10 +3186,8 @@ nsWindow::OnVisibilityNotifyEvent(GdkEventVisibility *aEvent)
|
|||
|
||||
mIsFullyObscured = false;
|
||||
|
||||
if (!nsGtkIMModule::IsVirtualKeyboardOpened()) {
|
||||
// if we have to retry the grab, retry it.
|
||||
EnsureGrabs();
|
||||
}
|
||||
// if we have to retry the grab, retry it.
|
||||
EnsureGrabs();
|
||||
break;
|
||||
default: // includes GDK_VISIBILITY_FULLY_OBSCURED
|
||||
mIsFullyObscured = true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче