From a586d8d0f67bf00806ed4c5bfd06a32c8b025a67 Mon Sep 17 00:00:00 2001 From: Mukundan Ragavan Date: Mar 20 2018 00:16:17 +0000 Subject: Add patch to fix drop-down flickering --- diff --git a/fix-drop-down-flicker.patch b/fix-drop-down-flicker.patch new file mode 100644 index 0000000..99e023f --- /dev/null +++ b/fix-drop-down-flicker.patch @@ -0,0 +1,48 @@ +From 2f6db7f83c6db2e12e76ebb4a75ff1bd3eea38cf Mon Sep 17 00:00:00 2001 +From: Igor +Date: Mon, 19 Mar 2018 09:17:52 -0400 +Subject: Fix drop-down terminal hotkey + +This reverts commit 386e42995d71149d05f232e95d175a853a2f0bf2. +Resolving deprecation warnings has apparently broken the functionality. + +Fixes bug #14289 +--- + terminal/terminal-window-dropdown.c | 16 +--------------- + 1 file changed, 1 insertion(+), 15 deletions(-) + +diff --git a/terminal/terminal-window-dropdown.c b/terminal/terminal-window-dropdown.c +index fde9350..2e6391c 100644 +--- a/terminal/terminal-window-dropdown.c ++++ b/terminal/terminal-window-dropdown.c +@@ -579,26 +579,12 @@ static gboolean + terminal_window_dropdown_can_grab (gpointer data) + { + GdkWindow *window = gtk_widget_get_window (GTK_WIDGET (data)); +- GdkGrabStatus status; +-#if GTK_CHECK_VERSION (3, 20, 0) +- GdkDisplay *display = gdk_window_get_display (window); +- GdkSeat *seat = gdk_display_get_default_seat (display); +- +- status = gdk_seat_grab (seat, window, +- GDK_SEAT_CAPABILITY_POINTER | GDK_SEAT_CAPABILITY_KEYBOARD, +- FALSE, NULL, NULL, NULL, NULL); +-#else +- status = gdk_keyboard_grab (window, FALSE, GDK_CURRENT_TIME); +-#endif ++ GdkGrabStatus status = gdk_keyboard_grab (window, FALSE, GDK_CURRENT_TIME); + + if (status == GDK_GRAB_SUCCESS) + { + /* drop the grab */ +-#if GTK_CHECK_VERSION (3, 20, 0) +- gdk_seat_ungrab (seat); +-#else + gdk_keyboard_ungrab (GDK_CURRENT_TIME); +-#endif + return FALSE; + } + +-- +cgit v1.1 + diff --git a/xfce4-terminal.spec b/xfce4-terminal.spec index 9040a14..372bffc 100644 --- a/xfce4-terminal.spec +++ b/xfce4-terminal.spec @@ -2,13 +2,14 @@ Name: xfce4-terminal Version: 0.8.7.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Terminal Emulator for the Xfce Desktop environment Group: User Interface/Desktops License: GPLv2+ URL: http://docs.xfce.org/apps/terminal/start Source0: http://archive.xfce.org/src/apps/xfce4-terminal/%{minorversion}/%{name}-%{version}.tar.bz2 +Patch10: fix-drop-down-flicker.patch BuildRequires: gcc-c++ BuildRequires: vte291-devel >= 0.38 @@ -33,6 +34,7 @@ full colors, fonts, transparent backgrounds, and more. %prep %setup -q +%patch10 %build %configure @@ -61,6 +63,9 @@ desktop-file-install \ %{_mandir}/man1/xfce4-terminal.1.* %changelog +* Mon Mar 19 2018 Mukundan Ragavan - 0.8.7.2-3 +- Add patch to fix drop-down flickering + * Thu Mar 15 2018 Mukundan Ragavan - 0.8.7.2-2 - Add BR:gcc-c++