summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* - change the default for switch_to_workspace_* to be <Control><Alt>arrow as ↵Bastien Nocera2002-05-021-2/+2
| | | | just <Alt>arrow collides with some apps (especially web browsers)
* Xlib doesn't like NULL for out arguments; fix for #80472 from lbedfordHavoc Pennington2002-05-012-2/+9
| | | | | | | 2002-05-01 Havoc Pennington <hp@redhat.com> * src/screen.c (meta_screen_new): Xlib doesn't like NULL for out arguments; fix for #80472 from lbedford
* finish mopping up mode_switch_mask fieldHavoc Pennington2002-05-012-7/+2
| | | | | | | | | 2002-04-30 Havoc Pennington <hp@pobox.com> * src/keybindings.c: finish mopping up mode_switch_mask field * src/display.h (struct _MetaDisplay): remove mode_switch_mask field
* don't try to decorate toolbars.Havoc Pennington2002-05-017-34/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-30 Havoc Pennington <hp@pobox.com> * src/window.c (recalc_window_features): don't try to decorate toolbars. * src/tools/metacity-window-demo.c: add menu and toolbar tests * src/place.c (meta_window_place): only dialogs should be centered over parent, not anything with transient for set. * src/window.c (meta_window_configure_request): become more fascist about window positioning if workarounds are disabled, and less fascist if they are enabled. * src/metacity.schemas: add a "disable_workarounds" option. Kind of crack-smoking. But we just can't get all applications fixed. And I need no-workarounds mode to monitor which apps are broken and what needs fixing in specs. * src/window.c (meta_window_configure_request): always allow windows to resize themselves * src/keybindings.c (reload_modmap): don't filter out Mode_switch, apparently some people bind window manager shortcuts to that.
* oops, fix maximization. Pointed out by Gustavo GiráldezHavoc Pennington2002-04-301-10/+11
| | | | | | | 2002-04-30 Havoc Pennington <hp@redhat.com> * src/window.c (constrain_position): oops, fix maximization. Pointed out by Gustavo Giráldez
* give Maximize/Unmaximize and Shade/Unshade the same mnemonic forJonathan Blandford2002-04-301-2/+2
| | | | | | | Tue Apr 30 06:24:09 2002 Jonathan Blandford <jrb@gnome.org> * src/menu.c: give Maximize/Unmaximize and Shade/Unshade the same mnemonic for consistency's sake.
* require 36 pixels onscreen so you typically get a sliver of titlebar,Havoc Pennington2002-04-291-35/+13
| | | | | | | | | 2002-04-29 Havoc Pennington <hp@redhat.com> * src/window.c (TITLEBAR_LENGTH_ONSCREEN): require 36 pixels onscreen so you typically get a sliver of titlebar, suggested by tigert. Should still fix this to consider actual theme geometry. (constrain_position): change to allow movement off the left
* always raise windows on focus click, regardless of focus mode.Havoc Pennington2002-04-291-8/+1
| | | | | | | 2002-04-29 Havoc Pennington <hp@redhat.com> * src/display.c (event_callback): always raise windows on focus click, regardless of focus mode.
* don't leak the PangoContextHavoc Pennington2002-04-291-0/+1
| | | | | | 2002-04-29 Havoc Pennington <hp@pobox.com> * src/ui.c (meta_ui_init): don't leak the PangoContext
* Add support for setting the _NET_WM_WORKAREA hint. No code does it yetAnders Carlsson2002-04-284-3/+45
| | | | | | | | | | | | 2002-04-28 Anders Carlsson <andersca@gnu.org> * src/display.c: (meta_display_open): * src/display.h: * src/screen.c: (set_supported_hint): * src/workspace.c: (set_number_of_spaces_hint), (set_workarea_hint): Add support for setting the _NET_WM_WORKAREA hint. No code does it yet though.
* remove caveats about keybindingsHavoc Pennington2002-04-2816-439/+2444
| | | | | | | | | | | | | | | | | | | | | | | 2002-04-28 Havoc Pennington <hp@pobox.com> * README: remove caveats about keybindings * src/metacity.schemas: add schemas for all the keybindings. * src/window.c (meta_window_activate): if in "show desktop" mode when a window is activated, leave show desktop mode. So e.g. when you click on a task in the task list, show desktop mode will be turned off. * src/workspace.c (meta_workspace_get_neighbor): new function that doesn't quite work yet (needs support for getting workspace layout from the pager) * src/prefs.c: keybindings stuff * src/keybindings.c: make keybindings configurable * src/ui.c (meta_ui_parse_accelerator): new function
* g_file_get_contents() takes a gsize not int (fixes bus error on 64-bitjacob berkman2002-04-251-1/+1
| | | | | | | 2002-04-25 jacob berkman <jacob@ximian.com> * src/session.c (load_state): g_file_get_contents() takes a gsize not int (fixes bus error on 64-bit platforms)
* call setlocale ourselves because due to a GLib bug that sticks us in ASCIIHavoc Pennington2002-04-223-7/+31
| | | | | | | | | | | | | | 2002-04-22 Havoc Pennington <hp@redhat.com> * src/main.c (main): call setlocale ourselves because due to a GLib bug that sticks us in ASCII if you call g_print or anything prior to setlocale, and print a warning if we don't set the locale successfully. #79280 * src/workspace.c (meta_workspace_get_work_area): be more verbose about how the work area was computed, to help find bugs here. * src/main.c (main): put locale and codeset in the log file
* add error trap, fixes a possible BadWindow if a window closed itself inHavoc Pennington2002-04-221-1/+3
| | | | | | | | 2002-04-21 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_send_icccm_message): add error trap, fixes a possible BadWindow if a window closed itself in response to the delete window message prior to us sending the ping message.
* never revert to user_rect.width, user_rect.height. Maybe fixes assortedHavoc Pennington2002-04-221-5/+9
| | | | | | | | 2002-04-21 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_move_resize_now): never revert to user_rect.width, user_rect.height. Maybe fixes assorted resize screwups e.g. with gnome-terminal.
* Add padding if icon width and height differ.Anders Carlsson2002-04-211-0/+21
| | | | | | | 2002-04-21 Anders Carlsson <andersca@gnu.org> * src/iconcache.c (scaled_from_pixdata): Add padding if icon width and height differ.
* query Xinerama screen information if HAVE_XINERAMAHavoc Pennington2002-04-214-1/+91
| | | | | | | | | 2002-04-17 Havoc Pennington <hp@pobox.com> * src/screen.c (meta_screen_new): query Xinerama screen information if HAVE_XINERAMA * configure.in (found_xinerama): check for Xinerama
* fix issue with GNU libc mangling %.10s formatMETACITY_2_3_89Havoc Pennington2002-04-161-1/+4
| | | | | | | | | | | | | 2002-04-15 Havoc Pennington <hp@pobox.com> * src/window.c (update_title): fix issue with GNU libc mangling %.10s format * metacity.spec: Fix up spec file * README: update README * configure.in (ALL_LINGUAS): require GTK 2.0.0
* reply immediately for windows that don't support _NET_WM_PINGHavoc Pennington2002-04-153-3/+16
| | | | | | | | | | 2002-04-15 Havoc Pennington <hp@redhat.com> * src/display.c (meta_display_ping_window): reply immediately for windows that don't support _NET_WM_PING * src/window.c (update_protocols): check whether windows support _NET_WM_PING
* same fix as libwnck, avoid using cmap with the wrong depthHavoc Pennington2002-04-131-0/+9
| | | | | | | 2002-04-13 Havoc Pennington <hp@pobox.com> * src/ui.c (get_cmap): same fix as libwnck, avoid using cmap with the wrong depth
* new file containing all the wacky mess I just added to a simple "click theHavoc Pennington2002-04-136-115/+600
| | | | | | | | | | 2002-04-13 Havoc Pennington <hp@pobox.com> * src/delete.c: new file containing all the wacky mess I just added to a simple "click the close button", contains all the dealing-with-dead-application cruft. Use metacity-window-demo to test by clicking the toolbar button that locks it up.
* make one of the toolbar buttons lock up the demoHavoc Pennington2002-04-124-4/+168
| | | | | | | | | | | | | | 2002-04-12 Havoc Pennington <hp@redhat.com> * src/tools/metacity-window-demo.c (do_appwindow): make one of the toolbar buttons lock up the demo * src/window.c (meta_window_delete): move error trap to be around a narrower part of the function, and add part of the ping stuff, nothing user-visible yet * src/metacity-dialog.c (main): metacity-dialog executable to live in libexecdir and pop up dialogs for us.
* fix alpha multiplication routine to perhaps work correctly, reported byHavoc Pennington2002-04-101-8/+20
| | | | | | | | | 2002-04-09 Havoc Pennington <hp@pobox.com> * src/theme.c (multiply_alpha): fix alpha multiplication routine to perhaps work correctly, reported by tigert. Also, be sure we always copy the image if necessary before modifying the alpha channel.
* remove the unused tab stuffHavoc Pennington2002-04-059-223/+110
| | | | | | | | | | 2002-04-05 Havoc Pennington <hp@pobox.com> * src/stack.c: remove the unused tab stuff * src/display.c: implement tab list among panels * src/keybindings.c: fill in move-between-panels keybindings
* Make sure all menu items are translated.Johan Dahlin2002-03-311-2/+2
| | | | | | | 2002-03-31 Johan Dahlin <jdahlin@telia.com> * src/menu.c (meta_window_menu_new): Make sure all menu items are translated.
* remove unmanaged windows from save set, and unselect input so we don't getHavoc Pennington2002-03-281-1/+12
| | | | | | | | | | 2002-03-27 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_free): remove unmanaged windows from save set, and unselect input so we don't get events from them. Fixes annoying bug where withdrawn windows would decide to map themselves due to save set stuff.
* Added "Bright" theme from Gaute Lindkvist, with some small clipping tweaksHavoc Pennington2002-03-222-0/+364
| | | | | | | | 2002-03-21 Havoc Pennington <hp@pobox.com> * src/themes/Bright/metacity-theme-1.xml: Added "Bright" theme from Gaute Lindkvist, with some small clipping tweaks to keep text/icons from overlapping their frames.
* disable the little shaped windows with the window size, they caused aHavoc Pennington2002-03-191-0/+4
| | | | | | | | | 2002-03-19 Havoc Pennington <hp@redhat.com> * src/resizepopup.c (place_vertical_size_window) (place_horizontal_size_window): disable the little shaped windows with the window size, they caused a crash anytime you tried to resize with Xft. And they were kind of on crack anyway.
* turn off the tick marks, that got annoying after about 5 minutes. One bigHavoc Pennington2002-03-171-0/+3
| | | | | | | | 2002-03-17 Havoc Pennington <hp@pobox.com> * src/resizepopup.c (ensure_tick_windows): turn off the tick marks, that got annoying after about 5 minutes. One big shape window instead of lots of little windows might fix it.
* Add some total crackrock resize-grid indication for windows that haveHavoc Pennington2002-03-178-33/+1193
| | | | | | | | 2002-03-17 Havoc Pennington <hp@pobox.com> * src/resizepopup.c: Add some total crackrock resize-grid indication for windows that have width_inc/height_inc so I can debug gnome-terminal sizing.
* use proper property name for SmDiscardCommand (instead of setting theHavoc Pennington2002-03-171-3/+5
| | | | | | | | | | 2002-03-17 Havoc Pennington <hp@pobox.com> * src/session.c (set_clone_restart_commands): use proper property name for SmDiscardCommand (instead of setting the clone command to "rm"). Also fix typo that iterated over clonev not discardv to fill in prop list, and NULL-terminate discardv. #74584 from Kang Jeong-Hee.
* put back --sm-client-id argument, needed for including us in a defaultHavoc Pennington2002-03-143-26/+61
| | | | | | | 2002-03-13 Havoc Pennington <hp@pobox.com> * src/main.c (main): put back --sm-client-id argument, needed for including us in a default session
* don't save a file here, only in response to SaveYourself. Change the codeHavoc Pennington2002-03-143-79/+138
| | | | | | | | | 2002-03-13 Havoc Pennington <hp@pobox.com> * src/session.c (meta_session_init): don't save a file here, only in response to SaveYourself. Change the code to properly use a unique state file for each SaveYourself. Totally, totally untested.
* improve the theme viewer so people can see the broken aspects of theirHavoc Pennington2002-03-122-39/+512
| | | | | | | 2002-03-12 Havoc Pennington <hp@pobox.com> * src/theme-viewer.c: improve the theme viewer so people can see the broken aspects of their themes.
* use new functionsHavoc Pennington2002-03-127-59/+224
| | | | | | | | | | | | | | | 2002-03-11 Havoc Pennington <hp@pobox.com> * src/keybindings.c: use new functions * src/display.c (meta_display_get_tab_next): (meta_display_get_tab_list): new tab order functions using MRU list instead of map order * src/window.c (meta_window_notify_focus): maintain focus MRU list * src/display.h (struct _MetaDisplay): Keep an MRU list of windows.
* support _NET_NUMBER_OF_DESKTOPS message so you can change number ofHavoc Pennington2002-03-103-2/+70
| | | | | | | | | | | | 2002-03-10 Havoc Pennington <hp@pobox.com> * src/display.c (event_callback): support _NET_NUMBER_OF_DESKTOPS message so you can change number of desktops with the pager * src/prefs.c (meta_prefs_set_num_workspaces): new function * src/display.c (meta_spew_event): print stacking aspects of configure request
* we didn't claim to support _NET_ACTIVE_WINDOW so gtk_window_present()Havoc Pennington2002-03-105-7/+57
| | | | | | | | | | | | | | 2002-03-10 Havoc Pennington <hp@pobox.com> * src/screen.c (set_supported_hint): we didn't claim to support _NET_ACTIVE_WINDOW so gtk_window_present() didn't work. Mumble. Only worked with tasklist because libwnck didn't check for WM support. * src/window.c (meta_window_free): clean off window state when windows are withdrawn, to avoid sticking dialogs to their initial desktop. (meta_window_queue_calc_showing): return if window is withdrawn
* remove broken assertionsHavoc Pennington2002-03-071-2/+0
|
* add some assertionsHavoc Pennington2002-03-073-2/+6
| | | | | | | | | | | | | 2002-03-06 Havoc Pennington <hp@pobox.com> * src/core.c (meta_core_get_grab_frame): add some assertions * src/menu.c (meta_window_menu_new): make another warning into a verbose * src/display.c (meta_change_button_grab): use verbose rather than warning to log failures to grab button, since these are typically BadWindow from a destroyed window.
* use hash_table_replace instead of g_hash_table_insertHavoc Pennington2002-03-065-8/+15
| | | | | | | | | | | | | | | | | | | 2002-03-06 Havoc Pennington <hp@redhat.com> * src/frames.c (meta_frames_manage_window): use hash_table_replace instead of g_hash_table_insert * src/main.c (main): only enable verbose/debug if you set METACITY_VERBOSE/METACITY_DEBUG * src/util.c (ensure_logfile): only use a log file if METACITY_USE_LOGFILE is set * src/display.c (meta_display_for_x_display): add warning if MetaDisplay isn't found * src/window.c (meta_window_free): add an assertion that we successfully cleared the grab window
* Work on opaque animations more, still suck too much to turn on. Not sureHavoc Pennington2002-03-055-62/+119
| | | | | | | | | | | | | 2002-03-05 Havoc Pennington <hp@pobox.com> Work on opaque animations more, still suck too much to turn on. Not sure how to make them good. * src/effects.c (meta_effects_draw_box_animation): add a slide-up mode for shading * src/ui.c (meta_image_window_set): change image window to work by setting back pixmap on the GtkWindow, instead of using GtkImage.
* try ignoring SIGXFSZ, though I'm not sure what that does exactly. I'mHavoc Pennington2002-03-052-12/+40
| | | | | | | | | | 2002-03-04 Havoc Pennington <hp@pobox.com> * src/main.c (main): try ignoring SIGXFSZ, though I'm not sure what that does exactly. I'm hoping it gives me EFBIG. * src/util.c (ensure_logfile): log to a file in /tmp instead of to ~/metacity.log.
* improve debug spew about initial workspaceHavoc Pennington2002-03-041-0/+23
| | | | | | 2002-03-03 Havoc Pennington <hp@pobox.com> * src/window.c: improve debug spew about initial workspace
* disable resize etc. if we're fullscreen (constrain_size): fix sizeHavoc Pennington2002-03-032-4/+15
| | | | | | | | | | | | 2002-03-02 Havoc Pennington <hp@pobox.com> * src/window.c (recalc_window_features): disable resize etc. if we're fullscreen (constrain_size): fix size constraints when fullscreen * src/display.c (meta_display_open): fix missing comma that ended up concatenating two of the properties breaking FULLSCREEN state and PING protocol
* Add hacking to fix the problem that we made our XGrabPointer() duringHavoc Pennington2002-03-026-45/+159
| | | | | | | | | | 2002-03-02 Havoc Pennington <hp@pobox.com> * src/display.c: Add hacking to fix the problem that we made our XGrabPointer() during Alt+Tab actually succeed, so on popping down Alt+Tab we got an EnterNotify from the ungrab, which resulted in focusing the window under the mouse. i.e. Alt+Tab didn't work with sloppy focus.
* Screw around with Anders's ping patch so he'll get plenty of CVSHavoc Pennington2002-02-274-6/+237
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-02-26 Havoc Pennington <hp@pobox.com> Screw around with Anders's ping patch so he'll get plenty of CVS conflicts. ;-) * src/display.c (meta_display_ping_window): spew warnings if we try to call this with CurrentTime (meta_display_ping_timeout): remove ping from the pending pings after it times out. * src/util.h: added PING debug category * src/display.c (remove_pending_pings_for_window): don't remove "tmp" just before "tmp->next", don't break out of loop after finding the first match (meta_display_open): no trailing comma in array init (event_callback): move the processing of ping replies into a separate function * src/screen.c (set_supported_hint): add _NET_WM_PING to supported list * src/display.h: change gpointer to void* 2002-02-26 Anders Carlsson <andersca@gnu.org> * src/display.c: (ping_data_free), (remove_pending_pings_for_window), (meta_display_open), (event_callback), (meta_display_unregister_x_window), (meta_display_ping_timeout), (meta_display_ping_window), (meta_display_window_has_pending_pings): Implement meta_display_ping_window, and filter out scroll wheel events. * src/display.h: Add MetaWindowPingFunc, meta_display_ping_window and meta_display_window_has_pending_pings.
* switch on the op passed in, not the active op. Gives us the right cursorHavoc Pennington2002-02-245-42/+126
| | | | | | | | | | | | | | | | | | | | | 2002-02-24 Havoc Pennington <hp@pobox.com> * src/display.c (xcursor_for_op): switch on the op passed in, not the active op. Gives us the right cursor during resizing, etc. * src/errors.c: rearrange all the error stuff to adapt to the GDK change a while back, so now we print our X errors again * src/display.c (meta_display_begin_grab_op): remove KeyPressMask and KeyReleaseMask from the XGrabPointer(), this caused BadValue and kept the grab from ever succeeding. Fixes the problem with the GTK resize grip - this is why you shouldn't break your X error spew. ;-) * src/display.c: debug spew tweaks * src/window.c (meta_window_client_message): do some s/verbose/topic/ stuff
* fix the be-sure-we-create-coverage-cache hackHavoc Pennington2002-02-231-7/+20
| | | | | | | 2002-02-23 Havoc Pennington <hp@pobox.com> * src/ui.c (meta_ui_init): fix the be-sure-we-create-coverage-cache hack
* put in hack to keep Pango from mangling our server grab and locking up onHavoc Pennington2002-02-236-19/+107
| | | | | | | | | | | | | 2002-02-19 Havoc Pennington <hp@pobox.com> * src/ui.c (meta_ui_init): put in hack to keep Pango from mangling our server grab and locking up on startup. (hack doesn't work but I want to fix it on my real computer not this laptop) * src/window.c: Implement _NET_WM_STATE_FULLSCREEN * src/display.c (meta_display_open): add atoms for _NET_WM_STATE_FULLSCREEN
* Shh some moreKjartan Maraas2002-02-161-0/+1
|