ui/gtk3: Do not move Emojier popup with the active candidate in Xorg
Probably I think it's not useful to change the popup position frequently. The popup size is always slightly changed with the emoji annotation length.
This commit is contained in:
Родитель
e6badb494e
Коммит
809d880337
|
@ -1944,7 +1944,15 @@ public class IBusEmojier : Gtk.ApplicationWindow {
|
|||
x = 0;
|
||||
|
||||
bool changed = false;
|
||||
if (window_right_bottom.y > monitor_bottom) {
|
||||
// Do not up side down frequently.
|
||||
// The first pos does not show the lookup table yet but the
|
||||
// preedit only and the second pos shows the lookup table.
|
||||
if (m_lookup_table.get_cursor_pos() != 1) {
|
||||
if (m_is_up_side_down)
|
||||
y = m_cursor_location.y - allocation.height;
|
||||
else
|
||||
y = cursor_right_bottom.y;
|
||||
} else if (window_right_bottom.y > monitor_bottom) {
|
||||
y = m_cursor_location.y - allocation.height;
|
||||
// Do not up side down in Wayland
|
||||
if (m_input_context_path == "") {
|
||||
|
|
Загрузка…
Ссылка в новой задаче