F.J Kong's Blog

BRAVO HOTEL ONE SIERRA CHARLIE WHISKEY

How to fix GNOME Terminal cursor in awesome?

copy from http://unix.stackexchange.com/questions/63949/how-to-fix-gnome-terminal-cursor-in-awesome

I’m using awesome 3.4.11 on Ubuntu 13.04, and my default terminal is GNOME Terminal 3.6.1. After starting several terminals, it seems the cursor behavior gets disconnected from window focus in some of them:

  • Doesn’t blink when the window has focus
  • Blinks even when the window doesn’t have focus

 

bug report at here :  https://bugzilla.gnome.org/show_bug.cgi?id=677329

someone has a patch for this here:

https://github.com/kroody/packages/tree/master/gtk3-focus-fix

 

diff -rpu gtk+-3.4.4.orig/gdk/x11/gdkeventsource.c gtk+-3.4.4/gdk/x11/gdkeventsource.c
— gtk+-3.4.4.orig/gdk/x11/gdkeventsource.c        2012-05-16 15:20:42.000000000 +0200
+++ gtk+-3.4.4/gdk/x11/gdkeventsource.c        2012-08-20 17:49:51.634753134 +0200
@@ -142,9 +142,6 @@ handle_focus_change (GdkEventCrossing *e
   toplevel->has_pointer = focus_in;
– if (!event->focus || toplevel->has_focus_window)
– return;
   had_focus = HAS_FOCUS (toplevel);
   toplevel->has_pointer_focus = focus_in;

Comments are currently closed.