lanoxx / tilda

A Gtk based drop down terminal for Linux and Unix
GNU General Public License v2.0
1.27k stars 162 forks source link

The pulldown hotkey does not pull Tilda window up when the mouse cursor is over it #403

Open bodqhrohro opened 4 years ago

bodqhrohro commented 4 years ago

This issue annoys me for several years already, but I did not pay much attention to it until now.

It's eventual: after some restarts the bug is gone, but on next starts it may return again. But the behaviour remains the same while a process is running.

The bug does not seem to be related to a certain hotkey, as I tried to change them; it's reproduced also with combinations that don't contain ambiguous keys (Ctrl/Primary and Mod4/Super).

With this bug, the Tilda window gets unfocused for a while when I press the hotkey, so the text cursor becomes void.

A screencast may explain it better: tilda_focus1

(While recording it, I also noticed that the bug does not happen when the cursor is over Tilda's tab bar).

My session is Compiz 0.8.17 on Debian Testing.

lanoxx commented 4 years ago

I am not able to reproduce this issue. Could you try a different window manager, maybe with Gnome-shell's mutter or metacity and let me know if the problem also occurs there?

On my system this has never happened.

bodqhrohro commented 4 years ago

Tested with Mutter, Marco and Openbox: everywhere the pulldown is not working when the cursor is over the terminal. So this does not seem to depend on the window manager.

lanoxx commented 4 years ago

Could you share your tilda configuration file?

bodqhrohro commented 4 years ago
tilda_config_version="0.9.6"
# command=""
font="Ubuntu Mono 12"
key="<Primary><Shift><Alt>space"
addtab_key="<Primary><Shift>t"
fullscreen_key="F11"
toggle_transparency_key="F12"
toggle_searchbar_key="<Shift><Control>f"
closetab_key="<Shift><Control>w"
nexttab_key="<Control>Page_Down"
prevtab_key="<Control>Page_Up"
movetableft_key="<Shift><Control>Page_Up"
movetabright_key="<Shift><Control>Page_Down"
gototab_1_key="<Alt>1"
gototab_2_key="<Alt>2"
gototab_3_key="<Alt>3"
gototab_4_key="<Alt>4"
gototab_5_key="<Alt>5"
gototab_6_key="<Alt>6"
gototab_7_key="<Alt>7"
gototab_8_key="<Alt>8"
gototab_9_key="<Alt>9"
gototab_10_key="<Alt>0"
copy_key="<Shift><Control>c"
paste_key="<Shift><Control>v"
quit_key="<Shift><Control>q"
title="  "
background_color="white"
# working_dir=""
web_browser="x-www-browser"
increase_font_size_key="<Control>equal"
decrease_font_size_key="<Control>minus"
normalize_font_size_key="<Control>0"
# show_on_monitor=""
word_chars="-A-Za-z0-9,./?%&#:_"
lines=1000
max_width=1225
max_height=384
min_width=1
min_height=1
x_pos=0
y_pos=25
tab_pos=0
expand_tabs=false
show_single_tab=false
backspace_key=0
delete_key=1
d_set_title=3
command_exit=2
scheme=0
slide_sleep_usec=15000
animation_orientation=0
timer_resolution=200
auto_hide_time=2000
on_last_terminal_exit=0
prompt_on_exit=false
palette_scheme=0
non_focus_pull_up_behaviour=0
cursor_shape=0
title_max_length=25
palette = {10280, 10794, 13878, 65535, 0, 0, 0, 65535, 0, 65535, 65535, 0, 32896, 32896, 65535, 65535, 0, 65535, 0, 65535, 61166, 65535, 65535, 65535, 16448, 16448, 16448, 49344, 0, 0, 0, 49344, 0, 49344, 49344, 0, 32896, 32896, 49344, 49344, 0, 32896, 0, 53456, 45232, 49344, 49344, 32896}
scrollbar_pos=1
back_red=0
back_green=0
back_blue=65535
text_red=65535
text_green=65535
text_blue=0
cursor_red=65535
cursor_green=0
cursor_blue=0
scroll_history_infinite=false
scroll_on_output=true
notebook_border=false
scrollbar=false
grab_focus=true
above=true
notaskbar=true
bold=true
blinks=true
scroll_on_key=true
bell=true
run_command=false
pinned=true
animation=false
hidden=false
set_as_desktop=false
centered_horizontally=false
centered_vertically=false
enable_transparency=false
auto_hide_on_focus_lost=false
auto_hide_on_mouse_leave=false
title_behaviour=2
inherit_working_dir=true
command_login_shell=false
start_fullscreen=false
confirm_close_tab=false
back_alpha=52415
show_title_tooltip=false
# image=""
# show_on_monitor_number=0
# transparency=0
# title_max_length_flag=false
# antialias=false
# double_buffer=false
# scroll_background=false
# use_image=false

I noticed the non_focus_pull_up_behaviour setting only now >.< When I set it to "Hide Terminal", the bug is gone. So looks like Tilda just can't determine that the window is already focused when the cursor is over the terminal area.

lanoxx commented 4 years ago

Which version of tilda are you using?

bodqhrohro commented 4 years ago

1.5~alpha.

I forgot that I built it manually over a year ago. Will try the latest one.

ruffson commented 4 years ago

1.5~alpha.

I forgot that I built it manually over a year ago. Will try the latest one.

Did you have any luck with it? Struggling as well with this, running Mint 19 with Cinnamon and Tilda 1.4.1-2 (via apt).

bodqhrohro commented 4 years ago

Did you have any luck with it?

Nope, I got an issue with resolving the libvte location (probably because I built it manually before too and uninstalled incorrectly), so I put it off temporarily. I thought about trying the version from distribution, but as it's the same as yours and you can reproduce this bug too, there's no point in it. It would be more useful to check if the bug is still relevant, as it could get fixed unintentionally.

ruffson commented 4 years ago

Did you have any luck with it?

Nope, I got an issue with resolving the libvte location (probably because I built it manually before too and uninstalled incorrectly), so I put it off temporarily. I thought about trying the version from distribution, but as it's the same as yours and you can reproduce this bug too, there's no point in it. It would be more useful to check if the bug is still relevant, as it could get fixed unintentionally.

Too bad! Back to Guake then.

Pablorg99 commented 4 years ago

I have the same problem. Same version and system as @ruffson. I can share my configuration file but I think the problem with this issue is that @lanoxx can not reproduce it. Can I help you in any way? I do not have the knowledge to create a patch for this :(

EDIT: I have done an advancement, but it is only confusing me. On my laptop, I have the same system, desktop environment, tilda version and configuration file. The problem does not exist.

lanoxx commented 4 years ago

@Pablorg99 if you can reproduce it on one system but not on the other, try to find if there are any differences between your systems. Try to create a diff between the two tilda configs to see if its maybe caused by a specific configuration option.

Jadzia2341 commented 4 years ago

Very similar issue here.

When the tilda terminal is in focus (i.e. the active window), the pulldown key does not work, an the terminal doesn't pull up again. When I click with the mouse on another Desktop window, or the Desktop itself so that the Tilda terminal window is no longer the active window/in focus, then the pulldown key works again and pulls the tilda terminal up to disappear. This is independent of which key is chosen for the pulldown key.

I use Linux Mint Mate, the latest version always (continuous updates), since years. The problem just started to appear like one or two weeks ago. Tilda version is 1.4.1.

lanoxx commented 4 years ago

Could you run tilda with G_MESSAGES_DEBUG=all option like: G_MESSAGES_DEBUG=all tilda. This should enable a bit more debug output. Maybe it helps do track down the issue.

I have setup a VM with Linux Mint Mate and still cannot reproduce the problem. I assume this is some kind of edge case either due to a specific config option in tilda.

Have you tried to change the Non-Fucus Pull-up behavior in the General Tab under preferences? Maybe that has an effect on the bug.

Jadzia2341 commented 4 years ago

@lanoxx Thank you very much for your answer. I did not previously change the Non-Focus Pull-up behavior, but I have now changed it to "Hide Terminal", and now it works :-) Actually, I think 1 or 2 weeks ago when the problem started, I remember that some settings were change/reset, and I needed to adjust them again to my preferences. Maybe this setting was affected at that time (but I did not change it myself). Finally my beloved tilda works smoothly again :-)

