1. 06 Jul, 2009 1 commit
  2. 11 Feb, 2009 1 commit
  3. 10 Feb, 2009 1 commit
  4. 05 Feb, 2009 1 commit
  5. 25 Dec, 2008 1 commit
  6. 22 Nov, 2008 1 commit
    • Thomas Thurman's avatar
      (Apologies for huge commit; these were done on a transatlantic flight. This is why we need bzr.) · ac365b4e
      Thomas Thurman authored
      2008-11-22  Thomas Thurman  <tthurman@gnome.org>
      
              * src/core/all-keybindings.h: "backward", not "backwards" throughout.
      
      2008-11-20  Thomas Thurman  <tthurman@gnome.org>
      
              * configure.in: turned on -Wall and -Werror in order to
                trap as many problems as possible.
              * src/ui/resizepopup.c: added correct #include.
              * src/ui/theme-viewer.c: initialised variable.
              * src/core/xprops.c: corrected cast.
              * src/core/main.c: added warning if chdir() fails.
              * src/core/schema-bindings.c: checking the return
                result of fgets().
      
      2008-11-20  Thomas Thurman  <tthurman@gnome.org>
      
              Merged screen and window keybinding tables so that
              we can use just one file for the both.  Also incidentally
              closes #528337.  Further efficiencies of scale to come.
      
              * src/include/prefs.h: replace META_PREF_*_KEYBINDINGS
                with META_PREF_KEYBINDINGS
              * src/core/keybindings.c: replace *_bindings with key_bindings
                and similar throughout; all window-based functions are now
                guaranteed to receive a window so don't need to check for
                themselves
                (find_handler): moved so it can also be called from
                                rebuild_binding_table
              * src/core/display-private.h: replace *_bindings with key_bindings
              * src/core/prefs.c: update_*_binding becomes update_key_binding;
                (change_notify): tidy up references to "enormous if statement"
                                 since it's almost entirely gone now
              * src/core/all-keybindings.h: new merged version of
                                 screen-bindings.h and window-bindings.h.
      
      
      svn path=/trunk/; revision=4022
      ac365b4e
  7. 22 Oct, 2008 1 commit
  8. 31 Aug, 2008 1 commit
  9. 18 Aug, 2008 1 commit
    • Thomas Thurman's avatar
      Adding doxygen headers to some files. · 8736f615
      Thomas Thurman authored
      2008-08-18  Thomas Thurman  <tthurman@gnome.org>
      
              Adding doxygen headers to some files.
      
              * src/core/metacity-Xatomtype.h
              * src/core/main.c
              * src/core/screen-private.h
              * src/core/window-private.h
              * src/core/keybindings.h
              * src/core/session.h
              * src/core/workspace.h
              * src/core/window-props.h ()
      
      
      svn path=/trunk/; revision=3818
      8736f615
  10. 19 May, 2008 1 commit
    • Iain Holmes's avatar
      src/include/frame.h src/include/display.h src/include/xprops.h · f141692c
      Iain Holmes authored
      2008-05-19  Iain Holmes  <iain@gnome.org>
      
              * src/include/frame.h
              * src/include/display.h
              * src/include/xprops.h
              * src/include/compositor.h
              * src/include/types.h
              * src/include/window.h
              * src/include/errors.h
              * src/include/screen.h: New basic public API for compositor.
      
              * src/compositor/*: Separate the compositor out into its own 
      separate
              directory and set it up for backends. Initial XRender backend.
      
              * src/core/compositor.[ch]: Remove
      
              * src/core/frame.h
              * src/core/screen.h
              * src/core/display.h
              * src/core/window.h: Rename to -private.h so as not to clash 
      with the
              new files in include
      
              * src/core/delete.c
              * src/core/workspace.h
              * src/core/stack.[ch]
              * src/core/keybindings.[ch]
              * src/core/errors.c
              * src/core/effects.[ch]
              * src/core/core.c
              * src/core/group.h
              * src/core/edge-resistance.[ch]
              * src/core/window-props.[ch]
              * src/core/constraints.h
              * src/core/bell.[ch]
              * src/core/iconcache.h
              * src/core/session.[ch]
              * src/core/main.c
              * src/core/place.h
              * src/core/xprops.c
              * src/ui/tabpopup.c: Use the new -private headers
      
              * src/core/display.c
              * src/core/frame.c
              * src/core/window.c
              * src/core/screen.c: Add the API functions required by the 
      compositor
      
              * src/Makefile.am: Relocate the new files
      
      
      
      svn path=/trunk/; revision=3715
      f141692c
  11. 25 Mar, 2008 1 commit
    • Thomas Thurman's avatar
      MetaDisplay becomes a singleton. The static variable which holds this · 1e325bcb
      Thomas Thurman authored
      2008-03-25  Thomas Thurman  <tthurman@gnome.org>
      
              * src/core/display.c (meta_display_queue_retheme_all_windows,
              meta_set_syncing, meta_display_set_cursor_theme, disable_compositor,
              meta_display_for_x_display, meta_display_open, meta_display_close,
              meta_display_ungrab): MetaDisplay becomes a singleton.  The static
              variable which holds this singleton is renamed "the_display" so as
              not to mask the this parameter in the methods.
      
              * src/core/main.c (main):
              * src/core/session.c (warn_about_lame_clients_and_finish_inte,
              save_state, io_from_warning_dialog):
              * src/core/core.c (meta_core_increment_event_serial):
              * src/core/delete.c (release_window_with_fd, search_and_destroy_window):
              sympathy changes for this, and consequent simplification.
              Closes #499301.
      
      
      svn path=/trunk/; revision=3663
      1e325bcb
  12. 27 Feb, 2008 1 commit
  13. 17 Jan, 2008 1 commit
  14. 13 Jan, 2008 3 commits
    • Thomas Thurman's avatar
      Commenting. Commenting, and fixing existing comments. · 13918cea
      Thomas Thurman authored
      2008-01-13  Thomas Thurman  <tthurman@gnome.org>
              * src/core/bell.c: Commenting.
              * src/core/main.c: Commenting, and fixing existing comments.
      
      svn path=/trunk/; revision=3518
      13918cea
    • Thomas Thurman's avatar
      Refactor repeated lines in main() to iterate instead. · 8828532d
      Thomas Thurman authored
      2008-01-12  Thomas Thurman  <tthurman@gnome.org>
      
              * src/core/main.c: Refactor repeated lines in main() to
             iterate instead.
      
      
      svn path=/trunk/; revision=3516
      8828532d
    • Thomas Thurman's avatar
      removed as it was never used. lots of comments. copyright year is 2008. · 146ad60c
      Thomas Thurman authored
      2008-01-12  Thomas Thurman  <tthurman@gnome.org>
      
              * src/core/main.[ch] (meta_get_main_loop): removed as it
              was never used.
              * src/core/main.c: lots of comments.
              * src/core/main.c (version): copyright year is 2008.
              * src/core/c-screen.[ch], src/core/c-window.[ch]: removed
              files from Søren's compositor which were removed by the
              merge with Iain's compositor but reintroduced by the split
              to separate subdirectories.
              * src/core/display.c: fix comments.
      
      
      svn path=/trunk/; revision=3515
      146ad60c
  15. 08 Jan, 2008 1 commit
  16. 19 Dec, 2007 1 commit
    • Havoc Pennington's avatar
      sort source files into these directories according to which part of the WM · 72b08c82
      Havoc Pennington authored
      2007-12-19  Havoc Pennington  <hp@redhat.com>
      
      	* src/ui, src/core, src/include: sort source files into these
      	directories according to which part of the WM they are supposed to
      	be in. In an eventual plan, we should also create
      	src/compositor/render, src/compositor/fallback and move some of
      	the compositor stuff into that.
      	
      	* autogen.sh: require a newer automake, so we don't have to use
      	a recursive build
      
      	* src/ui/tabpopup.c: put in a hack to make the build temporarily
      	work, want to commit the large rearrangement before fixing this
      	not to include workspace.h or frame.h
      
      	* src/core/iconcache.c (meta_read_icons): temporarily break this
      	to get the build to work, want to commit the large rearrangement
      	before fixing this file not to include theme.h
      
      
      svn path=/trunk/; revision=3491
      72b08c82
  17. 18 Nov, 2007 1 commit
  18. 30 Oct, 2007 1 commit
  19. 22 Jul, 2007 1 commit
  20. 18 Jun, 2007 2 commits
  21. 05 Nov, 2006 1 commit
    • Priit Laes's avatar
      remove deprecated gtk stuff. · 81256ebe
      Priit Laes authored
      2006-11-05  Priit Laes  <amd@store20.com>
      
              * src/main.c, src/ui.c: remove deprecated gtk stuff.
      
      2006-11-05  Bruno Boaventura  <brunoboaventura@gmail.com>
      
              * src/theme.c, src/testgradient.c: remove deprecated gtk stuff.
      81256ebe
  22. 07 Oct, 2006 1 commit
    • Thomas James Alexander Thurman's avatar
      Added "above" to the list of flags a frame can have, so that we know when · 90359a53
      Thomas James Alexander Thurman authored
      
              * common.h: Added "above" to the list of flags a frame can have, so
      	that we know when to mark it as always on top.  Added six grab ops,
      	one to do and one to undo each of the three new titlebar buttons
      	(shade, above, stick).  Added six new button functions, similarly.
      	(#96229)
      
              * frame.c (meta_frame_get_flags): If a frame has the WM_STATE_ABOVE X
               attribute, set META_FRAME_ABOVE in its flags.
      
              * frames.c (meta_frames_apply_shapes): Allow variable amounts of
               rounding. (#113162)
      
              * frames.c (show_tip_now, meta_frames_paint_to_drawable, control_rect,
      	 get_control): extend handling of existing buttons to the
               3*2 new kinds of button. (#96229)
      
              * frames.c (meta_frames_button_press_event): translate clicks on the 3*2
               new kinds of button to the new grab ops. (#96229)
      
              * frames.c (meta_frames_button_release_event): implement the various
              actions for the 3*2 new kinds of button. (#96229)
      
              * frames.c (meta_frames_update_prelit_control,
               meta_frames_motion_notify_event): extend existing motion
               notifications for buttons to the 3*2 new kinds of button. (#96229)
      
              * frames.c (meta_frames_set_window_background): handle specified
               background colours and alpha transparency. (#151261)
      
              * frames.h (MetaFrameControl): New control types for the 3*2 new kinds
      	 of button.  (#96229)
      
              * iconcache.[ch] (meta_read_icons): use theme's fallback icons if a
      	 window has no icon; use metacity's fallback icons only if the theme
               does not provide any. (#11363)
      
              * iconcache.[ch] (meta_invalidate_default_icons (new function)): clear
               icon cache on windows using default icons, and update them. (#11363)
      
              * main.c (main): added \n to error message.
      
              * prefs.c (button_function_from_string): extend for 3 new button
      	 types. (#96229)
      
              * prefs.c (button_opposite_function (new function)): return a button
               function's inverse (shade -> unshade, etc) (#96229)
      
              * prefs.c (update_button_layout): allocate space for a button's
      	 inverse, if it has one. (#96229)
      
              * theme-parser.c (ParseState): add state for fallback icons (#11363)
      
              * theme-parser.c (ParseInfo): add format_version; remove
               menu_icon_* (#114305)
      
              * theme-parser.c (parse_positive_integer): add lookup for integer
      	 constants (#331356)
      
              * theme-parser.c (parse_rounding (new function)): parse window
      	 rounding amount (#113162)
      
              * theme-parser.c (parse_alpha): don't set error if the number can't
      	 be parsed since it'll already be set; change tolerance in comparison
      	 from 1e6 to 1e-6
      
              * theme-parser.c (parse_color (new function)): parse colour, including
      	 possible constant lookup.
      
              * theme-parser.c (parse_toplevel_element): allow defining of various
      	new kinds of constant; allow
      	hide_buttons (#121639) and more detailed rounding attributes on
      	<frame_geometry> (#113162); allow background and alpha attributes on
      	<frame_style>; (#151261) remove support for <menu_icon> except as
      	stub; (#114305) add support for loading stock images (#113465); add
              support for <fallback>. (#11363))
      
              * theme-parser.c (parse_draw_op_element): add from and to attribute
               for arcs. (#121603)
      
              * theme-parser.c (parse_style_element): add check for theme version
               supporting a button function. (#96229)
      
              * theme-parser.c (parse_style_set_element): add ability for shaded
      	 windows to be resizable (#114304)
      
              * theme-parser.c (meta_theme_load): add theme versioning routine.
      
              * theme.c ( meta_frame_layout_get_borders): return rectangles for
      	 the new 3*2 kinds of button, except where they're
               inapplicable. (#96229)
      
              * theme.c (meta_frame_layout_calc_geometry): don't format buttons on
      	windows with no buttons (#121639); strip the 3*2 new kinds of button
      	correctly (#96229); allow variable amounts of rounding (#113162).
      
              * theme.c (meta_frame_style_new): set alpha to 255 by
              default. (#151261)
      
              * theme.c (meta_frame_style_unref): free colour spec if
              allocated. (#151261)
      
              * theme.c (meta_frame_style_validate): it's only an error not to
              include a button if that button is valid in the current
              theme. (#96229)
      
              * theme.c (button_rect): return rectangles for the new 3*2 kinds
      	of button. (#96229)
      
              * theme.c (meta_frame_style_set_unref): free differently resizable
      	shaded styles. (#114304)
      
              * theme.c (get_style): look up differently resizable styles
              for shaded windows. (#114304)
      
              * theme.c (free_menu_ops (removed function), get_menu_icon
      	 (removed function), meta_theme_draw_menu_icon (removed function),
               meta_menu_icon_type_from_string (removed function),
               meta_menu_icon_type_to_string (removed function),
               meta_theme_free, meta_theme_validate): removed menu icon code. (#114305)
      
              * theme.c (meta_theme_load_image): add size_of_theme_icons
      	parameter. (#113465)
      
              * theme.c (meta_theme_define_color_constant (new function),
              meta_theme_lookup_color_constant (new function)): allow
              definition of colour constants. (#129747)
      
              * theme.c (meta_button_type_from_string, meta_button_type_to_string):
              add the 3*2 new kinds of button. (#96229)
      
              * theme.c (meta_theme_earliest_version_with_button (new function)):
              return the theme version each button was introduced in. (#96229)
      
              * theme.h ( MetaFrameLayout): add "hide_buttons" flag (#121639) and
      	corner radiuses. (#113162)
      
              * theme.h (MetaFrameGeometry): add rectangles for the 3*2 new
      	buttons. (#96229)
      
              * theme.h (MetaButtonType): the 3*2 new buttons. (#96229)
      
              * theme.h (MetaFrameStyle): add window_background_color and
              window_background_alpha so that we can specify background on a
              <frame_style>. (#151261)
      
              * theme.h (MetaFrameStyleSet): shaded_styles gets resize
      	dimension. (#114304)
      
              * theme.h (MetaTheme): added format_version, color_constants
              hash, (#129747) fallback_icon and fallback_mini_icon, (#11363)
              and removed menu_icons. (#114305)
      
              * theme.h (META_THEME_ALLOWS (new macro)): return whether a theme
              supports a given feature. Also, several macros representing
              new features in v2.
      
              * ui.c (meta_ui_set_current_theme)): also invalidate default
              icons. (#11363)
      
              * window.[ch] (meta_window_update_icon_now)): became
      	non-static. (#11363)
      90359a53
  23. 01 Oct, 2006 1 commit
  24. 18 Sep, 2006 1 commit
    • Elijah Newren's avatar
      Partial audit to fix timestamp usage. One step towards fixing #355180; see · 5c587726
      Elijah Newren authored
      2006-09-18  Elijah Newren  <newren gmail com>
      
      	Partial audit to fix timestamp usage.  One step towards fixing
      	#355180; see important comments in that bug.
      
      	* src/core.[ch] (meta_core_unshade, meta_core_shade):
      	* src/delete.c (meta_window_present_delete_dialog,
      	  delete_ping_timeout_func):
      	* src/display.[ch] (meta_display_open, meta_display_close,
      	  event_callback, meta_display_begin_grab_op,
      	  process_selection_clear, meta_display_unmanage_screen,
      	  meta_display_unmanage_windows_for_screen):
      	* src/frames.c (meta_frames_button_press_event):
      	* src/keybindings.c (handle_toggle_shade):
      	* src/main.c (main):
      	* src/screen.[ch] (update_num_workspaces, meta_screen_new,
      	  meta_screen_free, prefs_changed_callback):
      	* src/window.[ch] (meta_window_free, finish_minimize,
      	  implement_showing, meta_window_show, meta_window_maximize,
      	  meta_window_make_fullscreen_internal,
      	  meta_window_unmake_fullscreen, meta_window_shade,
      	  meta_window_unshade, window_activate, send_sync_request,
      	  meta_window_client_message, menu_callback,
      	  meta_window_update_keyboard_resize):
      	Remove usage of CurrentTime, meta_display_get_current_time() and
      	meta_display_get_current_time_roundtrip() where possible, or
      	document why it isn't possible, or at very least add a FIXME with
      	some explanation of my laziness and what needs to be done.
      5c587726
  25. 15 May, 2006 1 commit
    • Elijah Newren's avatar
      Revert the accessibility module loading workaround from Gnome 2.6, since · 1a161083
      Elijah Newren authored
      2006-05-15  Elijah Newren  <newren gmail com>
      
      	Revert the accessibility module loading workaround from Gnome
      	2.6, since gtk+ has long since fixed this for us.  #123372.
      
      	* src/Makefile.am: remove METACITY_LIBDIR define
      
      	* src/main.c (find_accessibility_module,
      	accessibility_invoke_module, accessibility_invoke, main): remove
      	the first three of these functions and all calls to them
      
      	* src/tabpopup.c (meta_ui_tab_popup_new): not sure if this part of
      	120025 needed to be reverted but doing the reversion, if wrong, is
      	the best way to get someone from the accessibility team to scream,
      	er, I mean comment.  ;-)
      1a161083
  26. 04 May, 2006 1 commit
    • Søren Sandmann's avatar
      Delete unused META_PRIORITY_COMPOSITE · addc04f4
      Søren Sandmann authored
      Thu May  4 13:30:04 2006  Søren Sandmann  <sandmann@redhat.com>
      
      	* src/ui.h: Delete unused META_PRIORITY_COMPOSITE
      
      	* src/ui.c: Delete argument from meta_ui_get_display().
      
      	* src/c-window.c: Remove the xid->window hashtable and associated
      	code.
      
      	* src/c-screen.[ch]: Rename MetaScreenInfo to MetaCompScreen. Put the
      	xid->windows table here instaed of as a static variable. Also make
      	sure that CompWindows are freed when the screen is unredirected.
      
      	* src/display.c: Delete non USE_GDK_DISPLAY case, as it didn't
      	work and hasn't been compiled for a long time.
      
      	* src/display.[ch] (meta_display_open): Remove argument as it was
      	always NULL (and couldn't possibly be anything else in the
      	USE_GDK_DISPLAY case).
      addc04f4
  27. 10 Jan, 2006 2 commits
    • Elijah Newren's avatar
      Whoops, I forgot to keep my copyright info updated with my previous · 5913b8c5
      Elijah Newren authored
      2006-01-10  Elijah Newren  <newren@gmail.com>
      
      	* src/bell.c:
      	* src/boxes.c:
      	* src/boxes.h:
      	* src/constraints.c:
      	* src/core.c:
      	* src/display.c:
      	* src/display.h:
      	* src/edge-resistance.c:
      	* src/frames.c:
      	* src/keybindings.c:
      	* src/main.c:
      	* src/prefs.c:
      	* src/prefs.h:
      	* src/screen.c:
      	* src/screen.h:
      	* src/window.c:
      	* src/window.h:
      	Whoops, I forgot to keep my copyright info updated with my previous
      	commits as Havoc had asked me to do.  Doing that now...
      5913b8c5
    • Elijah Newren's avatar
      Plug a few leaks. Fixes #309178. · 9eb56f15
      Elijah Newren authored
      2006-01-09  Elijah Newren  <newren@gmail.com>
      
      	Plug a few leaks.  Fixes #309178.
      
      	* src/main.c (main): remove an unneeded g_set_prgname() call, free
      	some strings allocated by the GOptions parsing
      9eb56f15
  28. 12 Jul, 2005 1 commit
    • Elijah Newren's avatar
      Patch from Björn Lindqvist to split up main() into more manageable chunks · 0e956c67
      Elijah Newren authored
      2005-07-12  Elijah Newren  <newren@gmail.com>
      
      	Patch from Björn Lindqvist to split up main() into more manageable
      	chunks and make use of GOpt.  Closes #305331.
      
      	* src/main.c (usage): remove this function,
      	(meta_print_compilation_info): new function taken from main(),
      	(meta_print_self_identity): new function taken from main(),
      	(struct MetaArguments) new struct to replace some free variables,
      	(meta_parse_options): new funcion taken from main() but now using
      	GOpt, (meta_select_display): new function taken from main()
      0e956c67
  29. 11 Jul, 2005 1 commit
    • Matthias Clasen's avatar
      React to cursor theme changes: (#308106) · 8ce054b2
      Matthias Clasen authored
      2005-07-11  Matthias Clasen  <mclasen@redhat.com>
      
      	React to cursor theme changes: (#308106)
      
      	* src/prefs.h:
      	* src/prefs.c: Expose the GConf keys for cursor theme
      	and size as preferences META_PREF_CURSOR_THEME and
      	META_PREF_CURSOR_SIZE with getters meta_prefs_get_cursor_theme()
      	and meta_prefs_get_cursor_size().
      
      	* src/display.c (meta_display_open): Initialize the cursor
      	theme and size.
      
      	* src/display.h:
      	* src/display.c (meta_display_set_cursor_theme): New function
      	to change the cursor theme and update all cursors.
      
      	* src/screen.h
      	* src/screen.c (meta_screen_update_cursor): New function to
      	refesh the root cursor of a screen.
      
      	* src/main.c (prefs_changed_callback): Update the cursor
      	theme when the cursor preferences change.
      8ce054b2
  30. 16 Sep, 2004 1 commit
    • Kjartan Maraas's avatar
      A load of fixes of issues reported by sparse. Closes bug #152849 · 43cc3b86
      Kjartan Maraas authored
      2004-09-17  Kjartan Maraas  <kmaraas@gnome.org>
      
      	* src/bell.c: (meta_bell_flash_screen):
      	* src/compositor.c:
      	* src/effects.c: (meta_effects_draw_box_animation):
      	* src/fixedtip.c: (meta_fixed_tip_show):
      	* src/frame.c: (find_argb_visual):
      	* src/frames.c: (unsigned_long_hash), (meta_frames_manage_window),
      	(meta_frames_apply_shapes):
      	* src/iconcache.c: (find_largest_sizes), (find_best_size):
      	* src/keybindings.c: (meta_spawn_command_line_async_on_screen):
      	* src/main.c: (main):
      	* src/menu.c: (meta_window_menu_new):
      	* src/prefs.c: (meta_prefs_get_visual_bell),
      	(meta_prefs_bell_is_audible), (meta_prefs_get_visual_bell_type),
      	(meta_prefs_get_action_double_click_titlebar),
      	(meta_prefs_get_auto_raise), (meta_prefs_get_auto_raise_delay),
      	(meta_prefs_get_reduced_resources):
      	* src/screen.c: (meta_create_offscreen_window):
      	* src/tabpopup.c: (meta_ui_tab_popup_get_selected):
      	* src/theme-parser.c: (meta_theme_load):
      	* src/theme.c: (meta_gtk_widget_get_font_desc):
      	* src/tools/metacity-mag.c: (mouse_press), (begin_area_grab):
      	* src/util.c: (meta_unsigned_long_hash): A load of fixes of issues
      	reported by sparse. Closes bug #152849
      43cc3b86
  31. 22 Dec, 2003 1 commit
  32. 30 Nov, 2003 1 commit
  33. 24 Nov, 2003 2 commits
  34. 16 Nov, 2003 1 commit
    • Havoc Pennington's avatar
      fix warning · 901ad18a
      Havoc Pennington authored
      2003-11-15  Havoc Pennington  <hp@redhat.com>
      
      	* src/main.c (main): fix warning
      
      	* src/compositor.c: add a new file to contain compositing manager
      	functionality; not yet implemented at all.
      901ad18a
  35. 08 Nov, 2003 1 commit
    • Rob Adams's avatar
      Try harder to find a theme in the event that the theme in the preference · 2218b791
      Rob Adams authored
      2003-11-07  Rob Adams  <readams@readams.net>
      
      	* src/main.c (main): Try harder to find a theme in the event that
      	the theme in the preference cannot be found.  Patch from Marcin
      	Krzyzanowski.  See #125815.
      
      	* src/place.c (meta_window_place): use "visual" centering for
      	dialog placement and clip new dialogs to an xinerama workspace.
      	Fix for #118336.
      2218b791