• 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
screen.c 70.4 KB