]> Dogcows Code - chaz/tint2/blobdiff - src/systray/systraybar.c
cleanup config file
[chaz/tint2] / src / systray / systraybar.c
index 927f9cb5e9e98cf4d48a721678a49b58262d50a4..160cbca17cb26946f905d521a19f079e526458f0 100644 (file)
@@ -37,7 +37,7 @@ GSList *icons;
 #define SYSTEM_TRAY_CANCEL_MESSAGE  2
 
 // selection window
-Window net_sel_win = None;
+Window net_sel_win = None, hint_win = None;
 
 // freedesktop specification doesn't allow multi systray
 Systraybar systray;
@@ -158,6 +158,29 @@ void resize_systray(void *obj)
        printf("resize_systray %d %d\n", systray.area.posx, systray.area.width);
 }
 
+/*
+void create_hint_win()
+{
+   XWMHints hints;
+   XClassHint classhints;
+       Panel *panel = systray.area.panel;
+
+       hint_win = XCreateSimpleWindow(server.dsp, server.root_win, 0, 0, 1, 1, 0, 0, 0);
+
+       hints.flags = StateHint | WindowGroupHint | IconWindowHint;
+       hints.initial_state = WithdrawnState;
+       hints.window_group = hint_win;
+       hints.icon_window = panel->main_win;
+
+       classhints.res_name = "docker";
+       classhints.res_class = "Docker";
+
+       XSetWMProperties(server.dsp, hint_win, NULL, NULL, NULL, 0,
+                                                NULL, &hints, &classhints);
+
+       XMapWindow(server.dsp, hint_win);
+}
+*/
 
 int init_net()
 {
@@ -166,6 +189,8 @@ int init_net()
                return 0;
        }
 
+       //create_hint_win();
+
        // init systray protocol
    net_sel_win = XCreateSimpleWindow(server.dsp, server.root_win, -1, -1, 1, 1, 0, 0, 0);
 
@@ -203,6 +228,7 @@ void cleanup_net()
        }
 }
 
+
 /*
 void fix_geometry()
 {
This page took 0.022749 seconds and 4 git commands to generate.