-
-
Notifications
You must be signed in to change notification settings - Fork 65
Send icons for legacy X11 Apps #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
OpenQA test summaryComplete test suite and dependencies: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025060120-4.3&flavor=pull-requests Test run included the following:
New failures, excluding unstableCompared to: https://openqa.qubes-os.org/tests/overview?distri=qubesos&version=4.3&build=2025031804-4.3&flavor=update
Failed tests8 failures
Fixed failuresCompared to: https://openqa.qubes-os.org/tests/132953#dependencies 14 fixed
Unstable tests
Performance TestsPerformance degradation:17 performance degradations
Remaining performance tests:39 tests
|
Since very old X11 Apps (Xterm, Xcalc, Xlogo, Xclock, Xeyes, ...) do not have the `_NET_WM_ICON` Atom, revert to `WM_HINT` and extract icons and their transparency with that technology. This is mostly useful for Xterm fixes: QubesOS/qubes-issues#9973
Reason for amendment: While I could not find any program which uses 8bit/pixel pixel_mask (on Qubes OS 4.3 & Xfwm), It would be better to write the code for the hypothetical scenario and be safe than sorry. |
window-icon-updater/icon-sender
Outdated
@@ -49,6 +52,7 @@ class IconRetriever(object): | |||
self.conn = xcffib.connect() | |||
self.setup = self.conn.get_setup() | |||
self.root = self.setup.roots[0].root | |||
self.display = Display() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't make the second X11 connection with another library, use XCB connection that is here already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I rewrote the entire patch using xcffib
in another commit. I can squash the two commits into one commit. But I believe it might be a good idea to keep a history of Xlib
patch. So in few years, if anyone looks at history, they can find out how it is done with either of the libraries.
Since xcffib is preferred over Xlib and the method for `_NET_WM_ICON` is already implemented via xcffib, rewrite the previous patch with xcffib related: QubesOS/qubes-issues#9973
Since very old X11 Apps (Xterm, Xcalc, Xlogo, Xclock, Xeyes, ...) do not have the
_NET_WM_ICON
Atom, revert toWM_HINT
and extract icons and their transparency with that technology. This is mostly useful for Xtermfixes: QubesOS/qubes-issues#9973