change volumealsa plugin popup windwow from toplevel to popup
authorPeter <ombalaxitabou@users.sf.net>
Fri, 21 Feb 2014 07:14:37 +0000 (07:14 +0000)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 22 Feb 2014 22:42:06 +0000 (00:42 +0200)
In volumealsa plugin, when creating a popup window, change window type from
toplevel to popup so window managers would ignore it. This way tiling window
managers do not tile it among other windows and do not make it a full screen
volume bar if that is the only open window.

src/plugins/volumealsa/volumealsa.c

index 006e6ac..cdce2a5 100644 (file)
@@ -472,7 +472,7 @@ static void volumealsa_build_popup_window(Plugin * p)
     VolumeALSAPlugin * vol = p->priv;
 
     /* Create a new window. */
-    vol->popup_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+    vol->popup_window = gtk_window_new(GTK_WINDOW_POPUP);
     gtk_window_set_decorated(GTK_WINDOW(vol->popup_window), FALSE);
     gtk_container_set_border_width(GTK_CONTAINER(vol->popup_window), 5);
     gtk_window_set_default_size(GTK_WINDOW(vol->popup_window), 80, 140);