@@ -151,8 +151,6 @@ typedef struct session {
151151	// === Operation related === 
152152	/// Whether there is a pending quest to get the focused window 
153153	bool  pending_focus_check ;
154- 	/// Flags related to the root window 
155- 	uint64_t  root_flags ;
156154	/// Program options. 
157155	options_t  o ;
158156	/// State object for c2. 
@@ -181,8 +179,6 @@ typedef struct session {
181179	struct  renderer  * renderer ;
182180	/// Whether all windows are currently redirected. 
183181	bool  redirected ;
184- 	/// Pre-generated alpha pictures. 
185- 	xcb_render_picture_t  * alpha_picts ;
186182	/// Time of last fading. In milliseconds. 
187183	long long  fade_time ;
188184	/// If we should quit 
@@ -196,21 +192,6 @@ typedef struct session {
196192
197193	struct  window_options  window_options_default ;
198194
199- 	// === Shadow/dimming related === 
200- 	/// 1x1 black Picture. 
201- 	xcb_render_picture_t  black_picture ;
202- 	/// 1x1 Picture of the shadow color. 
203- 	xcb_render_picture_t  cshadow_picture ;
204- 	/// 1x1 white Picture. 
205- 	xcb_render_picture_t  white_picture ;
206- 	/// Backend shadow context. 
207- 	struct  backend_shadow_context  * shadow_context ;
208- 	// for shadow precomputation 
209- 
210- 	// === Software-optimization-related === 
211- 	/// Nanosecond offset of the first painting. 
212- 	long  paint_tm_offset ;
213- 
214195	// === X extension related === 
215196	/// Information about monitors. 
216197	struct  x_monitors  monitors ;
@@ -224,31 +205,15 @@ typedef struct session {
224205#endif 
225206} session_t ;
226207
227- /// Enumeration for window event hints. 
228- typedef  enum  { WIN_EVMODE_UNKNOWN , WIN_EVMODE_FRAME , WIN_EVMODE_CLIENT  } win_evmode_t ;
229208struct  wintype_info  {
230209	const  char  * name ;
231210	const  char  * atom ;
232211};
233212extern  const  struct  wintype_info  WINTYPES [NUM_WINTYPES ];
234213extern  session_t  * ps_g ;
235214
236- void  ev_xcb_error (session_t  * ps , xcb_generic_error_t  * err );
237- 
238215// === Functions === 
239216
240- /** 
241-  * Get current time in struct timeval. 
242-  */ 
243- static  inline  struct  timeval  get_time_timeval (void ) {
244- 	struct  timeval  tv  =  {0 , 0 };
245- 
246- 	gettimeofday (& tv , NULL );
247- 
248- 	// Return a time of all 0 if the call fails 
249- 	return  tv ;
250- }
251- 
252217/** 
253218 * Get current time in struct timespec. 
254219 * 
@@ -263,13 +228,6 @@ static inline struct timespec get_time_timespec(void) {
263228	return  tm ;
264229}
265230
266- /** 
267-  * Return the painting target window. 
268-  */ 
269- static  inline  xcb_window_t  get_tgt_window (session_t  * ps ) {
270- 	return  ps -> overlay  !=  XCB_NONE  ? ps -> overlay  : ps -> c .screen_info -> root ;
271- }
272- 
273231/** 
274232 * Determine if a window has a specific property. 
275233 * 
@@ -295,14 +253,3 @@ static inline bool wid_has_prop(xcb_connection_t *c, xcb_window_t w, xcb_atom_t
295253}
296254
297255void  force_repaint (session_t  * ps );
298- 
299- /** 
300-  * Set a <code>bool</code> array of all wintypes to true. 
301-  */ 
302- static  inline  void  wintype_arr_enable (bool  arr []) {
303- 	wintype_t  i ;
304- 
305- 	for  (i  =  0 ; i  <  NUM_WINTYPES ; ++ i ) {
306- 		arr [i ] =  true;
307- 	}
308- }
0 commit comments