path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-01-13Fix permissionsHEADmasterSam Spilsbury246-0/+0
2011-01-13Merge branch 'master' of git:// Spilsbury7-5/+307
2011-01-05Add an "Above_Tab" pseudo-keysymOwen W. Taylor7-5/+307
We want switching between the windows of an application to be an easily accessible operation. The convenient and memorable keybinding is the key above the tab key - but the keysym for that key isn't consistent across different keyboard layouts. Add code that figures out the key from the XKB geometry and a magic keysym name "Above_Tab" that refers to this key and switch the default binding for cycle_group to <Alt>Above_Tab.
2010-12-10Parse shadow opacity too. Remove dbg messagesSam Spilsbury2-221/+227
2010-12-10Add the ability to parse <shadow> and <padding> tags in <frame-style>Sam Spilsbury246-1/+262
2010-11-22Fix drawing of <arc> elementsNickolas Lloyd1-1/+1
This patch fixes the drawing of <arc> theme elements to appear in the desired orientation
2010-11-22Unify keymap-reloading code branchesOwen W. Taylor1-15/+24
Simplify the keymap loading logic by unifying the different branches; in the reorganization this patch fixes a bug where when we got a MappingKeyboard event we wouldn't update virtual modifiers correctly. Based on a patch by Thomas Thurman <>
2010-11-22Update keybindings when XKB keyboard layout changesDerek Poon2-1/+31
* Select for XKB keyboard notification events explicitly; since GTK+ has selected for XKB events, delivery of old-school MappingNotify events is disabled. * Fix a bug where once a keycode was loaded for a key binding, it would never be reassigned; we want to laod new keycodes for all bindings that have a key symbol rather than a fixed keycode. [ With fixes from Owen W. Taylor <> ]
2010-09-29Patch to fix theme breakage in 2.30.2; see bug 630426Brandon Wright1-1/+17
2010-09-15Replace GDK drawing API with cairoFlorian Müllner6-301/+330
The GDK drawing API was deprecated/removed.
2010-09-15Removes usage of (newly deprecated) gdk_displayMatthias Clasen5-106/+107
2010-09-15Stop confusing GDK's grab trackingOwen W. Taylor1-4/+152
With client side windows, mixing GDK event delivery with explicit calls to XUngrabPointer() can result in GDK losing button release events it expects to get. This means that GDK thinks there is an implicit grab in effect when there is none and send events to the wrong window. Avoid this by bypassing GDK's event handling for most mouse events. We do a simplified conversion of the X event into a GdkEvent and send it to directly to libgtk for delivery. We make an exception when a GDK grab is already in effect - this is needed for the correct operation of menus.
2010-07-14Replace deprecated GDK symbolsFlorian Müllner1-10/+16
The fix depends on new API added in this cycle, so the required GTK+ version is bumped to 2.21.1.
2010-06-10More fixes for compiling with GSeal. Requires gtk 2.20.Andre Klapper5-47/+64
2010-06-10Make METACITY_WINDOW_DEMO compile with -DGSEAL_ENABLE. See bug 612491.Andre Klapper1-12/+12
2010-05-25Fix crash with --sync optionOwen W. Taylor1-2/+2
If the display hasn't been initialized yet, just change the start variable and don't update the display.
2010-05-08Fix very unlikely crasher. See ↵Paul Liu1-1/+1
2010-05-03Remove deprecated Encoding key from desktop filesFrédéric Péters2-2/+0
2010-05-02fix memory leak in theme optimisationLin Ma1-0/+2
2010-05-02Use correct timestamp for focus stealing preventionTomas Frydrych1-6/+24
When window initially maps, use the more recent of NET_WM_USER_TIME and startup notification timestamps to compare against last known user action to decide whether to focus the window or not. Once we show the window, clear the initial_timestamp_set flag, so the startup notification timestamp is not taken into account again. Based on patch for metacity by Alexander Larsson
2010-05-02Don't warn about a missing session fileTomislav Vujec1-2/+0
When started without session related command line parameters (e.g. from gnome-session), metacity picks up client_id from the DESKTOP_AUTOSTART_ID environment variable. Unfortunately, there is no way to distinguish if this was passed from a config file, representing old saved session, or generated by gnome-session, therefore load_state is attempted in each case. If the client_id is generated, there will be no session file, and metacity will report a warning. Just remove the warning so that users won't always find a warning at the start of their .xsession-errors.
2010-05-02fails to link with pedantic linkersMatthias Clasen1-1/+1
2010-04-06Fix crash when right-clicking on window frameEdward Sheldrake1-1/+1
This is a regression added in 333446ab.
2010-03-31Fix build with gcc 4.5Vincent Untz3-7/+10
Based on patch by Dominique Leuenberger <>
2010-03-29Revert 0f805bfd (new default cycle_group keybinding to Alt-grave)Didier Roche1-1/+1
There are two wrong assumptions there: - ` being above tab is surely true for some qwerty layout, but not in other layout like azerty (² is above the tab). We should find a clever way to find the key above tab - ` is proceeded in azerty keyboard (french layout) by <Alt Gr + è>. The issue is that <Shift + è> is "7". And so, "Alt + 7" (used in some applications like irssi, weechat, …) is <Alt + Shift + è>, which is the reverse order to naviguate between grouped windows, and so, you can't anymore access to this keybinding.
2010-02-10Fix typo when checking the result of getpwuidOwen W. Taylor1-1/+1
Was meant to be: errno==0 && pwd!=NULL Not: errno==0 || pwd==NULL
2010-01-22Cleanup: split MetaSide from MetaDirectionOwen W. Taylor5-54/+61
The MetaDirection enumeration had META_SIDE_* values in it that were used in some places where an enum with only four directions was needed. Split this off into a separate enum called MetaSide and use that enum name where appropriate.
2010-01-21Reduce GConf roundtripsMatthias Clasen1-85/+63
2010-01-21Replace deprecated symbols in theme-viewer.cLuis Torres1-20/+21
-Replaced calls to gtk_toolbar_insert_stock with gtk_toolbar_insert -Created appropriated GtkToolButtons
2010-01-21Replaced deprecated symbols in metacity-window-demo.cLuis Torres1-39/+57
-Replaced calls to gtk_toolbar_insert_stock with gtk_toolbar_insert -Created appropriate GtkToolButton items
2010-01-21Replace usage of deprecated gtk apiThomas Hindoe Paaboel Andersen6-19/+19
Fixes part of GNOME Bug #572332
2010-01-21fix documentation of mouse_button_modifierTheppitak Karoonboonyanan1-2/+2
2010-01-20Increase ping timeout delay to 5sVincent Untz1-1/+1
2010-01-20prevent window self-maximisationPeter Bloomfield4-6/+33
2010-01-17check window has frame before flashing italexisdm591-2/+2
2010-01-14Don't call IceCloseConnection() behind libSM's backOwen W. Taylor1-3/+7
The ICE connection is opened by libSM; we can't just close it when we get an IOError on the ICE connection; instead call SmcCloseConnection() and mark the connection as closed. This will prevent a segfault if we exit out of the metacity main loop and get to meta_finalize().
2010-01-05store timestamp for _NET_WM_CM_SX selectionTravis Watkins2-2/+7
2010-01-05Throw away result of write(); it's not importantThomas Thurman1-1/+3
2010-01-05Remove markup from translated stringClaude Paroz1-6/+10
2009-11-29Fix build failure from SIGCHLD nexus left oversFrederic Peters1-6/+0
Looks like there are some leftovers in include/util.h: /** * An object which exists purely to attach signals to; this is to receive * signals when a child process exits. The signal is "sigchld" with no detail. */ extern MetaNexus *sigchld_nexus; Removing those lines fixes the build
2009-11-20sound: ask libcanberra to cache alert/desktop switch soundsLennart Poettering2-0/+2
These sounds are good candidates for caching in the sound server, to save a bit of CPU and make reaction faster. Hence, tell libcanberra to cache them.
2009-11-20tooltip: set window type hint for self-drawn tooltips to ↵Lennart Poettering1-0/+2
GDK_WINDOW_TYPE_HINT_TOOLTIP libcanberra generates specific tooltip popup sounds and for that recognizes the tooltip windows by the GtkWindowTypeHint set for them. This trivial patch simply sets the hint for the self-drawn tooltips metacity uses.
2009-11-20bell: increase bell rate limit from 1/s to 1/100msLennart Poettering1-1/+1
Right now metacity issues only 1 bell event per second. This is feels buggy when triggering multiple alarm sounds in a terminal. This patch simple increases the limit to 1/100ms. 100ms is probably a good choice since the HIG recommends that all user reaction should happen within 100ms. With this applied pressing 'Left' in gnome-terminal feels much more responsive.
2009-11-20Fix handling of SIGCHLDDan Winship5-128/+26
The commit that removed metacity-dialog added a global SIGCHLD handler that caused problems by (a) calling waitpid(-1) and thus breaking g_child_watch for everyone else, and (b) doing too much from a signal handler and sometimes causing deadlocks (bug 596200). This removes the global handler and has each zenity user create its own child watch to watch for exit. (It also fixes the window class of the zenity dialogs, so that meta_window_present_delete_dialog() will work again.)
2009-11-20Don't call meta_finalize from SIGTERM handlerRay Strode1-2/+26
It's not a legal function to call from a signal handler. Instead defer until going back to the main loop.
2009-10-21Add XFCE Terminal as a terminalOwen W. Taylor1-0/+3
Include the XFCE terminal program 'Terminal' in the list of terminals.
2009-10-09Change default cycle_group keybinding to Alt-graveRay Strode1-1/+1
It makes more sense because the grave key is close to the tab and escape keys which the other cycle keybindings use. This always works better for gnome-shell, which switchings between applications by default with alt-tab. The user can now alt-tab to the application they want, and then move their finger to the grave key to select the window they want.
2009-08-24Add missing quotes in strings (Fixes #572046)Claude Paroz1-2/+2
2009-07-09unset _NET_SUPPORTING_WM_CHECK when shutting downThomas Thurman1-0/+9
2009-07-06Add a switch to disable autofullscreen'ing maximized windows without decorationsTomeu Vizoso4-2/+35