diff -r /home/shnatsel/Code/mutter-3.4.1/src/core/place.c /home/shnatsel/Загрузки/src/core/place.c 678a679,700 > //------------------------------------------------------------------------- > if (meta_prefs_get_new_window_in_center()) > { > /* Center on current monitor */ > int w, h; > > /* Warning, this function is a round trip! */ > xi = meta_screen_get_current_monitor_info (window->screen); > > w = xi->rect.width; > h = xi->rect.height; > > x = (w - window->rect.width) / 2; > y = (h - window->rect.height) / 2; > > x += xi->rect.x; > y += xi->rect.y; > > goto done; > } > //------------------------------------------------------------------------- > break; diff -r /home/shnatsel/Code/mutter-3.4.1/src/core/prefs.c /home/shnatsel/Загрузки/src/core/prefs.c 78a79 > static gboolean new_window_in_center = TRUE; 264a266,272 > { "new-window-in-center", > SCHEMA_MUTTER, > META_PREF_NEW_WINDOW_IN_CENTER, > }, > &new_window_in_center, > }, > { 1101a1110,1115 > meta_prefs_get_new_window_in_center (void) > { > return new_window_in_center; > } > > gboolean 1136c1150 < /* Handlers for string preferences. */ --- > /* Handlers for string preferences. mmemetaccasfdsdsaddasd */ 1544a1559,1561 > > case META_PREF_NEW_WINDOW_IN_CENTER: > return "NEW_WINDOW_IN_CENTER"; diff -r /home/shnatsel/Code/mutter-3.4.1/src/meta/prefs.h /home/shnatsel/Загрузки/src/meta/prefs.h 40a41 > META_PREF_NEW_WINDOW_IN_CENTER, 92a94 > gboolean meta_prefs_get_new_window_in_center (void); Только в /home/shnatsel/Загрузки/src: org.gnome.mutter.gschema.xml diff -r /home/shnatsel/Code/mutter-3.4.1/src/org.gnome.mutter.gschema.xml.in /home/shnatsel/Загрузки/src/org.gnome.mutter.gschema.xml.in 17a18,26 > > true > <_summary>Place new windows in the center > <_description> > When true, the new windows will always be put in the center of the > active screen of the monitor. > > >