Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected text is deleted when switching to another application #355

Closed
gaborbata opened this issue Nov 5, 2024 · 5 comments
Closed

Selected text is deleted when switching to another application #355

gaborbata opened this issue Nov 5, 2024 · 5 comments
Assignees
Labels
bug Something isn't working ready for release

Comments

@gaborbata
Copy link

Package: ecode-linux-0.6.3-x86_64.tar.gz
OS: Ubuntu 24.04.1 LTS
Issue: Selected text is deleted when switching to another application

Steps to reproduce:

  1. Select some text in the editor
  2. Switch to another app

Actual result:

  • Selected text is deleted

Expected result:

  • Selected text should remain unchanged

Screencast:
https://github.com/user-attachments/assets/73babc56-d3c4-4717-affe-5c4900d6f578

Notes: 0.6.1, 0.6.2 are also affected

@gaborbata
Copy link
Author

Configuration:

[editor]
colorscheme=onedark
show_line_numbers=1
show_white_spaces=1
show_indentation_guides=1
show_line_endings=0
highlight_matching_brackets=1
highlight_current_line=1
vertical_scrollbar=1
horizontal_scrollbar=1
font_size=12dp
auto_close_brackets=
highlight_selection_match=1
color_picker_selection=0
color_preview=0
minimap=0
show_doc_info=1
hide_tab_bar_on_single_tab=0
single_click_tree_navigation=1
sync_project_tree_with_editor=1
auto_close_xml_tags=1
line_spacing=0dp
cursor_blinking_time=8m 20s
lines_relative_position=0
auto_reload_on_disk_change=1
wrap_mode=nowrap
wrap_type=viewport
wrap_keep_indentation=1
code_folding_enabled=0
code_folding_always_visible=0
code_folding_refresh_frequency=2s
tab_indent_character=
tab_indent_alignment=center

[ui]
font_size=11dp
panel_font_size=11dp
show_side_panel=1
show_status_bar=1
panel_position=left
serif_font=fonts/NotoSans-Regular.ttf
monospace_font=fonts/DejaVuSansMono.ttf
terminal_font=fonts/DejaVuSansMonoNerdFontComplete.ttf
theme=
language=
fallback_font=fonts/DroidSansFallbackFull.ttf
ui_color_scheme=dark
show_menu_bar=0
welcome_screen=1
open_files_in_new_window=0

[document]
trim_trailing_whitespaces=0
force_new_line_at_end_of_file=1
auto_detect_indent_type=1
write_bom=0
indent_width=4
indent_spaces=1
line_endings=LF
tab_width=4
line_breaking_column=100

[search_bar]
case_sensitive=0
lua_pattern=0
whole_word=0
escape_sequence=0
regex=0

[global_search_bar]
case_sensitive=0
lua_pattern=0
whole_word=0
escape_sequence=0
regex=0

[terminal]
shell=
font_size=11dp
colorscheme=eterm
new_terminal_orientation=vertical
scrollback=10000
unsupported_os_warn_disabled=0

[window]
vsync=0
glversion=OpenGL 2
multisamples=0
frameratelimit=60

[workspace]
restore_last_session=0
check_for_updates_at_startup=0
session_snapshot=0

[plugins]
autocomplete=1
autoformatter=1
git=1
linter=1
lspclient=1
xmltools=0

@SpartanJ
Copy link
Owner

SpartanJ commented Nov 5, 2024

Nasty bug but it doesn't happen in my environment, so I'll need to know exactly what your DE (or WM) is, and if you're using X11 or Wayland. I'll try to replicate your environment. I expected this to happen while alt tab-ing but on focus change I have no clue what event could be triggering to generate the key-press. Thanks for reporting it.

@gaborbata
Copy link
Author

Hey @SpartanJ thanks for checking. My DE is Gnome 46 / Wayland. The issue happens with alt+tab, an also with clicking the mouse to another application.

Platform: Linux
OS: Linux 6.8.0-47-generic
Arch: x86_64
CPU Cores: 8
Window/Input Backend: SDL 2.30.8
GL Backend: OpenGL 2
GL Vendor: Intel
GL Renderer: Mesa Intel(R) Xe Graphics (TGL GT2)
GL Version: 4.6 (Compatibility Profile) Mesa 24.0.9-0ubuntu0.2
GL Shading Language Version: 4.60

@SpartanJ SpartanJ self-assigned this Nov 7, 2024
@SpartanJ SpartanJ added the bug Something isn't working label Nov 7, 2024
@SpartanJ SpartanJ reopened this Nov 15, 2024
@SpartanJ
Copy link
Owner

I was able to reproduce it with the setup you mentioned, I just pushed a fix. You'll be able to test the fix with the nightly build.

@gaborbata
Copy link
Author

Hey @SpartanJ tested with the latest nightly build (0.6.4-13), I can confirm the issue has been fixed. Thanks

@SpartanJ SpartanJ closed this as completed Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready for release
Projects
None yet
Development

No branches or pull requests

2 participants