summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-09-15Replace GDK drawing API with cairoFlorian Müllner6-301/+330
The GDK drawing API was deprecated/removed. https://bugzilla.gnome.org/show_bug.cgi?id=627245
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. http://bugzilla.gnome.org/show_bug.cgi?id=599181
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. https://bugzilla.gnome.org/show_bug.cgi?id=572332
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. https://bugzilla.gnome.org/show_bug.cgi?id=618613
2010-05-08Fix very unlikely crasher. See ↵Paul Liu1-1/+1
https://bugzilla.gnome.org/attachment.cgi?id=133411
2010-05-03Remove deprecated Encoding key from desktop filesFrédéric Péters2-2/+0
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=592693
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 http://bugzilla.gnome.org/show_bug.cgi?id=573922
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. https://bugzilla.gnome.org/show_bug.cgi?id=577576
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 <dominique-gnomezilla@leuenberger.net> https://bugzilla.gnome.org/show_bug.cgi?id=606719
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 https://bugzilla.gnome.org/show_bug.cgi?id=609586
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(). https://bugzilla.gnome.org/show_bug.cgi?id=604867
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. https://bugzilla.redhat.com/show_bug.cgi?id=498608
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. https://bugzilla.gnome.org/show_bug.cgi?id=600864
2009-10-21Add XFCE Terminal as a terminalOwen W. Taylor1-0/+3
Include the XFCE terminal program 'Terminal' in the list of terminals. https://bugzilla.gnome.org/show_bug.cgi?id=599262
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
2009-03-12 Remove deprecated GTK symbols. Refs #572332.Thomas James Alexander Thurman14-46/+48
* src/include/util.h: * src/tools/metacity-window-demo.c: * src/ui/fixedtip.c: * src/ui/frames.c: * src/ui/frames.h: * src/ui/menu.c: * src/ui/metaaccellabel.c: * src/ui/metaaccellabel.h: * src/ui/preview-widget.c: * src/ui/preview-widget.h: * src/ui/tabpopup.c: * src/ui/theme-viewer.c: * src/ui/themewidget.c: * src/ui/themewidget.h: * test/tokentest/tokentest.c: svn path=/trunk/; revision=4193
2009-03-12use g_signal_handlers_disconnect_by_func instead of an old deprecatedThomas James Alexander Thurman1-16/+6
* src/tools/metacity-mag.c: use g_signal_handlers_disconnect_by_func instead of an old deprecated function. svn path=/trunk/; revision=4192
2009-03-12fix problem where the previous code ignored callbacks for properties whoseThomas James Alexander Thurman1-47/+24
* src/core/window-props.c: fix problem where the previous code ignored callbacks for properties whose values weren't looked up. Closes #572573. svn path=/trunk/; revision=4191
2009-03-06add optional dependency on gtop. Include "(as username)" in the titlebarThomas James Alexander Thurman2-2/+99
* configure.in: add optional dependency on gtop. * src/core/window-props.c: Include "(as username)" in the titlebar if a window is running as another user. * src/core/window.c: check for PID before name, since the rendering of the name can now depend on the PID. Closes #549389. svn path=/trunk/; revision=4181
2009-02-21Don't force CA_PROP_CANBERRA_ENABLE to 1. That was a misunderstanding onMatthias Clasen1-1/+0
* src/core/bell.c: Don't force CA_PROP_CANBERRA_ENABLE to 1. That was a misunderstanding on my part, and makes it impossible to get rid of the bell. svn path=/trunk/; revision=4165
2009-02-20 Use zenity for the session management dialogue that warns aboutThomas James Alexander Thurman5-580/+64
clueless clients, not metacity-dialog. This is the last change away from metacity-dialog and therefore closes #521914. * src/Makefile.am: * src/core/session.c: * src/core/util.c: * src/include/util.h: * src/ui/metacity-dialog.c (deleted): svn path=/trunk/; revision=4163
2009-02-13Now that we are using libcanberra, don't tell the X server to play theMatthias Clasen1-6/+0
* src/core/bell.c (meta_bell_set_audible): Now that we are using libcanberra, don't tell the X server to play the system bell internally. svn path=/trunk/; revision=4141
2009-02-12Use libcanberra to play system bell and workspace switch soundsMatthias Clasen2-3/+104
svn path=/trunk/; revision=4137
2009-02-11 Session must be saved before display close, and displayThomas James Alexander Thurman4-6/+25
shouldn't close during shutdown if it's already closed. Can't believe we don't have a bug about this already... * src/core/display-private.h: * src/core/display.c: * src/core/main.c: * src/core/session.c: svn path=/trunk/; revision=4133