summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2002-07-25add Metabox theme from GarrettHavoc Pennington3-3/+475
2002-07-24 Havoc Pennington <hp@pobox.com> * src/themes/Makefile.am (THEMES): add Metabox theme from Garrett * README: updates 2002-07-21 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_new): don't automaximize fullscreen windows. 2002-07-14 Havoc Pennington <hp@pobox.com> * src/window.c (recalc_window_features): don't allow shading of border-only windows.
2002-07-24syncHavoc Pennington2-13/+49
2002-07-24fixes to the commentsHavoc Pennington1-20/+93
2002-07-24look for themes in ~/.themes/NAME/metacity-1/ andHavoc Pennington5-39/+29
2002-07-24 Havoc Pennington <hp@redhat.com> * src/theme-parser.c (meta_theme_load): look for themes in ~/.themes/NAME/metacity-1/ and datadir/themes/NAME/metacity-1 instead of the old locations. * src/themes/Makefile.am: install themes to datadir/themes/NAME/metacity-1/ to match how GTK works, breaking third-party themes yet again! woot!
2002-07-24grab display across managing each screen; XGetInputFocus() on startup.Havoc Pennington4-5/+253
2002-07-20 Havoc Pennington <hp@pobox.com> * src/display.c (meta_display_open): grab display across managing each screen; XGetInputFocus() on startup. 2002-07-19 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_configure_request): disable configure requests during a user move/resize operation, mostly a workaround for stoopid apps.
2002-07-24put Gorilla back in the buildHavoc Pennington61-214/+141
2002-07-23 Havoc Pennington <hp@redhat.com> * src/themes/Makefile.am (THEMES): put Gorilla back in the build * src/themes/Gorilla/metacity-theme-1.xml, src/themes/Crux/metacity-theme-1.xml: fixes from Sebastien Delestaing so that these themes work properly with different font sizes. * src/frames.c (get_control): patch from Balamurali Viswanathan for #81984 (resize titlebar from the top not the bottom)
2002-07-23Show the real workspace names in the window menuRoss Burton3-7/+87
2002-07-23handle NULL screen from screen_for_xwindowHavoc Pennington4-1/+42
2002-07-23 Havoc Pennington <hp@redhat.com> * src/keybindings.c (meta_display_process_key_event): handle NULL screen from screen_for_xwindow * src/display.c (meta_display_screen_for_xwindow): put an error trap around the XGetWindowAttributes(), should fix the popular "closing a window results in a crash" bug. * src/util.c (print_backtrace): support optional backtrace feature using gnu libc backtrace() call
2002-07-17update libegg stuffHavoc Pennington1-1/+1
2002-07-15steal from profterm to fix buildjacob berkman1-0/+25
2002-07-15 jacob berkman <jacob@ximian.com> * src/update-from-egg.sh: steal from profterm to fix build
2002-07-14don't put a newline after the default workspace nameHavoc Pennington1-1/+1
2002-07-13 Havoc Pennington <hp@pobox.com> * src/workspace.c (meta_workspace_new): don't put a newline after the default workspace name
2002-07-14adapt to virtual modifiers (meta_display_process_mapping_event): we needHavoc Pennington10-53/+958
2002-07-13 Havoc Pennington <hp@pobox.com> * src/keybindings.c: adapt to virtual modifiers (meta_display_process_mapping_event): we need to reload the binding tables now when the modmap changes. * src/prefs.c (update_binding): parse virtual modifiers, not plain modmask * src/common.h (MetaVirtualModifer): new enum * src/ui.c (meta_ui_parse_accelerator): use egg_accelerator_parse_virtual() * src/Makefile.am: add eggaccelerators.[hc] for the virtual accelerator parsing function
2002-07-13don't display the dialog if all the apps were session managed.Havoc Pennington1-0/+7
2002-07-12 Havoc Pennington <hp@pobox.com> * src/session.c (warn_about_lame_clients_and_finish_interact): don't display the dialog if all the apps were session managed.
2002-07-13don't send SmInteractDone until the warning dialog about crappy clientsHavoc Pennington2-14/+66
2002-07-12 Havoc Pennington <hp@pobox.com> * src/session.c: don't send SmInteractDone until the warning dialog about crappy clients has been closed.
2002-07-12try to maximize windows that are too big for the work areaHavoc Pennington2-3/+38
2002-07-12 Havoc Pennington <hp@redhat.com> * src/window.c (meta_window_new): try to maximize windows that are too big for the work area * src/place.c (find_next_cascade): don't let the cascade algorithm place windows off the screen, and fix it to always exhaustively search the window list for cascade parents.
2002-07-11option to display error when a command fails to run.Havoc Pennington5-2/+379
2002-07-11 Havoc Pennington <hp@pobox.com> * src/metacity-dialog.c (main): option to display error when a command fails to run. * src/keybindings.c (handle_run_command): run commands in response to keybindings. * src/prefs.c: add command keybinding stuff * src/metacity.schemas.in: add keybindings for running commands, and keys to store the commands themselves.
2002-07-10properly attribute selection code to Matthias ClasenHavoc Pennington2-7/+3
2002-07-10 Havoc Pennington <hp@redhat.com> * src/display.c: properly attribute selection code to Matthias Clasen
2002-07-10couple of updatesHavoc Pennington1-1/+1
2002-07-10 Havoc Pennington <hp@pobox.com> * README: couple of updates * src/main.c (usage): add --replace to usage, reported by Matthias Clasen
2002-07-10fix short description for begin_resize, patch from Jayaraj, #87654Havoc Pennington2-2/+12
2002-07-09 Havoc Pennington <hp@pobox.com> * src/metacity.schemas.in: fix short description for begin_resize, patch from Jayaraj, #87654 * src/keybindings.c (handle_begin_resize): apply patch from Jayaraj to actually handle the begin resize keybinding.
2002-07-10don't center vertically for maximized windows that don't fill the screen,Havoc Pennington1-4/+1
2002-07-09 Havoc Pennington <hp@pobox.com> * src/window.c (constrain_position): don't center vertically for maximized windows that don't fill the screen, just leave them at the top.
2002-07-06increase the size of the mini workspacesHavoc Pennington1-2/+3
2002-07-06 Havoc Pennington <hp@pobox.com> * src/tabpopup.c (selectable_workspace_new): increase the size of the mini workspaces
2002-07-06Apply blackc@speakeasy.net patch, bug #83940, to do mini-workspacesHavoc Pennington7-30/+326
2002-07-06 Havoc Pennington <hp@pobox.com> Apply blackc@speakeasy.net patch, bug #83940, to do mini-workspaces similar to the pager, when switching spaces. * src/window.c (update_net_wm_state): actually fill in wm_state_skip_taskbar, wm_state_skip_pager flags * src/tabpopup.c: support drawing a mini-workspace similar to the one the pager draws. * src/stack.c (meta_stack_list_windows): new function to list the windows in stacking order * src/screen.c (meta_screen_ensure_workspace_popup): don't pass in the ugly default app icon for workspaces * src/display.c (event_callback): fix from blackc@speakeasy.net to avoid dereferencing a NULL grab window.
2002-07-06put _NET_DESKTOP_NAMES in the array of atom names, so desktop names mightHavoc Pennington8-104/+158
2002-07-06 Havoc Pennington <hp@pobox.com> * src/display.c (meta_display_open): put _NET_DESKTOP_NAMES in the array of atom names, so desktop names might work and we don't read uninitialized memory. * src/main.c (main): add VERSION/timestamp verbose message. * src/keybindings.c: implement cycle_windows cycle_panels * src/metacity.schemas.in: add the cycle_windows cycle_panels keybindings * src/prefs.h (META_KEYBINDING_FOCUS_PREVIOUS): replace FOCUS_PREVIOUS key binding with CYCLE_WINDOWS and CYCLE_PANELS (not good names really, but I don't have ideas). * src/common.h: add a grab op for alt+esc window cycling
2002-07-05Take Gorilla out until it gets repaired.Havoc Pennington1-2/+1
2002-07-05 Havoc Pennington <hp@pobox.com> * src/themes/Makefile.am (THEMES): Take Gorilla out until it gets repaired.
2002-07-05Change default value of input hint (if not specified) to true instead ofHavoc Pennington1-2/+3
2002-07-05 Havoc Pennington <hp@pobox.com> * src/window.c (update_wm_hints): Change default value of input hint (if not specified) to true instead of false. This is what some clients assume, such as Visual SlickEdit.
2002-07-03use new macros to get whether we allow move/resize correctHavoc Pennington4-17/+91
2002-07-02 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_show_menu): use new macros to get whether we allow move/resize correct * src/frame.c (meta_frame_get_flags): use new macros to get whether we can move/resize correct, considering maximized/fullscreen for the move case. * src/window.h (META_WINDOW_ALLOWS_RESIZE, META_WINDOW_ALLOWS_MOVE): new macros * src/keybindings.c (process_keyboard_resize_grab): finish the right/left resize, patch from Jayaraj #78179. Has the same old move/resize bug, if it hits a constraint it starts to break because we move without resizing.
2002-07-02rename from {un}grab_all_keys_and_keyboard and only do an XKeyboardGrab,Mark McLoughlin1-54/+13
2002-07-02 Mark McLoughlin <mark@skynet.ie> * src/keybindings.c: (grab_keyboard), (ungrab_keyboard): rename from {un}grab_all_keys_and_keyboard and only do an XKeyboardGrab, the XKeyGrab isn't neccessary. (meta_screen_grab_all_keys), (meta_screen_ungrab_all_keys), (meta_window_grab_all_keys), (meta_window_ungrab_all_keys): update for above change. (handle_workspace_switch): don't use a MetaWindow when workspace switching, use the root window instead.
2002-07-01Fix broken workspace switching from my previous commit.Mark McLoughlin3-14/+41
2002-07-01 Mark McLoughlin <mark@skynet.ie> Fix broken workspace switching from my previous commit. * src/display.c: (meta_display_begin_grab_op): don't leak a pointer grab if we fail to grab the keyboard. * src/keybindings.c: (meta_screen_grab_keys): check screen->all_keys_grabbed. (meta_screen_grab_all_keys): regrab our standard bindings if we fail. (handle_workspace_switch): revert to our previous behaviour of using the last focused window to do the grab upon. Only use the RootWindow if there isn't anything else to use. * src/screen.c: (meta_screen_new): initialise all_keys_grabbed.
2002-06-27Fixes not being able to tab out of a workspace which contains no windows.Mark McLoughlin7-120/+216
2002-06-26 Mark McLoughlin <mark@skynet.ie> Fixes not being able to tab out of a workspace which contains no windows. * src/core.c: (meta_core_begin_grab_op): upd for meta_display_begin_grab_op change. (meta_core_get_grab_frame): allow for grab_window == NULL. * src/display.[ch]: (meta_display_screen_for_xwindow): implement. (meta_display_begin_grab_op): grab on the root window if window == NULL. (meta_display_end_grab_op): use grab_screen instead of grab_window. * src/keybindings.c: (grab_all_keys_and_keyboard): split out from meta_window_grab_all_keys. (ungrab_all_keys_and_keyboard): split out from meta_window_ungrab_all_keys. (meta_screen_grab_all_keys), (meta_screen_ungrab_all_keys): implement grabbing and ungrabbing on the root window. (meta_display_process_key_event): if window == NULL, check the event is from the same screen and process. Only happens with workspace switching. (process_workspace_switch_grab): kill window param and don't use grab_window. (handle_tab_forward), (handle_begin_move): upd for meta_display_begin_grab_op change. (handle_workspace_switch): remove brokeness. Always do the grab op on the root window. * src/keybindings.h: add meta_screen_{un}grab_all_keys. * src/window.c: (meta_window_client_message), (menu_callback): update for meta_display_begin_grab_op change.
2002-06-25s/gdk_get_default_display/gdk_display_get_default/Mark McLoughlin3-4/+4
2002-06-25 Mark McLoughlin <mark@skynet.ie> * src/fixedtip.c: (meta_fixed_tip_show): * src/frames.c: (meta_frames_new): * src/tabpopup.c: (meta_ui_tab_popup_new): s/gdk_get_default_display/gdk_display_get_default/ s/gdk_get_default_screen/gdk_screen_get_default/
2002-06-25added support for border only windows.Mark McLoughlin12-0/+77
2002-06-25 Mark McLoughlin <mark@skynet.ie> * src/themes/Crux/active-border-top-left-border.png: * src/themes/Crux/active-border-top-right-border.png: * src/themes/Crux/active-top-left-corner.png: * src/themes/Crux/active-top-mid-left-border.png: * src/themes/Crux/active-top-mid-right-border.png: * src/themes/Crux/active-top-right-corner.png: * src/themes/Crux/inactive-border-top-left-border.png: * src/themes/Crux/inactive-border-top-right-border.png: * src/themes/Crux/inactive-top-left-corner.png: * src/themes/Crux/inactive-top-mid-border.png: * src/themes/Crux/inactive-top-right-corner.png: * src/themes/Crux/metacity-theme-1.xml: added support for border only windows.
2002-06-25Added some stuff to the window buttons, so they use the ACTIVE bg/fg.James M. Cape1-11/+103
2002-06-24 James M. Cape <jcape@ignore-your.tv> * src/themes/Esco/metacity-theme-1.xml: Added some stuff to the window buttons, so they use the ACTIVE bg/fg.
2002-06-25src/screen.c: (set_supported_hint), (set_work_area_hint): ItsMark McLoughlin5-77/+77
2002-06-25 Mark McLoughlin <mark@skynet.ie> * src/display.[ch]: (meta_display_open): src/screen.c: (set_supported_hint), (set_work_area_hint): Its _NET_WORKAREA, not _NET_WM_WORKAREA silly :-) 2002-06-25 Mark McLoughlin <mark@skynet.ie> * src/screen.[ch]: (update_num_workspaces), recalc workarea hint when new workspaces created. Fixes bug that workarea not calculated until first non-dock window is mapped. (set_work_area_hint), (set_work_area_idle_func), (meta_screen_queue_workarea_recalc): move all this stuff from workspace.c. * src/workspace.c: (meta_workspace_invalidate_work_area): use meta_screen_queue_workarea_recalc.
2002-06-23Update with border-only window stuff from Atlanta.Gediminas Paulauskas1-0/+30
2002-06-23 Gediminas Paulauskas <menesis@delfi.lt> * src/themes/Bright/metacity-theme-1.xml: Update with border-only window stuff from Atlanta.
2002-06-23Update for "border" frame stuff, minor button/spacing improvements.James M. Cape1-36/+86
2002-06-22 James M. Cape <jcape@ignore-your.tv> * src/themes/Esco/metacity-theme-1.xml: Update for "border" frame stuff, minor button/spacing improvements.
2002-06-23Partially fix Jacob's SM bugs.Havoc Pennington3-5/+93
2002-06-22 Havoc Pennington <hp@pobox.com> Partially fix Jacob's SM bugs. * src/window.c (meta_window_apply_session_info): restore the extra stuff we're saving, except stack position I didn't figure out yet. * src/session.c: save stack position, minimized, maximized, in the session file.
2002-06-22do nothing if screen is being unmanaged, we don't want to blow away state,Havoc Pennington6-135/+149
2002-06-22 Havoc Pennington <hp@pobox.com> * src/workspace.c (set_number_of_spaces_hint): do nothing if screen is being unmanaged, we don't want to blow away state, we want to remember it for the next window manager. 2002-06-22 Havoc Pennington <hp@pobox.com> * src/workspace.c (meta_screen_ensure_workspace_popup): rename from meta_workspace_ensure_tab_popup, and use workspace->name instead of a hardcoded name
2002-06-22new utility functionHavoc Pennington8-1/+176
2002-06-22 Havoc Pennington <hp@pobox.com> * src/xprops.c (meta_prop_get_utf8_list): new utility function * src/display.c (meta_display_open): _NET_DESKTOP_NAMES atom (event_callback): update workspace names when the property changes * src/screen.c (set_supported_hint): "support" _NET_DESKTOP_NAMES (nothing to do really)
2002-06-22Theme breakage! Themes have to implement "border" frames now, see AtlantaHavoc Pennington9-25/+180
2002-06-21 Havoc Pennington <hp@pobox.com> Theme breakage! Themes have to implement "border" frames now, see Atlanta for an example. Fixes #84285 * src/tools/metacity-window-demo.c (do_appwindow): add a border-only window * src/window.c (update_mwm_hints): read border only from the MWM hints * src/window.h (struct _MetaWindow): add border_only flag * src/core.c (meta_core_get_frame_type): report border type if required * src/common.h (enum): add META_FRAME_TYPE_BORDER
2002-06-20sticky windows aren't visibile on all screens. Check the workspace is onMark McLoughlin2-3/+2
2002-06-20 Mark McLoughlin <mark@skynet.ie> * src/window.c: (meta_window_visible_on_workspace): sticky windows aren't visibile on all screens. Check the workspace is on the same screen as the window. * src/workspace.c: (meta_workspace_list_windows): use meta_window_visible_on_workspace here.
2002-06-19handle UNKNOWN keyboard resizing stateHavoc Pennington3-1/+333
2002-06-19 Havoc Pennington <hp@pobox.com> * src/display.c (meta_resize_gravity_from_grab_op): handle UNKNOWN keyboard resizing state * src/keybindings.c (process_keyboard_resize_grab): implement keyboard resize key handling somewhat (only vertical resize works, left/right arrow not implemented, and visual feedback of the edge we're resizing isn't implemented) * src/window.c (menu_callback): start keyboard resize grab when it's chosen from the menu
2002-06-18don't use a minimized window as the next focus window, patch fromHavoc Pennington2-0/+2
2002-06-17 Havoc Pennington <hp@pobox.com> * src/stack.c (meta_stack_get_default_focus_window): don't use a minimized window as the next focus window, patch from blackc@speakeasy.net
2002-06-18increase the cascade threshold a bit. (find_first_fit): implement aHavoc Pennington1-55/+313
2002-06-17 Havoc Pennington <hp@pobox.com> * src/place.c (find_next_cascade): increase the cascade threshold a bit. (find_first_fit): implement a somewhat lame first fit algorithm
2002-06-18fix from Gaute Lindkvist #82977 for unsticking windowsHavoc Pennington1-11/+4
2002-06-17 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_change_workspace): fix from Gaute Lindkvist #82977 for unsticking windows
2002-06-17associate close_window keybinding to Alt-F4Frédéric Crozat1-1/+1
* src/metacity.schemas.in: associate close_window keybinding to Alt-F4
2002-06-16fix spelling error, #85452Havoc Pennington1-1/+1
2002-06-16 Havoc Pennington <hp@pobox.com> * src/main.c (main): fix spelling error, #85452
2002-06-16don't pass a null string to printfHavoc Pennington2-14/+38
2002-06-15 Havoc Pennington <hp@pobox.com> * src/keybindings.c (meta_display_process_key_event): don't pass a null string to printf * src/display.c (key_event_description): don't pass a null string to printf * src/keybindings.c (meta_set_keybindings_disabled): allow enable/disable keybindings regardless of debug mode.
2002-06-15workspace-drawing code factored out of libwnck, needs wiring up toHavoc Pennington3-0/+279
2002-06-15 Havoc Pennington <hp@pobox.com> * src/draw-workspace.h, src/draw-workspace.c: workspace-drawing code factored out of libwnck, needs wiring up to tabpopup.c (which is kind of annoying since you have to get the list of workspaces and MetaWindow across the barrier between the GDK-aware and non-GDK-aware sides of metacity)
2002-06-15always focus new windows, trying to be smart about it was a flop.Havoc Pennington1-43/+68
2002-06-14 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_show): always focus new windows, trying to be smart about it was a flop.
2002-06-14Check for NULL string before calling strlen(). Fixes the core dumpJayaraj Rajappan1-1/+1
reported in #84873.