Browse code

Fix WM_CLASS.

Under Manjaro and Pop_OS, the class was set to "-m" when xdot was run
this way:

python3 -m xdot foo

This solution was suggested by Moritz Meier.

Arthur A. Gleckler authored on 21/10/2021 17:13:12 • José Fonseca committed on 22/10/2021 19:50:41
Showing 1 changed files

... ...
@@ -568,6 +568,7 @@ class DotWindow(Gtk.Window):
568 568
 
569 569
         window.set_title(self.base_title)
570 570
         window.set_default_size(width, height)
571
+        window.set_wmclass("xdot", "xdot")
571 572
         vbox = Gtk.VBox()
572 573
         window.add(vbox)
573 574