Mercurial > vim
comparison src/clipboard.c @ 34236:fdc8a179c79e v9.1.0063
patch 9.1.0063: GTK code can be improved
Commit: https://github.com/vim/vim/commit/94ff09a0935bc78fd81e9c79f099d42c94e3c218
Author: lilydjwg <lilydjwg@gmail.com>
Date: Mon Jan 29 20:14:01 2024 +0100
patch 9.1.0063: GTK code can be improved
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>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 29 Jan 2024 21:15:03 +0100 |
parents | 95db67c7b754 |
children |
comparison
equal
deleted
inserted
replaced
34235:0c1f955375c4 | 34236:fdc8a179c79e |
---|---|
1332 vim_regfree(clip_exclude_prog); | 1332 vim_regfree(clip_exclude_prog); |
1333 clip_exclude_prog = new_exclude_prog; | 1333 clip_exclude_prog = new_exclude_prog; |
1334 #ifdef FEAT_GUI_GTK | 1334 #ifdef FEAT_GUI_GTK |
1335 if (gui.in_use) | 1335 if (gui.in_use) |
1336 { | 1336 { |
1337 gui_gtk_set_selection_targets(); | 1337 gui_gtk_set_selection_targets((GdkAtom)GDK_SELECTION_PRIMARY); |
1338 gui_gtk_set_selection_targets((GdkAtom)clip_plus.gtk_sel_atom); | |
1338 gui_gtk_set_dnd_targets(); | 1339 gui_gtk_set_dnd_targets(); |
1339 } | 1340 } |
1340 #endif | 1341 #endif |
1341 } | 1342 } |
1342 else | 1343 else |