keybindings: Remove #if 0'd code
There's no reason to keep this ~15 year old piece of code around as well as the preference handling that would only make sense if this hunk was actually enabled. https://bugzilla.gnome.org/show_bug.cgi?id=746642
This commit is contained in:
@ -1041,7 +1041,6 @@ update_window_grab_modifiers (MetaKeyBindingManager *keys)
|
||||
keys->window_grab_modifiers = mods;
|
||||
}
|
||||
|
||||
/* Grab buttons we only grab while unfocused in click-to-focus mode */
|
||||
void
|
||||
meta_display_grab_focus_window_button (MetaDisplay *display,
|
||||
MetaWindow *window)
|
||||
@ -1051,21 +1050,6 @@ meta_display_grab_focus_window_button (MetaDisplay *display,
|
||||
/* Grab button 1 for activating unfocused windows */
|
||||
meta_verbose ("Grabbing unfocused window buttons for %s\n", window->desc);
|
||||
|
||||
#if 0
|
||||
/* FIXME:115072 */
|
||||
/* Don't grab at all unless in click to focus mode. In click to
|
||||
* focus, we may sometimes be clever about intercepting and eating
|
||||
* the focus click. But in mouse focus, we never do that since the
|
||||
* focus window may not be raised, and who wants to think about
|
||||
* mouse focus anyway.
|
||||
*/
|
||||
if (meta_prefs_get_focus_mode () != G_DESKTOP_FOCUS_MODE_CLICK)
|
||||
{
|
||||
meta_verbose (" (well, not grabbing since not in click to focus mode)\n");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (window->have_focus_click_grab)
|
||||
{
|
||||
meta_verbose (" (well, not grabbing since we already have the grab)\n");
|
||||
|
Reference in New Issue
Block a user