hopefully taken B_INPUT_METHOD_STOPPED into account
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16325 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
a71a4d8199
commit
10214ec48f
@ -1504,10 +1504,16 @@ InputServer::_MethodizeEvents(EventList& events)
|
|||||||
SERIAL_PRINT(("IME received\n"));
|
SERIAL_PRINT(("IME received\n"));
|
||||||
|
|
||||||
int32 opcode;
|
int32 opcode;
|
||||||
if (fInputMethodWindow == NULL
|
if (event->FindInt32("be:opcode", &opcode) == B_OK) {
|
||||||
&& event->FindInt32("be:opcode", &opcode) == B_OK
|
if (fInputMethodWindow && opcode == B_INPUT_METHOD_STOPPED) {
|
||||||
&& opcode == B_INPUT_METHOD_STARTED)
|
fInputMethodWindow->PostMessage(B_QUIT_REQUESTED);
|
||||||
fInputMethodWindow = new (nothrow) BottomlineWindow();
|
fInputMethodWindow = NULL;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (fInputMethodWindow == NULL
|
||||||
|
&& opcode == B_INPUT_METHOD_STARTED)
|
||||||
|
fInputMethodWindow = new (nothrow) BottomlineWindow();
|
||||||
|
}
|
||||||
|
|
||||||
if (fInputMethodWindow != NULL) {
|
if (fInputMethodWindow != NULL) {
|
||||||
EventList newEvents;
|
EventList newEvents;
|
||||||
|
Loading…
Reference in New Issue
Block a user