• 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
display.h 15.5 KB