pick-ui: don't handle the mouse
authorDylan Baker <dylan.c.baker@intel.com>
Tue, 1 Dec 2020 21:06:04 +0000 (13:06 -0800)
committerDylan Baker <dylan.c.baker@intel.com>
Wed, 6 Jan 2021 17:56:52 +0000 (09:56 -0800)
It's annoying, since it prevents linux "midle click" copy-n-paste

Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7863>

bin/pick-ui.py

index 3aea771..1980f11 100755 (executable)
@@ -28,6 +28,6 @@ from pick.ui import UI, PALETTE
 if __name__ == "__main__":
     u = UI()
     evl = urwid.AsyncioEventLoop(loop=asyncio.get_event_loop())
-    loop = urwid.MainLoop(u.render(), PALETTE, event_loop=evl)
+    loop = urwid.MainLoop(u.render(), PALETTE, event_loop=evl, handle_mouse=False)
     u.mainloop = loop
     loop.run()