mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
[X11Helper] Add extra debug output when determining target monitor.
This commit is contained in:
parent
32f67ab5a5
commit
c851134411
1 changed files with 18 additions and 0 deletions
18
source/xcb.c
18
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.
|
||||
|
|
Loading…
Add table
Reference in a new issue