First I'd like to say good job to the freeamp team, you've come a long way
since I first tried out freeamp a few years ago.

Attached is a patch to ui/freeamp/unix/src/GTKWindow.cpp which adds a line
to set the wmclass hint. This allows some window managers to set
application specific settings (stay-on-top, omnipresent/sticky).  I used
"FreeAmp" for both the name and class parameters. Perhaps this is/would be
better defined elsewhere.

-casey



--- GTKWindow.orig      2001-04-16 20:51:14.000000000 -0500
+++ GTKWindow.cpp       2002-04-02 18:48:38.000000000 -0600
@@ -213,6 +213,7 @@
     gtk_widget_set_app_paintable(mainWindow, TRUE);
     gtk_window_set_title(GTK_WINDOW(mainWindow), BRANDING);
     gtk_window_set_policy(GTK_WINDOW(mainWindow), TRUE, TRUE, TRUE);
+    gtk_window_set_wmclass(GTK_WINDOW(mainWindow), "FreeAmp", "FreeAmp");
     gtk_widget_set_events(mainWindow, GDK_SUBSTRUCTURE_MASK | GDK_STRUCTURE_MASK
                           | GDK_POINTER_MOTION_MASK | GDK_BUTTON_MOTION_MASK |
                           GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |

Reply via email to