Use the new glfw API for setting WM_CLASS
This commit is contained in:
@@ -264,9 +264,3 @@ def single_instance(group_id=None):
|
||||
s.set_inheritable(False)
|
||||
atexit.register(remove_socket_file, s)
|
||||
return True
|
||||
|
||||
|
||||
def encode_wm_class(name, cls, title=appname):
|
||||
if is_macos:
|
||||
return title
|
||||
return '\x01' + (name or cls) + '\x1e' + cls + '\x1e' + title
|
||||
|
||||
Reference in New Issue
Block a user