summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2002-09-06Fix titlebar glitch on small dialogs.Frédéric Crozat1-2/+2
* src/themes/Crux/metacity-theme-1.xml: Fix titlebar glitch on small dialogs.
2002-09-04new functionHavoc Pennington4-57/+77
2002-09-03 Havoc Pennington <hp@pobox.com> * src/display.c (meta_display_get_tab_current): new function * src/keybindings.c (do_choose_window): apply modified patch from JeyaSudha to still display tab popup if only one window is on the desktop.
2002-09-04Session saves the unmaximized postion, size of a maximized window. #86059JeyaSudha3-2/+91
2002-06-25 JeyaSudha <jeyasudha.duraipandy@wipro.com> * src/session.c, src/window.c: Session saves the unmaximized postion, size of a maximized window. #86059
2002-09-04don't filter out prelight for unmaximize button. #83860Havoc Pennington1-11/+17
2002-09-03 Havoc Pennington <hp@pobox.com> * src/frames.c (meta_frames_update_prelit_control): don't filter out prelight for unmaximize button. #83860 (meta_frames_paint_to_drawable): handle unmaximize here as well
2002-08-28always apply rounding for shaded windows, fixes Bluecurve theme whenHavoc Pennington1-8/+12
2002-08-27 Havoc Pennington <hp@pobox.com> * src/theme.c (meta_frame_layout_calc_geometry): always apply rounding for shaded windows, fixes Bluecurve theme when shaded
2002-08-25when freeing a fullscreen window, update layers of the window's group.Havoc Pennington1-1/+16
2002-08-25 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_free): when freeing a fullscreen window, update layers of the window's group.
2002-08-25_NET_SUPPORTING_WM_CHECK is supposed to have type WINDOW not CARDINAL.Havoc Pennington1-1/+1
2002-08-25 Havoc Pennington <hp@pobox.com> * src/display.c (meta_display_open): _NET_SUPPORTING_WM_CHECK is supposed to have type WINDOW not CARDINAL. reported by Ben Jansens
2002-08-24recalculate mapped-ness of frame after toggling decorations on/off, soHavoc Pennington2-0/+21
2002-08-24 Havoc Pennington <hp@redhat.com> * src/window.c (process_property_notify): recalculate mapped-ness of frame after toggling decorations on/off, so that windows don't disappear when decorations are toggled on. * src/tools/metacity-window-demo.c (toggle_decorated_cb): add a test for toggling decoration state on the fly
2002-08-24hack around bug in kmail etc. where SM_CLIENT_ID was set on the window,Havoc Pennington2-10/+50
2002-08-24 Havoc Pennington <hp@redhat.com> * src/window.c (update_sm_hints): hack around bug in kmail etc. where SM_CLIENT_ID was set on the window, not the client leader. * src/theme.c (meta_frame_layout_calc_geometry): don't round corners unless we have enough frame to chop off.
2002-08-24translate some strings that should have been, and convert to localeHavoc Pennington3-25/+106
2002-08-24 Havoc Pennington <hp@redhat.com> * src/util.c: translate some strings that should have been, and convert to locale encoding before printing stuff. * src/stack.c (group_member_is_fullscreen): if window itself is fullscreen, return TRUE immediately. * src/window.c (meta_window_configure_request): add hack to fullscreenize large undecorated windows.
2002-08-23Place cursors on frames, not rootKeith Packard4-2/+28
2002-08-21add maximize and unmaximize keybinding setting. Partly fixes bug# 78999.Deepa Natarajan4-0/+80
2002-08-21 Deepa Natarajan <deepa.natarajan@wipro.com> * src/keybindings.c, src/metacity.schemas.in, src/prefs.[ch]: add maximize and unmaximize keybinding setting. Partly fixes bug# 78999.
2002-08-20if in the title rect check for y <= TOP_RESIZE_HEIGHTHavoc Pennington3-64/+72
2002-08-20 Havoc Pennington <hp@redhat.com> * src/frames.c (get_control): if in the title rect check for y <= TOP_RESIZE_HEIGHT * src/display.c (meta_spew_event): put x/y coordinates in spew for enter/leave notify * src/frames.c (meta_frames_motion_notify_event): move cursor changing from here to update_prelit_control so it happens on enter notify as well (get_control): change test "y < TOP_RESIZE_HEIGHT" to "y <= TOP_RESIZE_HEIGHT" * src/Makefile.am (EXTRA_DIST): include .in files in EXTRA_DIST
2002-08-15default to "Sans Bold 10" for the titlebar font.Havoc Pennington1-1/+1
2002-08-15 Havoc Pennington <hp@redhat.com> * src/metacity.schemas.in: default to "Sans Bold 10" for the titlebar font.
2002-08-15leave has_fullscreen_func set to TRUE if the window is screen sized andHavoc Pennington6-3/+102
2002-08-15 Havoc Pennington <hp@pobox.com> * src/window.c (recalc_window_features): leave has_fullscreen_func set to TRUE if the window is screen sized and undecorated, even if the window isn't resizable. idea from Christian - Manny Calavera - Neumair * src/keybindings.c (handle_toggle_fullscreen) (handle_toggle_maximize): these disabled fullscreen/maximize if the window wasn't resizable, should have used has_fullscreen_func has_maximize_func instead. 2002-08-15 Havoc Pennington <hp@pobox.com> * src/keybindings.c: implement raise/lower * src/metacity.schemas.in: add raise/lower * src/prefs.c: add "raise" and "lower" prefs to keybindings * src/display.c (meta_display_set_grab_op_cursor): assert that the screen arg is non-NULL in appropriate cases
2002-08-14In XGrabPointer, set the confine_to argument to the root window of theJayaraj Rajappan3-2/+6
2002-08-14 Jayaraj Rajappan <jayaraj.rajappan@wipro.com> * src/display.c (meta_display_set_grab_op_cursor): In XGrabPointer, set the confine_to argument to the root window of the screen the window is on. * src/display.h: add screen argument. * src/window.c (meta_window_update_resize_grab_op): pass screen argument as NULL.
2002-08-14use button positioning theme stuff.James M. Cape1-71/+54
2002-08-14 James M. Cape <jcape@ignore-your.tv> * src/themes/Esco/metacity-theme-1.xml: use button positioning theme stuff.
2002-08-14move from workspace.c. (update_num_workspaces): set the hint here. FixesMark McLoughlin2-30/+23
2002-08-14 Mark McLoughlin <mark@skynet.ie> * src/screen.c: (set_number_of_spaces_hint), move from workspace.c. (update_num_workspaces): set the hint here. Fixes #90123. * src/workspace.c: (meta_workspace_new), (meta_workspace_free): don't set the hint here. (update_num_workspaces): move to screen.c
2002-08-12window is in fullscreen layer if any member of its group is fullscreenHavoc Pennington10-24/+344
2002-08-12 Havoc Pennington <hp@redhat.com> * src/stack.c (compute_layer): window is in fullscreen layer if any member of its group is fullscreen * src/window.c (meta_window_unmake_fullscreen): update layer for whole window group (meta_window_make_fullscreen): ditto * src/util.c (meta_unsigned_long_hash): move hash/equal funcs for Window in here. * src/group.c: track window groups so we can do stuff with them.
2002-08-12don't include nonexistent stock-icons.h fileHavoc Pennington1-1/+0
2002-08-11 Havoc Pennington <hp@pobox.com> * src/menu.c: don't include nonexistent stock-icons.h file
2002-08-10default keybindings for move, resize, maximize, etc. from Deepa #78999Havoc Pennington1-3/+3
2002-08-10 Havoc Pennington <hp@pobox.com> * src/metacity.schemas.in: default keybindings for move, resize, maximize, etc. from Deepa #78999
2002-08-10unshade window if shaded, from JeyaSudha (meta_window_make_fullscreen):Havoc Pennington1-0/+6
2002-08-10 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_maximize): unshade window if shaded, from JeyaSudha (meta_window_make_fullscreen): ditto
2002-08-10reorder the menu items so that Close is at the bottomHavoc Pennington2-1/+8
2002-08-10 Havoc Pennington <hp@pobox.com> * src/menu.c: reorder the menu items so that Close is at the bottom * src/theme-viewer.c (main): set debugging mode if METACITY_DEBUG enabled
2002-08-10allow Motif hints to be smaller than expected; GLUT for example seems toHavoc Pennington2-7/+21
2002-08-10 Havoc Pennington <hp@pobox.com> * src/xprops.c (meta_prop_get_motif_hints): allow Motif hints to be smaller than expected; GLUT for example seems to set a smaller struct. #89841 * src/window.c (update_mwm_hints): use g_free on motif hints as we don't use the XGetWindowProperty return directly anymore
2002-08-10be sure window is mapped if we unmanage it and it's not withdrawn; bugHavoc Pennington3-18/+16
2002-08-10 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_free): be sure window is mapped if we unmanage it and it's not withdrawn; bug #90369 * src/screen.c (meta_screen_new): change string s/override/replace/ bug #89077 * src/theme.c (scale_and_alpha_pixbuf): dump the sometimes-use-NEAREST-instead-of-BILINEAR optimization, bug #87489
2002-08-10raise window when moving to another workspace bug #88896Havoc Pennington2-0/+2
2002-08-10 Havoc Pennington <hp@pobox.com> * src/window.c (menu_callback): raise window when moving to another workspace bug #88896 * src/keybindings.c (switch_to_workspace): raise window when moving between spaces
2002-08-10Register window menu icons with the Gtk stock system, instead of using theJorn Baayen7-83/+63
2002-08-10 Jorn Baayen <jorn@nl.linux.org> Register window menu icons with the Gtk stock system, instead of using the ones from the Metacity theme (which looked very bad with some themes). * src/Makefile.am: * src/main.c: * src/menu.c: * src/stock_delete.png: added these files * src/stock_minimize.png: * src/stock_maximize.png: * src/ui.c
2002-08-10filter out key events that happen on popup menus etc.Havoc Pennington4-1/+29
2002-08-10 Havoc Pennington <hp@pobox.com> * src/keybindings.c (meta_display_process_key_event): filter out key events that happen on popup menus etc. * src/ui.c (meta_ui_window_is_widget): new function to check whether a window belongs to a GtkWidget such as the popup menu * src/prefs.c (change_notify): put in a no-op line for AIX compiler, #84252
2002-08-10track time to avoid sending a deluge of move/resize requests, suggestionHavoc Pennington3-1/+54
2002-08-10 Havoc Pennington <hp@pobox.com> * src/window.c (update_resize): track time to avoid sending a deluge of move/resize requests, suggestion from xavier.bestel@free.fr bug #86830. Not really sure if this will make a difference or not. We'll see I guess. (update_move): do same on move though it seems less important here. * src/display.h (struct _MetaDisplay): store the last time we sent a move/resize event.
2002-08-10add a FIXME comment with a link to bug #90382Havoc Pennington1-0/+19
2002-08-10 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_notify_focus): add a FIXME comment with a link to bug #90382
2002-08-09disable maximize, fullscreen, shade via keybindings on windows that don'tHavoc Pennington1-3/+3
2002-08-09 Havoc Pennington <hp@pobox.com> * src/keybindings.c (handle_toggle_maximize): disable maximize, fullscreen, shade via keybindings on windows that don't support it.
2002-08-09Patch to provide extra cues to the user when using window menu move andCraig Black6-88/+319
2002-08-08 Craig Black <blackc@speakeasy.net> Patch to provide extra cues to the user when using window menu move and resize, #85724. * src/common.h: add new cursors * src/display.c: (grab_op_is_mouse) (meta_display_create_x_cursor), (xcursor_for_op), (meta_display_set_grab_op_cursor), (meta_display_begin_grab_op): The keyboard move and resize grab ops now also use the mouse. Allow the grab cursor to be changed during the grab op. Hold onto the initial grab position in case of reset. * src/display.h: save the initial grab position * src/keybindings.c: (process_keyboard_move_grab), (process_keyboard_resize_grab), (handle_begin_move), (handle_begin_resize): The keyboard move and resize grab ops now also use the mouse. * src/window.c: (meta_window_client_message), (menu_callback), (update_move), (update_resize), (meta_window_handle_mouse_grab_op_event), (warp_pointer), (meta_window_warp_pointer), (meta_window_begin_grab_op), (meta_window_update_resize_grab_op): When moving or resizing a window use the last grab position in computing change increment. Provide support for warping the mouse pointer. * src/window.h: new warp pointer and grab op helper functions
2002-08-09update comment also set expected focus window when setting input focus.Craig Black2-2/+3
2002-08-08 Craig Black <blackc@speakeasy.net> * src/display.h: update comment * src/window.c: (meta_window_focus): also set expected focus window when setting input focus.
2002-08-08focus top window after showing desktop, fixes #88080.Craig Black1-0/+10
2002-08-07 Craig Black <blackc@speakeasy.net> * src/display.c: (meta_display_unshow_desktop): focus top window after showing desktop, fixes #88080.
2002-08-08focus window on right click for menu, #87299.Craig Black1-0/+3
2002-08-07 Craig Black <blackc@speakeasy.net> * src/core.c: (meta_core_show_window_menu): focus window on right click for menu, #87299.
2002-08-08clear expected focus window on openCraig Black3-2/+20
2002-08-07 Craig Black <blackc@speakeasy.net> * src/display.c: (meta_display_open): clear expected focus window on open * src/display.h: add expected_focus_window field * src/window.c: (meta_window_make_fullscreen), (meta_window_unmake_fullscreen): change meta_window_update_layer() to meta_stack_update_layer() so build works again. (meta_window_free), (meta_window_make_fullscreen), (meta_window_focus), (meta_window_notify_focus): keep track of expected focus window after sending WM_TAKE_FOCUS event, previously if a UnmapNotify event arrived before the FocusIn event we would lose focus, fixes #84564.
2002-08-07update layer (meta_window_make_fullscreen): update layerHavoc Pennington2-4/+9
2002-08-07 Havoc Pennington <hp@redhat.com> * src/window.c (meta_window_unmake_fullscreen): update layer (meta_window_make_fullscreen): update layer * src/stack.c (compute_layer): put window on fullscreen layer if fullscreen
2002-08-07implement _NET_WM_MOVERESIZE enhancements, see #90077.Craig Black1-29/+59
2002-08-06 Craig Black <blackc@speakeasy.net> * src/window.c: (meta_window_client_message): implement _NET_WM_MOVERESIZE enhancements, see #90077.
2002-08-06disable animation when shading windows, just doesn't really convey theHavoc Pennington7-107/+1130
2002-07-28 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_shade): disable animation when shading windows, just doesn't really convey the idea anyway. * src/effects.c: Move to using a shaped window instead of IncludeInferiors to do the animations, looks a lot better because we don't have to grab the server. * src/window.c (meta_window_change_workspace): remove bogus assertion that was causing a crash (meta_window_new): auto-fullscreen huge undecorated windows. * src/keybindings.c (switch_to_workspace): use meta_window_change_workspace() to avoid same bug in cut-and-paste code from there
2002-08-05Set wm_state_skip_pager instead of skip_pager (ditto for _tasklist) so that ↵Ross Burton1-2/+2
the skip pager/tasklist hints work correctly
2002-08-04init button states for the button backgroundsHavoc Pennington2-5/+21
2002-08-04 Havoc Pennington <hp@redhat.com> * src/frames.c (meta_frames_paint_to_drawable): init button states for the button backgrounds * src/themes/Atlanta/metacity-theme-1.xml: adapt to work correctly with button repositioning
2002-08-04raise/focus on click, even if the click was on the client area (this makesHavoc Pennington4-5/+13
2002-08-04 Havoc Pennington <hp@redhat.com> * src/frames.c (meta_frames_button_press_event): raise/focus on click, even if the click was on the client area (this makes Alt+button1 raise windows again, yay) * src/stack.c (compute_layer): put panels in the DOCK layer always (keep them on top of other windows). Still sloppy-focus raised with respect to other docks. * configure.in: remove -Wshadow for now as GTK headers make all kinds of noise with it.
2002-08-04set active_workspace to NULL. Also actually activate the first workspaceMark McLoughlin2-10/+18
2002-08-02 Mark McLoughlin <mark@skynet.ie> * src/screen.c: (meta_screen_new): set active_workspace to NULL. Also actually activate the first workspace instead of just setting active_workspace. Fixes #87367. (meta_screen_ensure_workspace_popup): don't re-use our iterator for setting the entries list, stop iterating when we've gone beyond the last workspace (there may be empty spaces in the last row). * src/workspace.c: (meta_workspace_activate): if no workspace was previously activated, return.
2002-08-04use MetaMenuIconType not button type for the size of the menu ops arrayHavoc Pennington5-16/+73
2002-08-04 Havoc Pennington <hp@redhat.com> * src/theme.c (free_menu_ops): use MetaMenuIconType not button type for the size of the menu ops array (meta_theme_define_int_constant): return TRUE on success (how the heck did this ever work?) (meta_theme_define_float_constant): return TRUE on success (meta_frame_style_validate): allow the "positional" buttons to be omitted for now. * src/testgradient.c (render_multi): don't define N_COLORS twice * src/theme-viewer.c (run_theme_benchmark): don't define ITERATIONS twice * src/theme.c (button_rect): handle new button types (meta_button_type_to_string): update (meta_button_type_from_string): update * src/theme.h (enum): add button types for the 6 possible button positions. No way to reposition buttons still but this will allow themes to go ahead and support doing so.
2002-08-03change alt+tab to a windowless grab, fixes #83499Craig Black1-11/+5
2002-08-03 Craig Black <blackc@speakeasy.net> * src/keybindings.c: (meta_display_process_key_event), (process_tab_grab), (do_choose_window): change alt+tab to a windowless grab, fixes #83499
2002-08-03Have ButtonPress and UnmapNotify events account for a null grab window,Craig Black1-27/+31
2002-08-03 Craig Black <blackc@speakeasy.net> * src/display.c: (event_callback): Have ButtonPress and UnmapNotify events account for a null grab window, fixes #87896
2002-08-03Fixed some clipping issues with the Bright theme.Gaute Lindkvist1-35/+13
2002-08-01Implements support for _NET_WM_ALLOWED_ACTIONS. Fixes #84282.Mark McLoughlin4-3/+127
2002-08-01 Mark McLoughlin <mark@skynet.ie> Implements support for _NET_WM_ALLOWED_ACTIONS. Fixes #84282. * src/display.[ch]: (meta_display_open): add _NET_WM_ALLOWED_ACTIONS atoms. * src/screen.c: (set_supported_hint): set them as being supported. * src/window.c: (set_allowed_actions_hint): impl setting _NET_WM_ALLOWED_ACTIONS. (recalc_window_features): use it here, but only if things have changed.
2002-08-01if a window isn't resizeable, turn off maximize function. If min size isChristophe Fergeau1-1/+2
* src/window.c (recalc_window_features): if a window isn't resizeable, turn off maximize function. If min size is equal to max size, turn off resize function.
2002-08-01send a SaveYourselfDone if we're skipping this global save.Mark McLoughlin1-1/+17
2002-08-01 Mark McLoughlin <mark@skynet.ie> * src/session.c: (save_yourself_possibly_done): send a SaveYourselfDone if we're skipping this global save. (save_yourself_callback): don't not save session state if the save style is Global. Fixes #89390. * theme-format.txt: update.