Commit Graph

2090 Commits

Author SHA1 Message Date
Boris Faure 3be01d8b8b
meson: add tytest.{c,h} to improve testing with ENABLE_TEST_UI 2020-05-05 21:51:40 +02:00
Boris Faure 00bb99f3f0
tests: store mouse pointer and fallback evas_pointer_canvas_xy_get() 2020-05-05 21:51:40 +02:00
Carsten Haitzler 0df36aefc9 termio selection strings - fix ownership and alloc/free
this was a bit of a mess in terms of who owns, dups, copies etc. so i
fixed this up a bit and have termio_take_selection_text consistently
stringshare_add the string as its own copy so it can free it later.
also fix leak from ty_sb_steal_buf() as this is a malloced buffer not
stringshared and it wasnt freed after a steal

@fix
2020-05-04 10:47:00 +01:00
Boris Faure 286e2ebb59
win: on startup, force a window to be considered as focused 2020-04-29 22:54:50 +02:00
Boris Faure f3bf486777
win: handle early case when no child is present 2020-04-29 22:53:02 +02:00
Boris Faure f1857527da
termptyesc: mark _safechar() as pure 2020-04-25 15:20:54 +02:00
Boris Faure 18bfcb5aba
termptyesc: r,g,b are uint8_t 2020-04-22 23:59:02 +02:00
Boris Faure 00c427a20f
termptyesc: avoid issue with integer promotion
Found by UBSan:
sgr-truecolors.sh... ../src/bin/termptyesc.c:737:35: runtime error: left
shift of 244 by 24 places cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
../src/bin/termptyesc.c:737:35 in
2020-04-22 23:52:58 +02:00
Boris Faure f9b6f88be1
termptyesc: cache true color approximations
On my stupid benchmark ( https://github.com/billiob/fire ), this goes from
about 45 fps to about 125fps.
2020-04-22 23:43:45 +02:00
Boris Faure f497b9446c
termiolink: harden functions link_is_*() 2020-04-19 23:23:57 +02:00
Boris Faure 25eac3e842
termio: suspend is an int with values > 1 2020-04-19 23:22:57 +02:00
Boris Faure 32f317cc05
options: use an available default icon for each entry! 2020-04-17 23:54:48 +02:00
Boris Faure d06ac1c262
update copyright to 2020 2020-04-17 23:10:45 +02:00
Boris Faure 0b48853597
reduce scope of variables 2020-04-17 23:09:07 +02:00
Boris Faure 3172c2cf30
Revert "pleasing cppcheck?"
This reverts commit a848b0262f.
2020-04-17 22:02:09 +02:00
Boris Faure 1e89fcd020
termptyext.c: remove useless assignments 2020-04-17 21:52:06 +02:00
Boris Faure f56f6cd07e
termptyext: remove useless assignment 2020-04-17 00:02:57 +02:00
Boris Faure a848b0262f
pleasing cppcheck? 2020-04-17 00:01:32 +02:00
Boris Faure 16f750bee6
backlog: don't convert -1 to unsigned 2020-04-17 00:00:46 +02:00
Boris Faure d5d61a5b76
termio: hide links when content change underneath 2020-04-16 23:43:21 +02:00
Boris Faure 225b14a54f
win: hide tab bar when restoring the last term 2020-04-16 19:35:19 +02:00
Boris Faure 27f062ff1a
win: reswallow content when it's the only one left 2020-04-16 19:30:27 +02:00
Boris Faure 25496f6689
win: remove hand cursor when drag stops 2020-04-16 19:29:34 +02:00
Boris Faure 338b2c1865
win: fix rollback split + add debug 2020-04-16 17:16:18 +02:00
Boris Faure 985e0b56c5
win: put drag icon under the mouse 2020-04-15 22:52:31 +02:00
Boris Faure 472cfbcff4
win: remove some debug 2020-04-15 22:12:51 +02:00
Boris Faure 7ce4416311
win: save split position when dragging tab 2020-04-14 23:40:08 +02:00
Boris Faure 0d5a796703
win: fix focus display when focusing in/out and grouped input 2020-04-14 22:51:14 +02:00
Boris Faure cdcc6be05e
show grouped input on inactive tabs 2020-04-14 22:06:53 +02:00
Boris Faure 826801b607
group input: show it on active tabs 2020-04-13 20:30:51 +02:00
Boris Faure 51468de3fd
group input: add config option about default to visible ones or all 2020-04-12 17:16:14 +02:00
Boris Faure 2259519d10
video: no need to force emotion engine anymore 2020-04-12 16:59:43 +02:00
Boris Faure 87ce2720d5
controls: add shortcut to do grouped input 2020-04-11 11:59:36 +02:00
Boris Faure 537af736e8
win: constify 2020-04-11 10:01:13 +02:00
Boris Faure 210ec3b408
win: add win_has_single_child() 2020-04-11 09:55:52 +02:00
Boris Faure df9700c8a5
win: add win_evas_object_to_win() 2020-04-11 09:50:38 +02:00
Boris Faure b9f3c7bf05
win: don't resize to 0 + remove useless callback 2020-04-11 00:31:04 +02:00
Boris Faure f52ea76606
win.h: add missing void 2020-04-11 00:30:20 +02:00
Boris Faure ec2a96589c
controls: no need for ct_box3 2020-04-11 00:21:54 +02:00
Boris Faure 4c9091c9c6
controls: avoid uses after free
CID1422109
CID1422110
CID1422111
2020-04-06 23:11:10 +02:00
Boris Faure 6411f119ce
win: no need to check wn->config. Closes CID1422298 2020-04-06 22:59:26 +02:00
Boris Faure 5da6d66134
termptyesc: add missing debug line on bell 2020-04-06 22:58:48 +02:00
Boris Faure 0eac2752d3
win: don't call elm_win_alpha_set() too many times 2020-04-06 21:58:21 +02:00
Boris Faure 0fb87e2756
win: use edje_object_message_send on edj part… 2020-04-06 00:53:34 +02:00
Boris Faure cbbfe60aae
config: share translucent+opacity settings accross instances 2020-04-05 23:20:11 +02:00
Boris Faure 6b8da82722
tycommon: ensure common tools are running in terminology
This is done by reading the tertiary device attributes and expecting
terminology's value.
2020-04-05 15:50:12 +02:00
Boris Faure a119ac10cc
tycat/tyls: handle error on write()/scanf() 2020-04-05 15:49:26 +02:00
Boris Faure 58a1adac38
sb: ubsan: do not apply 0 offset to NULL pointer 2020-04-04 16:50:19 +02:00
Boris Faure d5d96cb655
termpty: only call ecore_main_fd_handler_active_set() on valid fd
+ reformat
2020-04-02 22:56:26 +02:00
Boris Faure ea2b80e5a2
termiolink: isspace can't be used on codepoint larger than uchar 2020-04-02 21:52:04 +02:00