diff options
author | Dave Davenport <qball@gmpclient.org> | 2017-06-14 08:26:53 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2017-06-14 08:26:53 +0200 |
commit | c851134411ac2a2ae75f74f21cde2f3db8e97441 (patch) | |
tree | f2fc20570231c1e5e6c36aa752c038eb9c6e59b0 | |
parent | 32f67ab5a5a55fa6e5dc37c28f8875e1e01c6219 (diff) |
[X11Helper] Add extra debug output when determining target monitor.
-rw-r--r-- | source/xcb.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/source/xcb.c b/source/xcb.c index 00cdd17b..ce5aa158 100644 --- a/source/xcb.c +++ b/source/xcb.c @@ -486,8 +486,17 @@ static int monitor_active_from_id ( int mon_id, workarea *mon ) xcb_ewmh_get_desktop_viewport_reply_wipe ( &vp ); return TRUE; } + else { + g_debug ( "Viewport does not exist for current desktop: %d, falling back to mouse location (-5)", current_desktop ); + } xcb_ewmh_get_desktop_viewport_reply_wipe ( &vp ); } + else { + g_debug ( "Failed to get viewport for current desktop: %d, falling back to mouse location (-5).", current_desktop ); + } + } + else { + g_debug ( "Failed to get current desktop, falling back to mouse location (-5)." ); } } else if ( mon_id == -2 || mon_id == -4 ) { @@ -521,8 +530,17 @@ static int monitor_active_from_id ( int mon_id, workarea *mon ) return TRUE; } } + else { + g_debug ( "Failed to get translate position of active window, falling back to mouse location (-5)." ); + } free ( r ); } + else { + g_debug ( "Failed to get geometry of active window, falling back to mouse location (-5)." ); + } + } + else { + g_debug ( "Failed to get active window, falling back to mouse location (-5)." ); } } // Monitor that has mouse pointer. |