gardesk/garclip / b996a5d

Browse files

use monitor_of_active_window for picker placement

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
b996a5ddd59d6106a114e6d277bcd8e0c2a79cc7
Parents
3b2ee0c
Tree
3d7d26c

1 changed file

StatusFile+-
M garclip-picker/src/app.rs 2 2
garclip-picker/src/app.rsmodified
@@ -53,8 +53,8 @@ impl App {
5353
         // Connect to X11
5454
         let conn = Connection::connect(None)?;
5555
 
56
-        // Detect primary monitor for centering
57
-        let monitor = gartk_x11::primary_monitor(&conn)?;
56
+        // Detect monitor of active window (falls back to pointer position)
57
+        let monitor = gartk_x11::monitor_of_active_window(&conn)?;
5858
 
5959
         // Calculate popup size and position
6060
         let width = 600;