summaryrefslogtreecommitdiffstats
path: root/src/gui_gtk_x11.c
AgeCommit message (Collapse)Author
2024-02-10patch 9.1.0092: Compiler warning for missing type in scroll_event()v9.1.0092Christian Brabandt
Problem: Compiler warning for missing type in scroll_event() (chdiza) Solution: Declare display_type explicitly as integer fixes: #14005 Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-09patch 9.1.0086: Problem when scrolling using slow touchpads scroll eventv9.1.0086lilydjwg
Problem: Problem when scrolling using slow touchpads scroll event Solution: better ways to determine if a smooth scroll has ended (when available) (lilydjwg) related: #13997 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-09patch 9.1.0085: X11 scroll size changes after accessing clipboardv9.1.0085lilydjwg
Problem: X11 scroll size changes after accessing clipboard (Ernie Rael) Solution: use GDK_SCROLL_MASK for X11 and GDK_SMOOTH_SCROLL_MASK for Wayland (lilydjwg) because GDK_SCROLL_SMOOTH events don't work well for x11 (see comments). fixes #13994 closes: #13997 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-02-08patch 9.1.0081: X11 mouse-scrolling stuttersv9.1.0081lilydjwg
Problem: X11 mouse-scrolling stutters (Ron Aaron, after 9.1.0064) Solution: Handle GDK_SCROLL_SMOOTH fractional distance events (lilydjwg) I don't know why, but with GDK_SMOOTH_SCROLL_MASK we get wheel events as GDK_SCROLL_SMOOTH. What's more, one wheel scroll is counted as 1.5 distance in Wayland but 1.0 in X11. I failed to find any docs on gtk.org about this. fixes: #13987 closes: #13991 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-31patch 9.1.0067: gcc still complains about use of uninitialized varv9.1.0067Christian Brabandt
Problem: gcc still complains about use of uninitialized var ((Tony Mechelynck, after 9.1.0064/9.1.0066)) Solution: This time init the correct variable Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-31patch 9.1.0066: gcc complains about use of uninitialized varv9.1.0066Christian Brabandt
Problem: gcc complains about use of uninitialized var (Tony Mechelynck, after 9.1.0064) Solution: initialize button to silence gcc Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-29patch 9.1.0064: No Wayland supportv9.1.0064lilydjwg
Problem: No Wayland support Solution: Add Wayland UI support (lilydjwg) closes: #9639 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-29patch 9.1.0063: GTK code can be improvedv9.1.0063lilydjwg
Problem: GTK code can be improved Solution: Improve GTK code for initial Wayland support (lilydjwg) related: #9639 Signed-off-by: lilydjwg <lilydjwg@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-25patch 9.1.0058: Cannot map Super Keys in GTK UIv9.1.0058Casey Tucker
Problem: Cannot map Super Keys in GTK UI (Casey Tucker) Solution: Enable Super Key mappings in GTK using <D-Key> (Casey Tucker) As a developer who works in both Mac and Linux using the same keyboard, it can be frustrating having to remember different key combinations or having to rely on system utilities to remap keys. This change allows `<D-z>` `<D-x>` `<D-c>` `<D-v>` etc. to be recognized by the `map` commands, along with the `<D-S-...>` shifted variants. ```vimrc if has('gui_gtk') nnoremap <D-z> u nnoremap <D-S-Z> <C-r> vnoremap <D-x> "+d vnoremap <D-c> "+y cnoremap <D-v> <C-R>+ inoremap <D-v> <C-o>"+gP nnoremap <D-v> "+P vnoremap <D-v> "-d"+P nnoremap <D-s> :w<CR> inoremap <D-s> <C-o>:w<CR> nnoremap <D-w> :q<CR> nnoremap <D-q> :qa<CR> nnoremap <D-t> :tabe<CR> nnoremap <D-S-T> :vs#<CR><C-w>T nnoremap <D-a> ggVG vnoremap <D-a> <ESC>ggVG inoremap <D-a> <ESC>ggVG nnoremap <D-f> / nnoremap <D-g> n nnoremap <D-S-G> N vnoremap <D-x> "+x endif ``` closes: #12698 Signed-off-by: Casey Tucker <dctucker@hotmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-21patch 9.0.2118: [security]: avoid double-free in get_style_font_variantsv9.0.2118Christian Brabandt
Problem: [security]: avoid double-free Solution: Only fee plain_font, when it is not the same as bold_font When plain_font == bold_font and bold_font is not NULL, we may end up trying to free bold_font again, which already has been freed a few lines above. So only free bold_font, when the condition gui.font_can_bold is true, which means that bold_font is not pointing to plain_font (so it needs to be freed separately). Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-05patch 9.0.1991: no cmdline completion for setting the fontv9.0.1991Yee Cheng Chin
Problem: no cmdline completion for setting the font Solution: enable it on Win32 and GTK builds Add guifont cmdline completion (for Windows and GTK) For Windows, auto-complete will only suggest monospace fonts as that's the only types allowed. Will also suggest font options after the colon, including suggesting the current font size for convenience, and misc charset and quality options like `cANSI` and `qCLEARTYPE`. For GTK, auto-complete will suggest only monospace fonts for `guifont` but will include all fonts for `guifontwide`. The completion code doesn't currently suggest the current font size, as the GTK guifont format does not have a clear delimiter (':' for other platforms). closes: #13264 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
2023-09-09patch 9.0.1886: Various Typosv9.0.1886Christian Brabandt
Problem: Various Typos Solution: Fix Typos This is a collection of typo related commits. closes: #12753 closes: #13016 Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Viktor Szépe <viktor@szepe.net> Co-authored-by: nuid64 <lvkuzvesov@proton.me> Co-authored-by: Meng Xiangzhuo <aumo@foxmail.com> Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-28patch 9.0.1815: pango_coverage_unref() deprecated in pango > 1.51v9.0.1815James McCoy
Problem: pango_coverage_unref() deprecated in pango > 1.51 Solution: use g_object_unref() instead closes: #12942 Free PangoCoverage with g_object_unref for Pango >= 1.52 pango_coverage_unref was declared deprecated in Pango 1.52.0 in favor of g_object_unref. Adjust the call when building against a new enough Pango to avoid the deprecation warning. Signed-off-by: James McCoy <jamessan@jamessan.com> Co-authored-by: James McCoy <jamessan@jamessan.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-05-16patch 9.0.1563: GTK3: window manager resize hints are incompletev9.0.1563Bram Moolenaar
Problem: GTK3: window manager resize hints are incomplete. Solution: Use NULL for second argument of gtk_window_set_geometry_hints(). (Kenny Stauffer closes #11055)
2023-04-28patch 9.0.1495: GTK3: hiding the mouse pointer does not workv9.0.1495Kenny Stauffer
Problem: GTK3: hiding the mouse pointer does not work. (Rory O’Kane) Solution: Set alpha level to zero. (Kenny Stauffer, closes #12293, closes #3256)
2023-02-21patch 9.0.1336: functions without arguments are not always declared properlyv9.0.1336Yegappan Lakshmanan
Problem: Functions without arguments are not always declared properly. Solution: Use "(void)" instead of "()". (Yegappan Lakshmanan, closes #12031)
2023-01-08patch 9.0.1158: code is indented more than necessaryv9.0.1158Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11787)
2022-12-01patch 9.0.0984: GUI: remote_foreground() does not always workv9.0.0984Bram Moolenaar
Problem: GUI: remote_foreground() does not always work. (Ron Aaron) Solution: For GTK use gtk_window_set_keep_above(). (issue #11641)
2022-11-30patch 9.0.0977: it is not easy to see what client-server commands are doingv9.0.0977Bram Moolenaar
Problem: It is not easy to see what client-server commands are doing. Solution: Add channel log messages if ch_log() is available. Move the channel logging and make it available with the +eval feature.
2022-11-02patch 9.0.0828: various typosv9.0.0828dundargoc
Problem: Various typos. Solution: Correct typos. (closes #11432)
2022-10-04patch 9.0.0657: too many #ifdefsv9.0.0657Martin Tournoij
Problem: Too many #ifdefs. Solution: Graduate the +cmdwin feature. Now the tiny and small builds are equal, drop the small build. (Martin Tournoij, closes #11268)
2022-10-01patch 9.0.0633: FEAT_TITLE was removed but is still usedv9.0.0633rbtnn
Problem: FEAT_TITLE was removed but is still used. Solution: Remove FEAT_TITLE. (Naruhiko Nishino, closes #11256)
2022-09-26patch 9.0.0597: cannot close a tab page with the middle mouse buttonv9.0.0597regomne
Problem: Cannot close a tab page with the middle mouse button. Solution: Support closing a tab page with the middle mouse button, like many other programs. (closes #10746)
2022-09-17patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar
Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-09-13patch 9.0.0454: incorrect color for modeless selection with GTKv9.0.0454Your Name
Problem: Incorrect color for modeless selection with GTK. Solution: Use simple inversion instead of XOR. (closes #11111)
2022-07-04patch 9.0.0039: not all systems have GDK_KEY_dead_circumflexv9.0.0039Bram Moolenaar
Problem: Not all systems have GDK_KEY_dead_circumflex. (Hisashi T Fujinaka) Solution: Add an #ifdef.
2022-07-04patch 9.0.0033: on a Belgian keyboard CTRL-[ does not workv9.0.0033Anton Sharonov
Problem: On a Belgian keyboard CTRL-[ does not work. Solution: Handle GDK_KEY_dead_circumflex. (Anton Sharonov, closes #10658)
2022-04-28patch 8.2.4839: compiler warning for unused argumentv8.2.4839Bram Moolenaar
Problem: Compiler warning for unused argument. Solution: Add "UNUSED".
2022-04-23patch 8.2.4815: cannot build with older GTK versionv8.2.4815Ernie Rael
Problem: Cannot build with older GTK version. Solution: Use gtk_window_get_size() instead of gdk_window_get_width() and gdk_window_get_height(). (Ernie Rael, closes #10257)
2022-04-17patch 8.2.4776: GTK: 'lines' and 'columns' may change during startupv8.2.4776Ernie Rael
Problem: GTK: 'lines' and 'columns' may change during startup. Solution: Ignore stale GTK resize events. (Ernie Rael, closes #10179)
2022-04-15patch 8.2.4753: error from setting an option is silently ignoredv8.2.4753Bram Moolenaar
Problem: Error from setting an option is silently ignored. Solution: Handle option value errors better. Fix uses of N_().
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-11-29patch 8.2.3699: the +title feature adds a lot of #ifdef but little codev8.2.3699Bram Moolenaar
Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature.
2021-11-23patch 8.2.3654: GTK: a touch-drag does not update the selectionv8.2.3654Chris Dalton
Problem: GTK: a touch-drag does not update the selection. Solution: Add GDK_BUTTON1_MASK to the state. (Chris Dalton, close #9196, closes #9194)
2021-11-21patch 8.2.3636: Coverity warns for unreachable codev8.2.3636Bram Moolenaar
Problem: Coverity warns for unreachable code. Solution: Remove unreachable else block.
2021-11-20patch 8.2.3635: GTK: composing underline does not showv8.2.3635Dusan Popovic
Problem: GTK: composing underline does not show. Solution: Include composing character in pango call. A few more optimizations for ligatures. (Dusan Popovic, closes #9171, closes #9147)
2021-11-20patch 8.2.3632: GTK3: undercurl does not get removed properlyv8.2.3632Yamagi
Problem: GTK3: undercurl does not get removed properly. Solution: Set the cairo cursor first. (closes #9170)
2021-11-16patch 8.2.3607: GTK3 screen updating is slowv8.2.3607presuku
Problem: GTK3 screen updating is slow. Solution: Remove some of the GTK3-specific code. (closes #9052)
2021-10-20patch 8.2.3548: GTK GUI crashen when reading from stdinv8.2.3548Bram Moolenaar
Problem: GTK GUI crashen when reading from stdin. Solution: Do not overwrite the NUL after the string. (closes #9028)
2021-10-17patch 8.2.3527: gcc complains about uninitialized variablev8.2.3527Bram Moolenaar
Problem: Gcc complains about uninitialized variable. (Tony Mechelynck) Solution: Initialize it.
2021-10-16patch 8.2.3524: GUI: ligatures are not usedv8.2.3524Dusan Popovic
Problem: GUI: ligatures are not used. Solution: Add the 'guiligatures' option. (Dusan Popovic, closes #8933)
2021-06-02patch 8.2.2922: computing array length is done in various waysv8.2.2922K.Takata
Problem: Computing array length is done in various ways. Solution: Use ARRAY_LENGTH everywhere. (Ken Takata, closes #8305)
2021-03-20patch 8.2.2626: GTK3: error when starting up and -geometry is givenv8.2.2626Bram Moolenaar
Problem: GTK3: error when starting up and -geometry is given. (Dominique Pellé) Solution: Use another function to get the monitor if the window has not been created yet. (closes #7978)
2021-03-18patch 8.2.2622: GTK: error when starting up and -geometry is givenv8.2.2622Bram Moolenaar
Problem: GTK: error when starting up and -geometry is given. (Dominique Pellé) Solution: Use another function to get the monitor if the window has not been created yet. (closes #7978)
2020-12-09patch 8.2.2119: GTK3: status line background color is wrongv8.2.2119Bram Moolenaar
Problem: GTK3: status line background color is wrong. Solution: Don't change the code for earlier GTK3 versions. (closes #7444)
2020-12-08patch 8.2.2111: GTK: menu background is the same color as the main windowv8.2.2111Bram Moolenaar
Problem: GTK: Menu background is the same color as the main window. Solution: Fix white space around the test in another way. (closes #7437, closes #7427)
2020-11-25patch 8.2.2043: GTK3: white border around text stands outv8.2.2043Bram Moolenaar
Problem: GTK3: white border around text stands out. Solution: Use current theme color. (closes #7357, issue #349)
2020-10-27patch 8.2.1913: GTK GUI: rounding for the cell height is too strictv8.2.1913Bram Moolenaar
Problem: GTK GUI: rounding for the cell height is too strict. Solution: Round up above 15/16 of a pixel. (closes #7203)
2020-10-24patch 8.2.1898: command modifier parsing always uses global cmdmodv8.2.1898Bram Moolenaar
Problem: Command modifier parsing always uses global cmdmod. Solution: Pass in cmdmod_T to use. Rename struct fields consistently.