LOGIN / SIGN UP
Avatar-small Author: Claes Nästén
Date: Thu Sep 27 17:51:23 +0200 2007
Subject: Add logging to event handlers in manager.
    Added debug logging to event handler in manager, verbose but very helpful.
    Ignore select status in x11::display until things start to work again.

src/pekwm_manager.cpp
 
206 @@ -206,8 +206,8 @@
206 manager::handle_map_request (XEvent *ev)
207 {
208 // Start by looking for an already existing window.
209 pekwm::client *client = pekwm::client::find (ev->xmap.window);
210
211 pekwm::client *client = pekwm::client::find (ev->xmaprequest.window);
212
213 if (client) {
214 LOG.msg (toolkit::log::LOG_DEBUG,
215 "manager::handle_map_request, map %d found client %p",
...  
229 @@ -229,6 +229,12 @@
229 void
230 manager::handle_unmap_notify (XEvent *ev)
231 {
232 // Start by looking for window.
233 pekwm::client *client = pekwm::client::find (ev->xunmap.window);
234
235 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
236 "manager::handle_unmap_notify, unmap %d found client %p",
237 ev->xunmap.window, client);
238 }
239
240 /**
...  
245 @@ -239,9 +245,15 @@
245 void
246 manager::handle_destroy_notify (XEvent *ev)
247 {
248 // Find the client destroyed
249 pekwm::client *client = pekwm::client::find (ev->xdestroywindow.window);
250
251 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
252 "manager::handle_destroy_notify, destroy %d found client %p",
253 ev->xdestroywindow.window, client);
254 }
255
250 /**
257 /**
258 * Handle ConfigureRequest.
259 *
260 * @param ev Pointer to XEvent to handle.
...  
261 @@ -249,6 +261,8 @@
261 void
262 manager::handle_configure_request (XEvent *ev)
263 {
264 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
265 "manager::handle_configure_request");
266 }
267
268 /**
...  
273 @@ -259,6 +273,8 @@
273 void
274 manager::handle_client_message (XEvent *ev)
275 {
276 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
277 "manager::handle_client_message");
278 }
279
280 /**
...  
285 @@ -269,6 +285,8 @@
285 void
286 manager::handle_colormap_notify (XEvent *ev)
287 {
288 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
289 "manager::handle_colormap_notify");
290 }
291
292 /**
...  
297 @@ -279,6 +297,8 @@
297 void
298 manager::handle_property_notify (XEvent *ev)
299 {
300 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
301 "manager::handle_property_notify");
302 }
303
304 /**
...  
309 @@ -289,6 +309,8 @@
309 void
310 manager::handle_expose (XEvent *ev)
311 {
312 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
313 "manager::handle_expose");
314 }
315
316 /**
...  
321 @@ -299,6 +321,8 @@
321 void
322 manager::handle_key_press (XEvent *ev)
323 {
324 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
325 "manager::handle_key_press");
326 }
327
328 /**
...  
333 @@ -309,6 +333,8 @@
333 void
334 manager::handle_key_release (XEvent *ev)
335 {
336 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
337 "manager::handle_key_release");
338 }
339
340 /**
...  
345 @@ -319,6 +345,8 @@
345 void
346 manager::handle_button_press (XEvent *ev)
347 {
348 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
349 "manager::handle_button_press");
350 }
351
352 /**
...  
357 @@ -329,6 +357,8 @@
357 void
358 manager::handle_button_release (XEvent *ev)
359 {
360 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
361 "manager::handle_button_release");
362 }
363
364 /**
...  
369 @@ -339,6 +369,8 @@
369 void
370 manager::handle_motion_notify (XEvent *ev)
371 {
372 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
373 "manager::handle_motion_notify");
374 }
375
376 /**
...  
381 @@ -349,6 +381,8 @@
381 void
382 manager::handle_enter_notify (XEvent *ev)
383 {
384 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
385 "manager::handle_enter_notify");
386 }
387
388 /**
...  
393 @@ -359,6 +393,8 @@
393 void
394 manager::handle_leave_notify (XEvent *ev)
395 {
396 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
397 "manager::handle_leave_notify");
398 }
399
400 /**
...  
405 @@ -369,6 +405,8 @@
405 void
406 manager::handle_focus_in (XEvent *ev)
407 {
408 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
409 "manager::handle_focus_in");
410 }
411
412 /**
...  
417 @@ -379,6 +417,8 @@
417 void
418 manager::handle_focus_out (XEvent *ev)
419 {
420 LOG.msg (toolkit::log::LOG_DEBUG_VERBOSE,
421 "manager::handle_focus_out");
422 }
423
424 /**
...