Use XCB and SelectSelectionInput instead of GTK+

As it happens, there is no real need to constantly poll for changes,
since XFixes can inform us of updates as they happen.

With GTK+ gone we've got dependencies and error handling under control.
XCB is a truly awful thing to learn, though.

Our method will never work on Wayland or Windows, so we don't miss out
on anything by abandoning the huge toolkit.
This commit is contained in:
2018-09-22 14:09:42 +02:00
parent b0d3b2dcb5
commit 942bda7db4
5 changed files with 255 additions and 118 deletions

View File

@@ -1,4 +1,4 @@
Copyright (c) 2013 - 2016, Přemysl Janouch <p@janouch.name>
Copyright (c) 2013 - 2018, Přemysl Janouch <p@janouch.name>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.