lanoxx commented 4 years ago

Could you post your config file to https://gist.github.com/ (the version which reproduces the issue)?

lanoxx commented 4 years ago

The goal of the non-focus pull up behavior, is to focus the tilda window when the window is still visible but has lost focus. With the Hide Terminal option, when the tilda window is pulled down but does not have focus, it will still be pulled up.

Pablorg99 commented 4 years ago

Have you tried to change the Non-Fucus Pull-up behavior in the General Tab under preferences? Maybe that has an effect on the bug.

Changing this setting from "Focus Terminal" to "Hide Terminal" also solved my problem.

Jadzia2341 commented 4 years ago

You can find the config files here: https://gist.github.com/Jadzia2341/03223f82ac3f927b623c7d8b49ee49c1 Interestingly, there are two config files, config_0 with a timestamp from today, and config_1, with a timestamp from April 3rd, which is around the time when the problems started.

lanoxx commented 4 years ago

@Jadzia2341 Tilda instances are numbered by running processes. If you start a second tilda process it will read from config_1. The preferences window will tell you in the title which tilda instance your are working with.

joegoldman commented 4 years ago

Hi Team,

I'd also like to add a +1 to this issue - and can confirm the suggestion from @lanoxx and confirmed by @Pablorg99 to change Non-Focus Pull Up behaviour also fixes the issue for me.

