~muktupavels/metacity/adwaita-icon-theme-lp-1414613

« back to all changes in this revision

Viewing changes to src/core/window.c

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-08-23 11:12:43 UTC
  • mfrom: (1.3.3)
  • mto: (2.5.2 sid) (1.4.2)
  • mto: This revision was merged to the branch mainline in revision 122.
  • Revision ID: package-import@ubuntu.com-20120823111243-0hjp8cv5xn2jr6jc
ImportĀ upstreamĀ versionĀ 2.34.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1667
1667
      tmp = tmp->next;
1668
1668
    }
1669
1669
 
1670
 
  if (meta_prefs_get_focus_mode () != META_FOCUS_MODE_CLICK)
 
1670
  if (meta_prefs_get_focus_mode () != G_DESKTOP_FOCUS_MODE_CLICK)
1671
1671
    {
1672
1672
      /* When display->mouse_mode is false, we want to ignore
1673
1673
       * EnterNotify events unless they come from mouse motion.  To do
2004
2004
   * approximation to enforce so we do that.
2005
2005
   */
2006
2006
  if (*takes_focus &&
2007
 
      meta_prefs_get_focus_new_windows () == META_FOCUS_NEW_WINDOWS_STRICT &&
 
2007
      meta_prefs_get_focus_new_windows () == G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT &&
2008
2008
      !window->display->allow_terminal_deactivation &&
2009
2009
      __window_is_terminal (window->display->focus_window) &&
2010
2010
      !meta_window_is_ancestor_of_transient (window->display->focus_window,
2221
2221
       * that new window below a lot of other windows.
2222
2222
       */
2223
2223
      if (overlap || 
2224
 
          (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK &&
 
2224
          (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK &&
2225
2225
           meta_prefs_get_raise_on_click ()))
2226
2226
        meta_window_stack_just_below (window, focus_window);
2227
2227
 
5447
5447
           *
5448
5448
           * There is dicussion in bugs 102209, 115072, and 461577
5449
5449
           */
5450
 
          if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK ||
 
5450
          if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK ||
5451
5451
              !meta_prefs_get_raise_on_click())
5452
5452
            meta_display_ungrab_focus_window_button (window->display, window);
5453
5453
        }
5491
5491
          meta_window_update_layer (window);
5492
5492
 
5493
5493
          /* Re-grab for click to focus and raise-on-click, if necessary */
5494
 
          if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_CLICK ||
 
5494
          if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK ||
5495
5495
              !meta_prefs_get_raise_on_click ())
5496
5496
            meta_display_grab_focus_window_button (window->display, window);
5497
5497
       }
8138
8138
       * doesn't want to have focus transferred for now due to new windows.
8139
8139
       */
8140
8140
      if (meta_prefs_get_focus_new_windows () ==
8141
 
               META_FOCUS_NEW_WINDOWS_STRICT &&
 
8141
               G_DESKTOP_FOCUS_NEW_WINDOWS_STRICT &&
8142
8142
          __window_is_terminal (window))
8143
8143
        window->display->allow_terminal_deactivation = FALSE;
8144
8144
    }