~ubuntu-branches/ubuntu/vivid/scim-bridge/vivid

« back to all changes in this revision

Viewing changes to client-gtk/scim-bridge-client-imcontext-gtk.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-06-25 22:02:52 UTC
  • mfrom: (1.1.9 upstream) (6.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090625220252-2qn0jwi9re34zcth
Tags: 0.4.16-2ubuntu1
* Resynchronise with Debian. Remaining changes:
  - 50_check_scim_binary.dpatch: Fix 10-20s delay in launching apps when
    scim is not running.
  - 50_fix_qt4_focus.dpatch: Fix focus loss under KDE 4.
  - 51_quiet.dpatch: Turn some error messages into debug lines.
  - Just have scim-bridge-agent depend on scim, not scim | skim.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
18
 */
19
19
 
20
 
#include <alloca.h>
21
20
#include <assert.h>
22
21
#include <errno.h>
23
 
#include <malloc.h>
24
22
#include <stdlib.h>
25
23
#include <string.h>
26
24
#include <unistd.h>
247
245
static boolean is_precise_cursor_enabled ()
248
246
{
249
247
    static boolean first_time = TRUE;
250
 
    static boolean precise_cursor_enabled = TRUE;
 
248
    static boolean precise_cursor_enabled = FALSE;
251
249
 
252
250
    if (first_time) {
253
251
        char *env_precise_cursor_enabled = getenv ("SCIM_BRIDGE_PRECISE_CURSOR_ENABLED");
869
867
 
870
868
    ScimBridgeClientIMContext *imcontext = SCIM_BRIDGE_CLIENT_IMCONTEXT (context);
871
869
    
872
 
    if (focused_imcontext != NULL) scim_bridge_client_imcontext_focus_out (GTK_IM_CONTEXT (focused_imcontext));
 
870
    if (focused_imcontext != NULL && focused_imcontext != imcontext) scim_bridge_client_imcontext_focus_out (GTK_IM_CONTEXT (focused_imcontext));
873
871
    focused_imcontext = imcontext;
874
872
 
875
873
    if (!scim_bridge_client_is_messenger_opened () && scim_bridge_client_is_reconnection_enabled ()) {