I am running fairly stock standard Ubuntu MATE 18.04 with tilda 1.4.1

Glad I found a work-around but an issue definitely exists.

Thanks.

d-boyadzhiev commented 2 years ago

Same behavior on Debian 11, xfce4 desktop and Tilda 1.5.4 (distro package). I use grave as pull-down and with holding and pressing grave repeatedly, every 3rd or 4th keystroke tilda pulls up. I think that non-focus mode 'Hide terminal' was the default before (Debian 9 before reinstalling) and this new behavior confused me a lot, I had to go to a panel bar with the mouse pointer to be able to pull-up. Here is the config with the problem peristing:

tilda_config_version="1.5.4" command="" font="Monospace 11" key="grave" addtab_key="t" fullscreen_key="F11" toggle_transparency_key="F12" toggle_searchbar_key="f" closetab_key="w" nexttab_key="Page_Down" prevtab_key="Page_Up" movetableft_key="Page_Up" movetabright_key="Page_Down" gototab_1_key="1" gototab_2_key="2" gototab_3_key="3" gototab_4_key="4" gototab_5_key="5" gototab_6_key="6" gototab_7_key="7" gototab_8_key="8" gototab_9_key="9" gototab_10_key="0" copy_key="c" paste_key="v" quit_key="q" title="Tilda" background_color="white"

working_dir=""

web_browser="#xdg-open" increase_font_size_key="equal" decrease_font_size_key="minus" normalize_font_size_key="0" show_on_monitor="" wordchars="-A-Za-z0-9,./?%&#:" lines=500000 x_pos=0 y_pos=25 tab_pos=0 expand_tabs=false show_single_tab=true backspace_key=0 delete_key=1 d_set_title=3 command_exit=2 command_timeout_ms=3000 scheme=3 slide_sleep_usec=20000 animation_orientation=0 timer_resolution=200 auto_hide_time=2000 on_last_terminal_exit=2 prompt_on_exit=false palette_scheme=1 non_focus_pull_up_behaviour=0 cursor_shape=0 title_max_length=25 palette = {11822, 13364, 13878, 52428, 0, 0, 20046, 39578, 1542, 50372, 41120, 0, 13364, 25957, 42148, 30069, 20560, 31611, 1542, 38944, 39578, 54227, 55255, 53199, 21845, 22359, 21331, 61423, 10537, 10537, 35466, 58082, 13364, 64764, 59881, 20303, 29298, 40863, 53199, 44461, 32639, 43176, 13364, 58082, 58082, 61166, 61166, 60652} scrollbar_pos=1 back_red=0 back_green=0 back_blue=0 text_red=65535 text_green=65535 text_blue=65535 cursor_red=65535 cursor_green=65535 cursor_blue=65535 width_percentage=2147483647 height_percentage=2147483647 scroll_history_infinite=false scroll_on_output=false notebook_border=true scrollbar=false grab_focus=true above=true notaskbar=true blinks=true scroll_on_key=true bell=false run_command=false pinned=true animation=false hidden=true set_as_desktop=false centered_horizontally=false centered_vertically=false enable_transparency=false auto_hide_on_focus_lost=true auto_hide_on_mouse_leave=false title_behaviour=2 inherit_working_dir=true command_login_shell=false start_fullscreen=false confirm_close_tab=true back_alpha=65535 show_title_tooltip=false

max_width=0

max_height=0

image=""

show_on_monitor_number=0

transparency=0

bold=false

title_max_length_flag=false

antialias=false

double_buffer=false

scroll_background=false

use_image=false

min_width=0

min_height=0