1. 27 Aug, 2004 1 commit
    • Havoc Pennington's avatar
      move the have_xrender variable initialization up in the file since it can · 1f7f29e0
      Havoc Pennington authored
      2004-08-26  Havoc Pennington  <hp@redhat.com>
      
      	* configure.in: move the have_xrender variable initialization up
      	in the file since it can be set as part of composite check
      
      2004-08-19  Havoc Pennington  <hp@redhat.com>
      
      	Fixes from Rich Wareham
      
      	* src/display.h (struct _MetaDisplay): add render extension check
      	to the display
      
      	* src/display.c: check for render
      
      	* configure.in: don't build compositing manager by default, don't
      	want any nasty surprises; check for render separately from
      	compositing manager
      
      	* src/frame.c: use an ARGB visual when available for the window
      	frame, so we can be all cool-ass
      1f7f29e0
  2. 26 Aug, 2004 1 commit
    • Elijah Newren's avatar
      Make dialogs that Metacity shows follow focus-stealing-prevention · 044d8999
      Elijah Newren authored
      2004-08-25  Elijah Newren  <newren@math.utah.edu>
      
      	Make dialogs that Metacity shows follow focus-stealing-prevention
      	conventions. (fixes one issue in #149028; see comments 47-54)
      
      	* src/delete.c (delete_ping_reply_func,
      	delete_ping_timeout_func): Make callback functions take a
      	timestamp arg, (delete_ping_timeout_func): pass the timestamp to
      	metacity-dialog
      
      	* src/display.c (meta_display_ping_timeout): add a timestamp to
      	the call to the ping_timeout_func, (meta_display_ping_window,
      	process_pong_message): add a timestamp to the call to the
      	ping_reply_func
      
      	* src/display.h (MetaWindowPingFunc typedef): add a timestamp to
      	this function typedef
      
      	* src/keybindings.c (error_on_command): require a timestamp and
      	pass the timestamp on to metacity-dialog, (handle_run_command):
      	pass a timestamp to error_on_command
      
      	* src/metacity-dialog.c (copy_of_gdk_x11_window_set_user_time):
      	new function (temporary; only for use while using gtk+-2.4),
      	(kill_window_question, warn_about_no_sm_support,
      	error_about_command): make these functions take a timestamp and
      	call copy_of_gdk_x11_window_set_user_time, (main): require the
      	first two args to the program to be "--timestamp <timestamp>"
      
      	* src/session.c (warn_about_lame_clients_and_finish_inter): pass a
      	timestamp of 0 to metacity-dialog to prevent focus (it's a popup
      	not generated by and kind of user request).
      044d8999
  3. 19 Aug, 2004 1 commit
    • Havoc Pennington's avatar
      track the last_xor_rect separately from the current window size, and then · 06a58f43
      Havoc Pennington authored
      2004-08-18  Havoc Pennington  <hp@redhat.com>
      
      	* src/display.h (struct _MetaDisplay): track the last_xor_rect
      	separately from the current window size, and then use that to
      	paint the wireframe including the frame, and taking into
      	account shaded windows.
      
      	* src/window.c (meta_window_get_xor_rect): new function to compute
      	the xor rect; it is not really 100% right, because it uses the
      	frame dimensions from the window at the start of the move/resize.
      	But probably won't break in practice.
      06a58f43
  4. 31 Jul, 2004 1 commit
    • Rob Adams's avatar
      Fix some support for EWMH hints, and fix USER_TIME support to include the · e60da6c0
      Rob Adams authored
      2004-07-31  Rob Adams  <readams@readams.net>
      
      	Fix some support for EWMH hints, and fix USER_TIME support to
      	include the DEMANDS_ATTENTION hint.  Also includes some code for
      	implementing _NET_RESTACK_WINDOW and _NET_MOVERESIZE_WINDOW, but
      	this is disabled pending feature thaw.
      
      	* COMPLIANCE: update with new information
      
      	* src/display.c (meta_display_open): add new hints to list
      
      	* src/display.h (_MetaDisplay): Add new atoms to struct
      
      	* src/screen.c (set_supported_hint): update the list of support
      	hints.
      	(set_desktop_viewport_hint): new function sets the viewport hint
      	to (0,0) as required by the spec for WMs with no viewport support.
      	(set_desktop_geometry_hint): new function to set the desktop size
      	hint to the size of the display, since we don't implement large
      	desktop support, as required by the spec.
      	(meta_screen_resize): update the geometry hint on screen resize
      
      	* src/window.c (meta_window_new_with_attrs): Initial...
      e60da6c0
  5. 24 Jun, 2004 1 commit
    • Elijah Newren's avatar
      Add support for _NET_WM_USER_TIME · 28a54c6b
      Elijah Newren authored
      2004-06-17  Elijah Newren  <newren@math.utah.edu>
      
      	Add support for _NET_WM_USER_TIME
      
      	* src/display.c:
      	(meta_display_open): Add _NET_WM_USER_TIME to atom_names[],
      	(event_callback): Manually set _NET_WM_USER_TIME upon KeyPress
      	(doesn't work since keyboard isn't grabbed) and ButtonPress (does
      	work), this is just a fallback for applications that don't update
      	this themselves.
      
      	* src/display.h: (struct _MetaDisplay): Add atom_net_wm_user_time field
      
      	* src/screen.c: (meta_screen_apply_startup_properties): Check for
      	TIMESTAMP provided from startup sequence as well.
      
      	* src/stack.c:
      	s/meta_window_set_stack_position/meta_window_set_stack_position_no_sync/,
      	(meta_window_set_stack_position): New function which calls the
      	meta_window_set_stack_position_no_sync function followed immediately
      	by calling meta_stack_sync_to_server.
      
      	* src/window-props.c:
      	(init_net_wm_user_time), (reload_net_wm_user_time): new functions,
      	(reload_wm_hints): also load atom_net_wm_user_time
      
      	* src/window.c:
      	new XSERVER_TIME_IS_LATER macro (accounts for timestamp wraparound),
      	(meta_window_new_with_attrs): add timestamp attributes,
      	(window_takes_focus_on_map): use TIMESTAMP from startup
      	notification and _NET_WM_USER_TIME to decide whether to focus new
      	windows,
      	(meta_window_show): if app doesn't take focus on map, place it
      	just below the focused window in the stack
      	(process_property_notify): check for changes to _NET_WM_USRE_TIME,
      	(meta_window_stack_just_below): new function
      
      	* src/window.h:
      	(_MetaWindow struct): new fields for initial_timestamp,
      	initial_timestamp_set, net_wm_user_time_set, and net_wm_user_time,
      	(meta_window_stack_just_below): new function
      28a54c6b
  6. 19 Jun, 2004 1 commit
    • Soeren Sandmann's avatar
      Fix bug 143333, support for update counter spec, and 109362, schedule · 4cfb5152
      Soeren Sandmann authored
      Sat Jun 19 02:21:08 2004  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	Fix bug 143333, support for update counter spec, and 109362,
      	schedule compensation events when events are ignored.
      
      	* src/display.c (meta_display_open): Add _NET_WM_SYNC_REQUEST and
      	_NET_WM_SYNC_REQUEST_COUNTER atoms. Remove the old
      	METACITY_SYNC_COUNTER stuff.
      	(meta_display_begin_op): Setup the sync counter
      
      	* src/xprops.c, src/xprops.h, src/window-props.c, src/display.h:
      	Add new atoms.
      
      	* src/window.c (send_sync_request): new function.
      	(meta_window_move_resize_internal): send a sync request before
      	resizing.
      	(check_move_resize_frequence): Rework logic to also check the SYNC
      	case. If an event is ignored return the remaining time.
      	(update_resize_timeout): Timeout that gets called when a
      	compensation event is scheduled.
      	(uddate_resize): schedule compensation events when an event is
      	ignored.
      	(meta_window_handle_mouse_grap_op_event): When an alarm is
      	received and sync was turned off, turn it back on.
      
      	* src/window.h (struct MetaWindow)  Add some variables
      4cfb5152
  7. 23 Feb, 2004 1 commit
    • Rob Adams's avatar
      Add my copyright notice to a number of files on which it should already · db108c1f
      Rob Adams authored
      2004-02-23  Rob Adams  <readams@readams.net>
      
      	Add my copyright notice to a number of files on which it should
      	already exist.
      
      	* src/window.c (meta_window_notify_focus): modify code to move to
      	front of MRU list so that we can have an assert that it was there
      	in the first place.  This code may be causing some crashes.  See
      	#131196.
      db108c1f
  8. 10 Jan, 2004 1 commit
    • Thomas Fitzsimmons's avatar
      Add _NET_FRAME_EXTENTS and _NET_REQUEST_FRAME_EXTENTS. · a605da04
      Thomas Fitzsimmons authored
      2004-01-09  Thomas Fitzsimmons  <fitzsim@redhat.com>
      
      	Add _NET_FRAME_EXTENTS and _NET_REQUEST_FRAME_EXTENTS.
      
      	* src/display.c: include xprops.h
      	(process_request_frame_extents): new function
      	(meta_display_open): add _NET_FRAME_EXTENTS and
      	_NET_REQUEST_FRAME_EXTENTS atoms
      	(event_callback): handle frame extents message
      
      	* src/display.h (struct _MetaDisplay): add atom_net_frame_extents
      	and atom_net_request_frame_extents
      
      	* src/theme.c (meta_pango_font_desc_get_text_height): make font_desc
      	parameter const
      
      	* src/ui.c: include prefs.h
      	(meta_ui_theme_get_frame_borders): new function
      
      	* src/window.c (update_net_frame_extents): new function
      	(meta_window_move_resize_internal): update frame extents
      	property when frame geometry changes
      
      	* src/screen.c (set_supported_hint): add atom_net_frame_extents
      	and atom_net_request_frame_extents
      a605da04
  9. 13 Dec, 2003 2 commits
    • Rob Adams's avatar
      Revert prior change · 9bde925d
      Rob Adams authored
      9bde925d
    • Rob Adams's avatar
      Add increased robustness for dealing with all workspaces windows and MRU · 7630d22b
      Rob Adams authored
      2003-12-13  Rob Adams  <readams@readams.net>
      
      	Add increased robustness for dealing with all workspaces windows
      	and MRU lists.
      	Also add very preliminary _NET_WM_USER_TIME
      	support, limited to simply listening for the property and keeping
      	an internal variable updated, and also treating some input events
      	as though they were user time updates.
      
      	* src/window.c (meta_window_new_with_attrs): set on_all_workspaces
      	in all cases _before_ adding to the workspaces, so that windows
      	initially on all workspaces are added correctly to the MRU lists.
      	Fix for #120907.
      	(process_property_notify): add net_wm_user_time support.
      
      	* src/workspace.c (meta_workspace_add_window): handle sticky
      	windows so that we add to add mru lists if needed
      	(meta_workspace_remove_window): handle sticky windows so that they
      	are removed from all mru lists if needed.
      
      	* src/display.[ch] (meta_display_open): add net_wm_user_time support.
      	(event_callback): simulate user time update on key and button presses.
      
      	* src/screen.c (set_supported_hint): add net_wm_user_time support.
      
      	* src/window-props.c (init_net_wm_user_time): new function for
      	user_time support
      	(reload_net_wm_user_time): new function for user_time support
      	(meta_display_init_window_prop_hooks): add hook for user_time
      7630d22b
  10. 24 Nov, 2003 1 commit
  11. 21 Nov, 2003 1 commit
    • Havoc Pennington's avatar
      new function · d538690b
      Havoc Pennington authored
      2003-11-20  Havoc Pennington  <hp@redhat.com>
      
      	* src/window.c (meta_window_new_with_attrs): new function
      
      	* src/display.c, src/screen.c: create the compositor and feed
      	windows and events to it
      d538690b
  12. 17 Nov, 2003 1 commit
    • Rob Adams's avatar
      Create COMPLIANCE document describing metacity specification compliance. · 9378a4fb
      Rob Adams authored
      2003-11-16  Rob Adams  <readams@readams.net>
      
      	Create COMPLIANCE document describing metacity specification
      	compliance.  Right now gives detailed EWMH compliance; still need
      	to add ICCCM compliance information.  Also some minor fixes to
      	bring metacity into compliance on some points.
      
      	* COMPLIANCE: new file
      
      	* src/display.h, src/display.c (meta_display_open),
      	src/screen.c (set_supported_hint): add
      	atom_net_wm_action_fullscreen and atom_net_wm_action_minimize
      
      	* src/window.c (set_allowed_actions_hint): some fixes to which
      	hints to set and add fullscreen and minimize.
      9378a4fb
  13. 13 Oct, 2003 1 commit
    • Havoc Pennington's avatar
      In the "prefs cause code complexity" department, here's a "sloppy focus · 6aff3466
      Havoc Pennington authored
      2003-10-13  Havoc Pennington  <hp@redhat.com>
      
              In the "prefs cause code complexity" department, here's a "sloppy
      	focus die die die" kind of moment.
      
      	* src/display.c (meta_display_grab_focus_window_button): don't
      	grab in sloppy focus mode, since we were dropping the grab on
      	window enter anyway this just removes races from the current
      	behavior.
      
      	* src/display.c (prefs_changed_callback): ungrab/grab on focus
      	mode changes, since we treat sloppy and click differently.
      6aff3466
  14. 12 Oct, 2003 1 commit
    • Havoc Pennington's avatar
      Merge reduced_resources mode patch from the branch. Offers wireframe and · e98fad3e
      Havoc Pennington authored
      2003-10-12  Havoc Pennington  <hp@redhat.com>
      
              Merge reduced_resources mode patch from the branch. Offers
      	wireframe and no-animations.
      
      	* src/window.c (implement_showing): no animation if we are
      	in reduced resources mode
      
      	* src/prefs.c: add REDUCED_RESOURCES pref
      
      	* src/window.c (meta_window_update_keyboard_resize): fix to
      	modify grab_anchor_window_pos to grab_wireframe_rect if
      	appropriate instead of window->rect
      
      	* src/display.h (struct _MetaDisplay): add grab_start_serial used
      	to avoid responding to events that occurred prior to the grab
      	initialization.
      
      	Still broken in various ways, specifically EnterNotify that
      	occurred prior to XGrabPointer is processed as if it occurred
      	after.
      
      	* src/window.c (meta_window_update_keyboard_move): add this
      	instead of meta_window_warp_pointer() crack
      
      	* src/effects.c (meta_effects_update_wireframe): draw a kind of
      	grid for the wireframe, instead of just a rectangle, like twm
      
      	* src/screen.c (meta_screen_new): line width of 3 for the XOR gc
      
              "Reduced resources" mode based on wireframe patch from
      	Erwann Chenede. Still pretty buggy.
      
      	* src/keybindings.c (process_keyboard_move_grab)
      	(process_keyboard_resize_grab): add gruesome wireframe hacks
      
      	* src/display.c (meta_display_end_grab_op): end wireframe
      	(meta_display_begin_grab_op): begin wireframe
      
      	* src/effects.c (meta_effects_end_wireframe)
      	(meta_effects_update_wireframe, meta_effects_begin_wireframe):
      	routines to draw the wireframe stuff
      
      	* src/window.c (window_should_be_showing): hide window when
      	doing wireframe, commented out as it breaks grab
      	* src/window.c (meta_window_refresh_resize_popup): handle wireframe
      
      	* src/screen.c (meta_screen_new): create a screen->root_xor_gc
      	for use in drawing wireframes
      
      	* src/frames.c (meta_frames_push_delay_exposes): repaint
      	everything before we delay
      e98fad3e
  15. 15 Aug, 2003 1 commit
    • Ray Strode's avatar
      Changed MRU list to be per workspace instead of per display, so sticky · 2fc880db
      Ray Strode authored
      2003-08-15  Ray Strode  <halfline@hawaii.rr.com>
      
      	Changed MRU list to be per workspace instead of per display, so
      	sticky windows don't hijack the window focus after workspace
      	switching (Bug #97635).
      
      	* src/delete.c (meta_window_delete): Use
      	meta_workspace_focus_top_window instead of
      	meta_screen_focus_top_window.
      
      	* src/display.c (meta_display_open): Stop using display->mru_list.
      	(find_tab_forward):
      	(find_tab_backward):
      	(meta_display_get_tab_list): Use workspace->mru_list instead of
      	display->mru_list and remove unneeded calls to
      	meta_window_visible_on_workspace
      
      	* src/display.h: Remove mru_list from MetaDisplay
      
      	* src/keybindings.c (handle_toggle_desktop): Use
      	meta_workspace_focus_top_window instead of
      	meta_screen_focus_top_window.
      
      	* src/screen.c (meta_screen_focus_top_window):
      	(meta_screen_focus_default_window): Remove functions.
      	(meta_screen_show_desktop): Use meta_workspace_focus_top_window
      	instead of meta_screen_focus_top_window.
      
      	* src/screen.h: Remove meta_screen_focus_top_window and
      	meta_screen_focus_default_window declarations.
      
      	* src/window.c (meta_window_new): Stop using display->mru_list.
      	(meta_window_free): Use meta_workspace_focus_top_window
      	instead of meta_screen_focus_top_window and stop using
      	display->mru_list.
      	(meta_window_stick): Add sticky window to all workspace MRU lists.
      	(meta_window_unstick): Remove non-sticky window from the workspace
      	MRU lists it doesn't belong in.
      	(meta_window_notify_focus): Move newly focused window to the front
      	of active workspace's MRU list.
      
      	* src/workspace.c (meta_workspace_new): Initialize
      	workspace->mru_list to NULL.
      	(meta_workspace_add_window): Add window to workspace's MRU list.
      	(meta_workspace_remove_window): Remove window from workspace's MRU
      	list.
      	(meta_workspace_activate_with_focus): Use
      	meta_workspace_focus_default_window instead of
      	meta_screen_focus_default_window.
      	(meta_workspace_focus_default_window):
      	(meta_workspace_focus_mru_window):
      	(meta_workspace_focus_top_window): Add functions.
      
      	* src/workspace.h: Add mru_list to MetaWorkspace and add function
      	declarations for meta_workspace_focus_default_window,
      	meta_workspace_focus_mru_window, meta_workspace_focus_top_window.
      2fc880db
  16. 26 Jun, 2003 1 commit
    • Rob Adams's avatar
      Update constraints code to support the new _NET_WM_STRUT_PARTIAL EWMH · 971f3f12
      Rob Adams authored
      2003-06-10  Rob Adams  <robadams@ucla.edu>
      
      	Update constraints code to support the new _NET_WM_STRUT_PARTIAL
      	EWMH draft specification.  See #86682.  Also, fix a bug involving
      	work area invalidation on metacity startup.  Fix for #108497.
      	Finally, some minor fixes for full screen windows.
      
      	* src/window.h: Add new MetaStruts structure to store strut rects
      	for a window.  Remove has_struts and do_not_cover flag, and
      	support new MetaStruts instead of the four ints.
      
      	* src/window.c (meta_window_new): change initialization to work
      	with new struts.  Also, move meta_window_update_struts call to
      	after the workspaces are initialized to fix #108497.  Remove
      	do_not_cover and related code.
      	(process_property_notify): add strut_partial
      	(update_struts): change function name to meta_window_update_struts
      	and expose in external MetaWindow API.  Support partial width
      	struts and the new strut rects.
      
      	* src/workspace.h: add new GSLists containing pointers to all
      	relevant struts for this workspace.
      
      	* src/workspace.c (meta_workspace_new): initialize the list of
      	strut rects for this workspace.
      	(meta_workspace_free): free the strut rect lists
      	(ensure_work_areas_validated): support new struts and new strut
      	rect lists.  Unleash the per-xinerama work areas.
      
      	* src/constraints.c (get_outermost_onscreen_positions): Use the
      	current window position along with the new per-workspace strut
      	rects to compute the constraints that apply to a particular
      	window.
      	(constraint_hint_applies_func): don't do hints constraints on
      	fullscreen windows
      	(update_position_limits): for maximized windows use the work areas
      	to set the position limits; for other windows rely on the struts
      	constraints to be computed later in
      	get_outermost_onscreen_positions
      	(meta_window_constrain): don't apply aspect ratio hints to full
      	screen windows
      
      	* src/display.c (meta_display_open): add _NET_WM_STRUT_PARTIAL atom
      	(meta_rectangle_equal): new helper function for MetaRectangles
      	(event_queue_callback): #ifndef out if USE_GDK_DISPLAY not set to
      	avoid compiler warning
      
      	* src/display.h: add atom_net_wm_strut_partial, and add
      	meta_rectangle_equal.
      
      	* src/screen.c (meta_screen_rect_intersects_xinerama): change
      	_window_intersects_ to _rect_intersects_ which is more useful now.
      	(meta_screen_resize_func): update struts on windows with struts
      	since struts are relative to the screen size, and this function is
      	called when the screen size updates.
      
      	* src/screen.h (meta_screen_rect_intersects_xinerama): change
      	_window_intersects_ to _rect_intersects_ which is more useful now.
      
      	* src/window-props.c (meta_display_init_window_prop_hooks): add
      	hook for strut_partial
      
      	* src/tools/metacity-window-demo.c: Support partial-width struts
      	on the dock window tests for metacity testing purposes.
      971f3f12
  17. 12 Jun, 2003 2 commits
    • Rob Adams's avatar
      Remove legacy support for Gnome 1 hints, since we deem it unlikely that · 85826d0d
      Rob Adams authored
      2003-06-12  Rob Adams  <robadams@ucla.edu>
      
      	Remove legacy support for Gnome 1 hints, since we deem it unlikely
      	that anyone is running a current metacity with Gnome 1.  The
      	removed hints are _WIN_WORKSPACE, _WIN_LAYER, _WIN_PROTOCOLS,
      	_WIN_SUPPORTING_WM_CHECK, and _WIN_HINTS.
      
      	* display.c (meta_display_open): remove hints
      
      	* display.h: remove atoms for hints
      
      	* screen.c (set_wm_check_hint): don't set legacy hint
      	(set_supported_hint): don't set legacy hint
      
      	* window-props.c (init_win_workspace): removed
      	(reload_win_workspace): removed
      	(meta_display_init_window_prop_hooks): remove hints
      
      	* window.h: remove do_not_cover flag
      
      	* window.c: remove GnomeWinHints enum
      	(recalc_do_not_cover_struts): removed
      	(meta_window_new): don't initialize removed flags or compute
      	legacy struts
      	(move_resize_cmp): removed
      	(idle_move_resize): Don't bother sorting the idle queue
      	(meta_window_client_message): don't set legacy hint
      	(process_property_notify): remove hints
      	(update_net_wm_type): don't fall back to WIN_LAYER hint
      	(update_struts): remove legacy struts
      85826d0d
    • Havoc Pennington's avatar
      make raise-on-click explicitly only happen in click to focus mode. · 0a204196
      Havoc Pennington authored
      2003-06-12  Havoc Pennington  <hp@pobox.com>
      
      	* src/display.c (event_callback): make raise-on-click explicitly
      	only happen in click to focus mode.
      
      	* src/window.c (update_move): apply patch from Jurg Billeter to
      	allow you to "shake loose" maximized windows and move them between
      	Xinerama heads. #93586
      
      	* src/display.c: delete event_queue_callback
      
      	* src/display.h (struct _MetaDisplay): get rid of
      	grab_current_window_pos and grab_current_root_[xy] as I could find
      	absolutely no code using them for anything. They were just sort of
      	randomly assigned to for no apparent reason.
      
      	* src/display.c (event_callback): double-click timeout is per
      	screen, so get the screen and pass screen->ui to
      	meta_ui_get_double_click_timeout()
      
      	* src/ui.c (meta_ui_get_double_click_timeout): take a MetaUI
      	argument so we get the right settings for each screen
      	(meta_ui_get_drag_threshold): new function
      0a204196
  18. 30 May, 2003 2 commits
    • Rob Adams's avatar
      CVS2003-05-29 Rob Adams <robadams@ucla.edu> · 3edad859
      Rob Adams authored
      
      CVS2003-05-29  Rob Adams  <robadams@ucla.edu>
      
      	Use a new property _METACITY_SENTINEL to eliminate a race
      	condition that causes focus to behave badly with sloppy/mouse
      	focus when lots of windows are mapped/unmapped, such as with a
      	workspace switch.  The EnterNotify events on a display are ignored
      	until the PropertyNotify sent after all the window maps is
      	received.  This is a fix for #110970.
      
      	* src/display.[ch]: New _METACITY_SENTINEL atom.
      	(event_callback): ignore EnterNotify if the sentinel isn't clear,
      	and decrement the sentinel counter when the PropertyNotify is
      	received.
      	(meta_display_increment_focus_sentinel): new function.  Increments
      	the sentinel counter and updates the property on a root window on
      	this display.
      	(meta_display_decrement_focus_sentinel): Decrement the sentinel
      	counter.
      	(meta_display_focus_sentinel_clear): returns whether the sentinel
      	counter is zero.
      
      	* src/window.c (idle_calc_showing): after showing windows, call
      	meta_display_increment_focus_sentinel on each display for windows
      	to be shown.
      
      	* src/workspace.[ch] (meta_workspace_activate_with_focus): new
      	function activates a workspace and focuses a particular window
      	after the workspace is activated.
      	(meta_workspace_activate): now just a wrapper for
      	meta_workspace_activate_with_focus
      
      	* src/keybindings.c: use new meta_workspace_activate_with_focus
      	function to ensure that focus will follow the focused window
      	through the workspace switch.
      
      : ----------------------------------------------------------------------
      3edad859
    • Ray Strode's avatar
      Get and use double-click speed from GtkSettings (Bug #103218). · d1a85355
      Ray Strode authored
      2003-05-29  Ray Strode  <halfline@hawaii.rr.com>
      
      	Get and use double-click speed from GtkSettings (Bug #103218).
      
      	* src/ui.c, src/ui.h:
      	add function meta_ui_get_double_click_timeout for looking up
      	the global double-click speed.
      
      	* src/display.c, src/display.h: remove double_click_time
      	field from MetaDisplay and use meta_ui_get_double_click_timeout
      	instead.
      d1a85355
  19. 15 Mar, 2003 1 commit
    • Rob Adams's avatar
      Make it so that the alt-tabbing won't try to go to a minimized window by · 67cbbeb6
      Rob Adams authored
      2003-03-13  Rob Adams <robadams@ucla.edu>
      
              Make it so that the alt-tabbing won't try to go to a minimized
      	window by default.  Fix for #107071.
      
      	* display.c (meta_display_get_tab_list): use a GList instead of a
      	GSList
      	(meta_display_get_tab_next): use meta_display_get_tab_list to
      	decide what the next/previous tab window should be.
      
      	* display.h (meta_display_get_tab_list): update function prototype
      	to return GList instead of GSList.
      
      	* screen.c (meta_screen_ensure_tab_popup): update function to deal
      	with GList returned by meta_display_get_tab_list instead of GSList.
      67cbbeb6
  20. 24 Feb, 2003 1 commit
    • Mark McLoughlin's avatar
      Take control of the panel's global keybindings. The screenshot utility is · 73cce3b1
      Mark McLoughlin authored
      2003-02-24  Mark McLoughlin  <mark@skynet.ie>
      
              Take control of the panel's global keybindings. The
              screenshot utility is hooked up using a special case
              run_command and the menu and run dialog bindings are
              done using the _GNOME_PANEL_ACTION ClientMessage
              protocol.
      
              * src/display.[ch]: (meta_display_open): add some atoms.
      
              * src/keybindings.c:
              (handle_panel_keybinding): impl to handle a keybinding
              by sending an action message to the panel.
      
              * src/metacity.schemas.in: add schemas for the panel and
              screenshot keybindings and the screenshot commands.
      
              * src/prefs.[ch]: (update_command),
              (meta_prefs_get_gconf_key_for_command): impl special case
              handling for the screenshot commands. They are stored at
              the the end of the commands array but have named keys.
      73cce3b1
  21. 22 Feb, 2003 1 commit
    • Havoc Pennington's avatar
      when tabbing backward, we are still tabbing *from* the most recently used · fb9ad1eb
      Havoc Pennington authored
      2003-02-22  Havoc Pennington  <hp@pobox.com>
      
      	* src/display.c (meta_display_get_tab_next): when tabbing
      	backward, we are still tabbing *from* the most recently used
      	window, not from the least recently used window.
      
      	* src/keybindings.c (struct _MetaKeyBinding): make keycode
      	unsigned to match XEvent
      
      	Patch for #84999 based on patch from Mark McLoughlin
      
      	* src/prefs.c: add an add_shift field to MetaKeyPref to
      	add shift when grabbing the given keybinding.
      
      	* src/keybindings.c (rebuild_screen_binding_table)
      	(rebuild_window_binding_table): refactor to share code,
      	and honor add_shift field in MetaKeyPref
      fb9ad1eb
  22. 28 Jan, 2003 1 commit
  23. 22 Jan, 2003 1 commit
    • Havoc Pennington's avatar
      Fix for the "mangles focus window when switching workspaces and using · 82bd2091
      Havoc Pennington authored
      2003-01-21  Havoc Pennington  <hp@pobox.com>
      
              Fix for the "mangles focus window when switching workspaces
      	and using mouse focus" bug
      
      	* src/stack.c (meta_stack_get_default_focus_window_at_point): new
      	function
      
      	* src/screen.c (meta_screen_focus_mouse_window): new function
      	(meta_screen_focus_default_window): new function
      
      	* src/workspace.c (meta_workspace_activate): use the
      	new meta_screen_focus_default_window()
      
      2003-01-17  Havoc Pennington  <hp@pobox.com>
      
      	* src/window.c (meta_window_handle_mouse_grab_op_event): fix event
      	compression code to use GDK algorithm suggested by Owen, should be
      	more efficient.
      82bd2091
  24. 05 Jan, 2003 1 commit
    • Havoc Pennington's avatar
      handle the client having a shape mask, fixes #101806 · 6cfcc013
      Havoc Pennington authored
      2003-01-05  Havoc Pennington  <hp@pobox.com>
      
      	* src/frames.c (meta_frames_apply_shapes): handle
      	the client having a shape mask, fixes #101806
      
      	* src/core.c (meta_core_get_client_xwindow): new function
      
      	* src/frame.c, src/frame.h: keep a flag for whether we need to
      	update the frame shape
      
      	* src/window.c (meta_window_new): select for ShapeNotify
      
      	* src/display.h, src/display.c: actually query the shape
      	extension, instead of just using it all over the place.
      
      	* src/prefs.c (update_application_based): don't let people turn on
      	application_based, as it just causes funky bugs. We can reenable
      	the pref when/if it ever does something useful.
      6cfcc013
  25. 19 Dec, 2002 1 commit
  26. 17 Dec, 2002 1 commit
  27. 10 Dec, 2002 1 commit
    • Havoc Pennington's avatar
      add myself here, bug #100789 · 967777b9
      Havoc Pennington authored
      2002-12-09  Havoc Pennington  <hp@pobox.com>
      
      	* AUTHORS: add myself here, bug #100789
      
      	* src/display.c (meta_display_set_grab_op_cursor): drop
      	PointerMotionHintMask
      
      	* src/window.c (meta_window_handle_mouse_grab_op_event): don't use
      	XQueryPointer, as we aren't using PointerMotionHint now
      
      	* src/display.c (event_callback): rearrange a bit of code
      	for slight speedup and clarity
      
      	* src/window.c (update_resize)
      	(meta_window_handle_mouse_grab_op_event): implement
      	usage of the _METACITY_UPDATE_COUNTER
      	(meta_window_handle_mouse_grab_op_event): fix code that
      	used event->xbutton with a motion event
      
      	* src/display.c (meta_display_open): add new atoms, and
      	initialize Xsync if we have it
      	(grab_op_is_resizing): new function
      	(meta_display_begin_grab_op): create an alarm monitoring
      	window's _METACITY_UPDATE_COUNTER
      	(meta_spew_event): conditionalize this on WITH_VERBOSE_MODE
      	and print alarm events.
      
      	* src/window.c (meta_window_new): fetch _METACITY_UPDATE_COUNTER
      
      	* confi...
      967777b9
  28. 08 Dec, 2002 1 commit
    • Havoc Pennington's avatar
      make this always return FALSE for now, to avoid bug reports. · 8d314aea
      Havoc Pennington authored
      2002-12-08  Havoc Pennington  <hp@pobox.com>
      
      	* src/prefs.c (meta_prefs_get_application_based): make this always
      	return FALSE for now, to avoid bug reports.
      
      	* src/util.c (ensure_logfile): put "opened log file" message on
      	stderr so it will normally land in ~/.xsession-errors
      
      	* configure.in: remove extra AC_ARG_PROGRAM
      
      	* src/display.c (event_callback): handle the toggle-verbose message
      
      	* src/tools/metacity-message.c: add a toggle-verbose message, been
      	meaning to do this for a while.
      
      	* src/util.c (meta_set_verbose): if verbose mode is enabled and we
      	don't support it, then exit.
      
      	* src/prefs.c: allow building without gconf (currently means some
      	prefs are no-ops)
      
      	* src/util.c, src/util.h: support defining macros to
      	kill all verbose output entirely. (Removes the code and strings
      	associated with it)
      
      	* configure.in: don't get METACITY_PROPS_LIBS if not building the
      	config dialog.
      	(HAVE_GCONF): allow building sans gconf, if you are size-sensitive
      	and not using gnome.
      	(WITH_VERBOSE_MODE): add ability to disable all the verbose debug
      	spew strings, to shrink the binary.
      	(--disable-sm): allow SM support to be forced on or off
      	(--disable-startup-notification): allow forcing this on or off
      8d314aea
  29. 01 Dec, 2002 1 commit
    • Havoc Pennington's avatar
      lengthen to 15 seconds · 5e1439f8
      Havoc Pennington authored
      2002-11-30  Havoc Pennington  <hp@pobox.com>
      
      	* src/screen.c (STARTUP_TIMEOUT): lengthen to 15 seconds
      
      	* src/util.c (utf8_fputs): hmm, return a value
      
      	* src/screen.c (meta_screen_apply_startup_properties): new
      	function to apply initial workspace based on startup sequence.
      
      	* src/window.c (meta_window_new): load _NET_STARTUP_ID
      	(meta_window_get_startup_id): new function
      
      	* src/window-props.c (meta_display_init_window_prop_hooks): add
      	hooks for _NET_STARTUP_ID
      
      	* src/display.c (event_callback): send property events to
      	groups.
      
      	* src/xprops.c (meta_prop_get_values): make a type of INVALID
      	mean to ignore that property (don't fetch its value).
      
      	* src/group.c (meta_group_property_notify): new function
      
      	* src/screen.c (set_supported_hint): support _NET_STARTUP_ID
      
      	* src/display.c (meta_display_open): add _NET_STARTUP_ID to atoms
      	we initialize
      
      	* src/group-private.h: private header shared between
      	group-props.c, group.c
      
      	* src/group-props.h, src/group-props.c: new files to contain
      	functions for retrieving group properties
      
      	* src/window.c (meta_window_same_application): change this a bit
      	to work with new definition of group
      
      	* src/group.c (meta_window_get_group): always create a group for
      	every window, using the window's own ID as group leader if
      	required.
      
      	* src/window.c (update_wm_hints): handle changes to group leader
      
      	* src/group.c (meta_window_group_leader_changed): new function
      
      	* src/display.h (struct _MetaDisplay): _NET_WM_WINDOW_TYPE_SPLASH,
      	not SPLASHSCREEN. Reported by Gregory Merchan and Matthias Clasen.
      
      	* src/screen.c (startup_sequence_timeout): when timing out a
      	startup sequence, send a remove message, don't just time it out
      	locally.
      5e1439f8
  30. 03 Nov, 2002 1 commit
    • Havoc Pennington's avatar
      use window-props.h stuff for a couple of properties (implement_showing): · d7917c02
      Havoc Pennington authored
      2002-11-03  Havoc Pennington  <hp@pobox.com>
      
      	* src/window.c (meta_window_new): use window-props.h stuff for a
      	couple of properties
      	(implement_showing): fix printf string
      
      	* src/xprops.c (meta_prop_free_values): new function
      
      	* src/window-props.h, src/window-props.c: start moving code that
      	handles loading window properties into this file.
      d7917c02
  31. 28 Oct, 2002 1 commit
  32. 27 Oct, 2002 1 commit
    • Havoc Pennington's avatar
      include config.h · 04c9c3e0
      Havoc Pennington authored
      2002-10-26  Havoc Pennington  <hp@pobox.com>
      
      	* src/iconcache.c: include config.h
      
      	* src/group.c: include config.h
      
      	* src/frame.c: include config.h
      
      	* src/core.c: include config.h so it doesn't crash all over the
      	place due to #ifdef HAVE_STARTUP_NOTIFICATION
      
      	* src/util.c (meta_print_backtrace): export from this file
      
      	* src/main.c (log_handler): print backtrace here
      04c9c3e0
  33. 25 Oct, 2002 1 commit
    • Havoc Pennington's avatar
      Add "busy cursor on app startup" support, conditionally - works only if · cb27f0c4
      Havoc Pennington authored
      2002-10-25  Havoc Pennington  <hp@pobox.com>
      
              Add "busy cursor on app startup" support, conditionally - works
      	only if libstartup-notification is found, and in practice requires
      	a GTK patch that's not in yet.
      
      	* src/screen.c: monitor startup events and set busy cursor if
      	appropriate
      
      	* src/display.c (meta_display_open): create SnDisplay
      
      	* configure.in: check for startup notification,
      	and add the cute "configure summary" at the end
      cb27f0c4
  34. 21 Oct, 2002 1 commit
    • Havoc Pennington's avatar
      Optimizations for managing new windows (do not all take effect if · c6b475b2
      Havoc Pennington authored
      2002-10-21  Havoc Pennington  <hp@redhat.com>
      
      	Optimizations for managing new windows (do not all take effect if
      	METACITY_DEBUG=1). Bug #96404
      
      	* src/keybindings.c (meta_change_keygrab): use error trap nesting
      	and conditionalize on meta_is_verbose() to avoid a ton of XSync
      
      	* src/display.c (meta_change_button_grab): ditto
      
      	Throughout: move to new error trap setup to save on XSync calls,
      	new setup is:
      
      	* src/errors.c (meta_error_trap_push_with_return): new function,
      	an error trap that needs to care about return value and thus
      	sync even if an outer trap still exists
      	(meta_error_trap_pop_with_return): new function
      	(meta_error_trap_pop): add "last_request_was_roundtrip"
      	argument allowing us to avoid XSync() if we just did
      	a GetProperty or whatever.
      
      	* src/util.c (meta_warning): flush the warning file descriptor
      
      	* src/Makefile.am (INCLUDES): define G_LOG_DOMAIN
      c6b475b2
  35. 16 Oct, 2002 1 commit
    • Havoc Pennington's avatar
      workspaces are all per-screen now, fix accordingly · 337812d5
      Havoc Pennington authored
      2002-10-16  Havoc Pennington  <hp@redhat.com>
      
      	* src/workspace.c: workspaces are all per-screen now, fix
      	accordingly
      
      	* src/core.c: fix multihead workspace stuff
      
      	* src/keybindings.c: multihead-rama
      
      	* src/screen.c (meta_screen_show_desktop): new functions to
      	replace display equivalents
      
      	* src/display.c (meta_display_get_workspace_by_screen_index): get
      	rid of this
      	(meta_display_get_workspace_by_index): get rid of this
      	(event_callback): handle _NET_SHOWING_DESKTOP message per-screen
      
      	* src/screen.c (meta_screen_get_workspace_by_index): new function
      
      	* src/screen.h (struct _MetaScreen): move workspace list, and
      	showing_desktop flag, to be per-screen
      
      	* src/window.c (window_query_root_pointer): return whether pointer
      	is on window's screen
      	(meta_window_handle_mouse_grab_op_event): don't use coordinates
      	from other screens when updating a window operation on the current
      	screen. I can't believe no one has reported this...
      337812d5
  36. 07 Oct, 2002 1 commit
    • Havoc Pennington's avatar
      Add a modifier key preference for the Alt+click stuff. Can be set to · f08337d9
      Havoc Pennington authored
      2002-10-07  Havoc Pennington  <hp@redhat.com>
      
              Add a modifier key preference for the Alt+click stuff.
      	Can be set to "disabled" as well.
      
      	* src/run-metacity.sh: load .Xmodmap in the Xnest if it exists
      
      	* src/display.c (meta_display_ungrab_window_buttons): ungrab
      	AnyModifier in case the modifier changed since we grabbed
      	(meta_display_open): rearrange code to use meta_display_close() to
      	mop up when we can't find any screens, avoiding the need to
      	keep the bail-out code in sync with meta_display_close.
      
      	* src/keybindings.c (devirtualize_modifiers): move this function
      	to a public place in display.c
      
      	* src/metacity.schemas.in: add setting for the modifier key
      	to use for Alt+left/middle/right click.
      
      	* src/prefs.c (update_binding): add a missing newline to a warning
      	(meta_prefs_get_mouse_button_mods): new function
      
      	* src/ui.c (meta_ui_parse_modifier): new function
      f08337d9
  37. 02 Oct, 2002 1 commit
    • Havoc Pennington's avatar
      make it static · 94b6dde6
      Havoc Pennington authored
      2002-10-01  Havoc Pennington  <hp@pobox.com>
      
      	* src/screen.c (meta_screen_resize_func): make it static
      
      	* src/stack.c (get_standalone_layer): put above/below windows
      	in an appropriate layer.
      
      	* src/screen.c (set_supported_hint): say we support above/below
      
      	* src/display.h (struct _MetaDisplay): add _NET_WM_STATE_ABOVE,
      	_NET_WM_STATE_BELOW atoms
      
      	* src/window.c (meta_window_client_message): handle above/below
      	state messages
      	(set_net_wm_state): handler above/below state
      	(update_net_wm_state): handle above/below states
      94b6dde6