1. 08 Jul, 2011 1 commit
    • Florian Müllner's avatar
      theme: Allow using custom colors from the GTK+ theme · 54b2fab8
      Florian Müllner authored
      Add an additional color type to pick up colors defined with
      @define-color in the GTK+ theme's CSS:
      (where "name" refers to the name defined in GTK+'s CSS, and fallback
      refers to an alternative color spec which is used when the color
      referenced by "name" is not found)
      The main intent of the change is to allow designers to improve
      Adwaita's dark theme variant without having to compromise on colors
      which work in the light variant as well.
  2. 05 Jan, 2011 2 commits
  3. 18 Nov, 2010 1 commit
  4. 13 Apr, 2010 3 commits
    • Owen W. Taylor's avatar
      Allow a theme to specify ellipsize width for a title · 1d7476a7
      Owen W. Taylor authored
      It's nice to indicate when a title is truncated with an ellipsis.
      Because themes may draw a title multiple times to draw a shadow, or
      may include the window icon within the title area, we can't determine
      the proper ellipsization width automatically, so add an optional
      attribute to the <title/> element "ellipsize_width" which, if set,
      is the width to ellipsize at.
      This is only enabled if a theme version of 3.1 is required.
      When it's not set, we keep the old behavior of just letting the
      title be clipped with a hard edge.
    • Owen W. Taylor's avatar
      Add frame_x_center/frame_y_center variables for themes · e8e78ebf
      Owen W. Taylor authored
      Sometimes you want to position something (usually the title) to be centered
      with respect to the entire frame instead of centered with respect to the
      individual piece currently being drawn.
      This patch adds frame_x_center and frame_y_center variables that represent
      the X/Y centers of the frame in the coordinate system of the piece being
      The theme version is bumped from 3.0 to 3.1 (3.0 is just the new version
      system, 3.1 will have all the features we add for Mutter-2.28.)
      position expressions
    • Owen W. Taylor's avatar
      metacity-theme-3.xml: Add a flexible version mechanism · 020aea03
      Owen W. Taylor authored
      The current mechanism of metacity-theme-1.xml and metacity-theme-2.xml
      is not flexible for allowing small-scale additions. With this patch
      we bump the major version version once more to metacity-theme-3.xml
      and add a single feature:
      Any element in the DTD can have an attribute:
       version="[<|<=|=>|>] MAJOR.MINOR"
      And it will be ignored unless the predicate is met. (< and > should
      be to be entity escaped as &lt; and &gt;)
      This allows having alternate sections of the theme file for older and
      newer version.
      * Required GLib version is bumped to 2.14 so we can parse versions
        with a regular expression.
      * We switch internal version numbers to be "1000 * major + minor"
      * We keep a stack of the maximum required version for the current portion
        the XML tree so that the "cannot use versions you don't require" stricture
        of the old code can be made local to a subpart of the tree.
      * A version on the top metacity_theme element causes the entire file to
        be ignored; this allows having one metacity-theme-3.xml for version 3.2
        and newer (say) and a metacity-1.xml for everything old.
      Actual new features will be added starting with 3.1 - 3.0 is just the
      version="" feature.
  5. 16 Jun, 2009 1 commit
    • Jon Nettleton's avatar
      Comprehensively rename to Mutter · 51a64679
      Jon Nettleton authored
      All references in the code not related to themes, keybindings, or
      GConf were changed from 'metacity' to 'mutter'. This includes, among other
      things, strings, comments, the atoms used in the message protocol, and
      the envvars used for debugging. The GConf schema file was reduced to
      the 3 settings new to mutter.
      The overall version was brought up to 2.27 to match current gnome.
      All files named '*metacity*' were renamed '*mutter*' with appropriate
      changes in the automake system.  Files removed are
      doc/creating_themes, src/themes, doc/metacity-theme.dtd,
      metacity.doap.  These files will eventually end up in an external
      gnome-wm-data module.
      Installation location:
      On the filesystem the mutter-plugindir was change from
      $(libdir)/metacity/plugins/clutter to just $(libdir)/mutter/plugins.
      The mutter-plugins.pc.in reflects these changes.
      mutter.desktop.in and mutter-wm.desktop both continue to have
      X-GNOME-WMSettingsModule=metacity set.  This allows
      gnome-control-center to continue using libmetacity.so for
      configuration.  This is fine since most the general keybindings and wm
      settings are being read from /apps/metacity/* in gconf.
  6. 23 Oct, 2008 2 commits
  7. 22 Oct, 2008 1 commit
  8. 18 Oct, 2008 1 commit
  9. 14 Aug, 2008 1 commit
    • Akira TAGOH's avatar
      new manual page. added new reference. · 92fe1574
      Akira TAGOH authored
      2008-08-14  Akira TAGOH  <akira@tagoh.org>
              * doc/man/metacity-message.1: new manual page.
              * doc/man/Makefile.am: added new reference.
      svn path=/trunk/; revision=3811
  10. 04 Apr, 2007 1 commit
    • Elijah Newren's avatar
      Fix lots of little issues with min/max constraints and size increment · 921661e9
      Elijah Newren authored
      2004-04-04  Elijah Newren  <newren gmail com>
      	Fix lots of little issues with min/max constraints and size
      	increment constraints.  Fixes #329152, #418395, and possibly
      	* src/window-props.c (meta_set_normal_hints):
      	Do more checking to make sure application specified constraints
      	are self-consistent, modifying the size_hints as necessary to
      	achieve self-consistency.
      	* src/constraints.c (setup_constraint_info): remove ugly
      	copy-pasto, (constrain_size_increments): be careful that fixing
      	violation of the constraints doesn't cause a violation of the
      	minimum size constraints.
      	* src/window.c (ensure_size_hints_satisfied): new function,
      	(meta_window_unmaximize, meta_window_unmake_fullscreen): the
      	saved_rect may no longer be valid (as in the case of #329152) so
      	call ensure_size_hints_satisfied to fix it up.
      	* doc/how-to-get-focus-right.txt: Some minor spacing and wording
      	fixes completely unrelated to the rest of this commit
      svn path=/trunk/; revision=3155
  11. 16 Jan, 2007 2 commits
  12. 07 Oct, 2006 1 commit
  13. 01 Oct, 2006 1 commit
    • Elijah Newren's avatar
      Fix longstanding focus bug with mouse (not sloppy) focus mode with popup · b694312f
      Elijah Newren authored
      2006-10-01  Elijah Newren  <newren gmail com>
      	Fix longstanding focus bug with mouse (not sloppy) focus mode with
      	popup override-redirect windows, particularly mozilla and
      	firefox's location bar autocompletion.  #357695.
      	* src/display.c (event_callback -- EnterNotify & LeaveNotify events):
      	for mouse focus, defocus the focused window when the mouse enters
      	the desktop window rather than when the mouse leaves the focused
      	* doc/how-to-get-focus-right.txt:
      	update for the slightly nuanced definition of mouse focus (people
      	without a DESKTOP window like nautilus get sloppy focus behavior
  14. 12 Feb, 2006 1 commit
  15. 21 Nov, 2005 2 commits
  16. 19 Nov, 2005 1 commit
    • Elijah Newren's avatar
      Merge of all the changes on the constraints_experiments branch. This is · a7201d27
      Elijah Newren authored
      2005-11-18  Elijah Newren  <newren@gmail.com>
      	Merge of all the changes on the constraints_experiments branch.
      	This is just a summary, to get the full ChangeLog of those
      	changes (approx. 2000 lines):
      	  cvs -q -z3 update -Pd -r constraints_experiments
      	  cvs -q -z3 diff -pu -r CONSTRAINTS_EXPERIMENTS_BRANCHPOINT ChangeLog
      	Bugs fixed:
      	  unfiled - constraints.c is overly complicated[1]
      	  unfiled - constraints.c is not robust when all constraints
      	            cannot simultaneously be met (constraints need to be
      	  unfiled - keep-titlebar-onscreen constraint is decoration
      	            unaware (since get_outermost_onscreen_positions()
      	            forgets to include decorations)
      	  unfiled - keyboard snap-moving and snap-resizing snap to hidden
      	   109553 - gravity w/ simultaneous move & resize doesn't work
      	   113601 - maximize vertical and horizontal should toggle and be
      	   122196 - windows show up under vertical panels
      	   122670 - jerky/random resizing of window via keyboard[2]
      	   124582 - keyboard and mouse snap-resizing and snap-moving
      	            erroneously moves the window multidimensionally
      	   136307 - don't allow apps to resize themselves off the screen
      	            (*cough* filechooser *cough*)
      	   142016, 143784 - windows should not span multiple xineramas
      	            unless placed there by the user
      	   143145 - clamp new windows to screensize and force them
      	            onscreen, if they'll fit
      	   144126 - Handle pathological strut lists sanely[3]
      	   149867 - fixed aspect ratio windows are difficult to resize[4]
      	   152898 - make screen edges consistent; allow easy slamming of
      	            windows into the left, right, and bottom edges of the
      	            screen too.
      	   154706 - bouncing weirdness at screen edge with keyboard moving
      	            or resizing
      	   156699 - avoid struts when placing windows, if possible (nasty
      	            a11y blocker)
      	   302456 - dragging offscreen too restrictive
      	   304857 - wireframe moving off the top of the screen is misleading
      	   308521 - make uni-directional resizing easier with
      	            alt-middle-drag and prevent the occasional super
      	            annoying resize-the-wrong-side(s) behavior
      	   312007 - snap-resize moves windows with a minimum size
      	   312104 - resizing the top of a window can cause the bottom to
      	   319351 - don't instantly snap on mouse-move-snapping, remove
      	            braindeadedness of having order of releasing shift and
      	            releasing button press matter so much
      	   [1] fixed in my opinion, anyway.
      	   [2] Actually, it's not totally fixed--it's just annoying
      	       instead of almost completely unusable.  Matthias had a
      	       suggestion that may fix the remainder of the problems (see
      	   [3] This bug was originally about not-quite-so-pathological
      	       cases but was left open for the worse cases. The code from
      	       the branch handles the remainder of the cases mentioned in
      	       this bug.
      	   [4] Actually, although it's far better there's still some minor
      	       issues left: a slight drift that's only noticeable after
      	       lots of resizing, and potential problems with partially
      	       onscreen constraints due to not clearing any
      	       fixed_directions flags (aspect ratio windows get resized in
      	       both directions and thus aren't fixed in one of them)
      	New feature:
      	    81704 - edge resistance for user move and resize operations;
      	            in particular 3 different kinds of resistance are
                   	 Pixel-Distance: window movement is resisted when it
      	     	   aligns with an edge unless the movement is greater than
      	     	   a threshold number of pixels
                   	 Timeout: window movement past an edge is prevented until
      	     	   a certain amount of time has elapsed during the
      	     	   operation since the first request to move it past that
                   	 Keyboard-Buildup: when moving or resizing with the
      	     	   keyboard, once a window is aligned with a certain edge
      	     	   it cannot move past until the correct direction has
      	     	   been pressed enough times (e.g. 2 or 3 times)
      	Major changes:
      	  - constraints.c has been rewritten; very few lines of code from
      	    the old version remain.  There is a comment near the top of
      	    the function explaining the basics of how the new framework
      	    works.  A more detailed explanation can be found in
      	  - edge-resistance.[ch] are new files implementing edge-resistance.
      	  - boxes.[ch] are new files containing low-level error-prone
      	    functions used heavily in constraints.c and edge-resistance.c,
      	    among various places throughout the code.  testboxes.c
      	    contains a thorough testsuite for the boxes.[ch] functions
      	    compiled into a program, testboxes.
      	  - meta_window_move_resize_internal() *must* be told the gravity
      	    of the associated operation (if it's just a move operation,
      	    the gravity will be ignored, but for resize and move+resize
      	    the correct value is needed)
      	  - the craziness of different values that
      	    meta_window_move_resize_internal() accepts has been documented
      	    in a large comment at the beginning of the function.  It may
      	    be possible to clean this up some, but until then things will
      	    remain as they were before--caller beware.
      	  - screen and xinerama usable areas (i.e. places not covered by
      	    e.g. panels) are cached in the workspace now, as are the
      	    screen and xinerama edges.  These get updated with the
      	    workarea in src/workspace.c:ensure_work_areas_validated()
  17. 17 Mar, 2005 1 commit
  18. 22 Feb, 2005 1 commit
    • Elijah Newren's avatar
      Handle keynav vs. mousenav in mouse and sloppy focus modes. Fixes #167545. · 61250726
      Elijah Newren authored
      2005-02-21  Elijah Newren  <newren@gmail.com>
      	Handle keynav vs. mousenav in mouse and sloppy focus modes.  Fixes
      	* doc/how-to-get-focus-right.txt: Update due to this new method
      	for handling keynav vs. mousenav, plus various other updates that
      	I previously forgot.
      	* src/display.h: (struct _MetaDisplay): add a mouse_mode boolean
      	* src/display.c: (meta_display_open): initialize mouse_mode to
      	true, (event_callback): have EnterNotify and LeaveNotify events
      	set mouse_mode to true when focusing a window
      	* src/keybindings.c: (process_tab_grab): set mouse_mode to false
      	when using alt-tab/alt-esc, (do_choose_window): likewise,
      	(do_handle_move_to_workspace): set mouse_mode to false on
      	move-window-to-workspace-<n> keybindings
      	* src/window.c (idle_calc_showing): if we're in keynav mode while
      	using sloppy or mouse focus, use metacity_sentinel to avoid
      	EnterNotify events being generated from events other than mouse
      	* src/workspace.c (meta_workspace_activate_with_focus): add a
      	FIXME in a potentially duplicate section of code,
      	(meta_workspace_focus_default_window): use the same focus choice
      	as click-to-focus if in keynav mode.
  19. 02 Feb, 2005 1 commit
    • Elijah Newren's avatar
      Focus parents of dismissed transient windows in preference to the window · de5588c1
      Elijah Newren authored
      2005-02-02  Elijah Newren  <newren@gmail.com>
      	Focus parents of dismissed transient windows in preference to the
      	window that most recently had keyboard focus.  Fixes #157360.
      	* doc/how-to-get-focus-right.txt: Note the distinction between
      	"most recently used window" and "most recent to have keyboard
      	focus" that we are now making.
      	* src/workspace.c: (focus_ancestor_or_mru_window): rename from
      	meta_workspace_focus_mru_window, and first check whether we need
      	to focus an ancestor window before looking for the mru window,
      	(record_ancestor): helper function for
      	(meta_workspace_focus_default_window): update due to the function
      	rename from meta_workspace_focus_mru_window to
  20. 25 Jan, 2005 1 commit
    • Elijah Newren's avatar
      Add man pages for metacity-window-demo and metacity-theme-viewer. Man · ea4d4b7b
      Elijah Newren authored
      2005-01-25  Elijah Newren  <newren@gmail.com>
      	Add man pages for metacity-window-demo and metacity-theme-viewer.
      	Man pages from Jose Moya, auto-fu from Dave Ahlswede. (#143513)
      	* doc/man/metacity-theme-viewer.1:
      	* doc/man/metacity-window-demo.1:
      	New man pages
      	* doc/man/Makefile.am:
      	* doc/Makefile.am:
      	* configure.in:
      	Make sure to install the man pages
      	* doc/man/.cvsignore:
      	Silence cvs
  21. 09 Jan, 2005 1 commit
    • Elijah Newren's avatar
      Don't focus the panel on click. Fixes #160470 (and 100470 and removes the · be29c696
      Elijah Newren authored
      2005-01-09  Elijah Newren  <newren@gmail.com>
      	Don't focus the panel on click.  Fixes #160470 (and 100470 and
      	removes the need for the hack from 128200)
      	* doc/how-to-get-focus-right.txt: Update section on focusing
      	non-decorated windows (specifically, DOCKS and DESKTOPS)
      	* src/display.c (event_callback): don't focus dock windows on
  22. 02 Jan, 2005 1 commit
    • Elijah Newren's avatar
      Provide more documentation to make it easier for people to contribute to · 9382d581
      Elijah Newren authored
      2005-01-02  Elijah Newren  <newren@gmail.com>
      	Provide more documentation to make it easier for people to
      	contribute to Metacity
      	* HACKING: Add lots of information to extend this document: more
      	on relevant standards and X properties, lots of information on
      	debugging and testing, and add a list of some other important
      	things to read; also move some information to
      	src/code-overview.txt and organize this file into sections.
      	* src/code-overview.txt: New file including some small parts from
      	the old HACKING file and lots of new stuff.  This file gives a
      	brief overview of some of the bigger structures and files, with
      	guides for a variety of task categories providing places to start
      	looking in the code and things to look for.
  23. 15 Sep, 2004 1 commit
    • Elijah Newren's avatar
      Focus the no_focus_window if no suitable window is in the mru list (should · cffe7e95
      Elijah Newren authored
      2004-09-15  Elijah Newren  <newren@math.utah.edu>
      	Focus the no_focus_window if no suitable window is in the mru list
      	(should fix the almost contrived extra issue found in #147475)
      	* doc/how-to-get-focus-right.txt: We no longer need to lie about
      	only focusing panels upon explicit request.
      	* src/workspace.c: (meta_workspace_focus_top_window): removed this
      	function--it was more code than needed and was unreliable anyway,
      	(meta_workspace_focus_mru_window): if a suitable window isn't in
      	the mru list, focus the no_focus_window instead of calling
  24. 07 Sep, 2004 2 commits
  25. 17 Feb, 2003 1 commit
  26. 23 Dec, 2002 1 commit
  27. 26 Nov, 2002 1 commit
  28. 20 Nov, 2002 1 commit
    • Havoc Pennington's avatar
      add DTD for themes from Ross Burton · e9999aa9
      Havoc Pennington authored
      2002-11-20  Havoc Pennington  <hp@pobox.com>
      	* doc/metacity-theme.dtd: add DTD for themes from Ross Burton
      	* doc/Makefile.am: doc subdir
      	* doc/theme-format.txt: move to doc subdir