]> Dogcows Code - chaz/tint2/blob - src/tint.c
87a57fc2b497e3dc086fafa7784d2cbe4349c8e5
[chaz/tint2] / src / tint.c
1 /**************************************************************************
2 *
3 * Tint2 panel
4 *
5 * Copyright (C) 2007 Pål Staurland (staura@gmail.com)
6 * Modified (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr)
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License version 2
10 * as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 **************************************************************************/
20
21 #include <sys/stat.h>
22 #include <sys/time.h>
23 #include <unistd.h>
24 #include <stdio.h>
25 #include <stdlib.h>
26 #include <string.h>
27 #include <X11/Xutil.h>
28 #include <X11/Xatom.h>
29 #include <X11/Xlocale.h>
30 #include <Imlib2.h>
31 #include <signal.h>
32
33 #include "server.h"
34 #include "window.h"
35 #include "config.h"
36 #include "task.h"
37 #include "taskbar.h"
38 #include "systraybar.h"
39 #include "panel.h"
40
41
42 void signal_handler(int sig)
43 {
44 // signal handler is light as it should be
45 signal_pending = sig;
46 }
47
48
49 void init ()
50 {
51 // Set signal handler
52 signal(SIGUSR1, signal_handler);
53 signal(SIGINT, signal_handler);
54 signal(SIGTERM, signal_handler);
55 signal(SIGHUP, signal_handler);
56
57 // set global data
58 memset(&server, 0, sizeof(Server_global));
59 memset(&systray, 0, sizeof(Systraybar));
60
61 server.dsp = XOpenDisplay (NULL);
62 if (!server.dsp) {
63 fprintf(stderr, "tint2 exit : could not open display.\n");
64 exit(0);
65 }
66 server_init_atoms ();
67 server.screen = DefaultScreen (server.dsp);
68 server.root_win = RootWindow(server.dsp, server.screen);
69 server.depth = DefaultDepth (server.dsp, server.screen);
70 server.visual = DefaultVisual (server.dsp, server.screen);
71 server.desktop = server_get_current_desktop ();
72 XGCValues gcv;
73 server.gc = XCreateGC (server.dsp, server.root_win, (unsigned long)0, &gcv) ;
74
75 XSetErrorHandler ((XErrorHandler) server_catch_error);
76
77 imlib_context_set_display (server.dsp);
78 imlib_context_set_visual (server.visual);
79 imlib_context_set_colormap (DefaultColormap (server.dsp, server.screen));
80
81 /* Catch events */
82 XSelectInput (server.dsp, server.root_win, PropertyChangeMask|StructureNotifyMask);
83
84 setlocale (LC_ALL, "");
85 }
86
87
88 void cleanup()
89 {
90 cleanup_panel();
91
92 if (time1_font_desc) pango_font_description_free(time1_font_desc);
93 if (time2_font_desc) pango_font_description_free(time2_font_desc);
94 if (time1_format) g_free(time1_format);
95 if (time2_format) g_free(time2_format);
96 #ifdef ENABLE_BATTERY
97 if (bat1_font_desc) pango_font_description_free(bat1_font_desc);
98 if (bat2_font_desc) pango_font_description_free(bat2_font_desc);
99 if (battery_low_cmd) g_free(battery_low_cmd);
100 if (path_energy_now) g_free(path_energy_now);
101 if (path_energy_full) g_free(path_energy_full);
102 if (path_current_now) g_free(path_current_now);
103 if (path_status) g_free(path_status);
104 #endif
105 if (clock_lclick_command) g_free(clock_lclick_command);
106 if (clock_rclick_command) g_free(clock_rclick_command);
107
108 if (server.monitor) free(server.monitor);
109 XFreeGC(server.dsp, server.gc);
110 XCloseDisplay(server.dsp);
111 }
112
113
114 void window_action (Task *tsk, int action)
115 {
116 switch (action) {
117 case CLOSE:
118 set_close (tsk->win);
119 break;
120 case TOGGLE:
121 set_active(tsk->win);
122 break;
123 case ICONIFY:
124 XIconifyWindow (server.dsp, tsk->win, server.screen);
125 break;
126 case TOGGLE_ICONIFY:
127 if (tsk == task_active) XIconifyWindow (server.dsp, tsk->win, server.screen);
128 else set_active (tsk->win);
129 break;
130 case SHADE:
131 window_toggle_shade (tsk->win);
132 break;
133 }
134 }
135
136
137 void event_button_press (XEvent *e)
138 {
139 Panel *panel = get_panel(e->xany.window);
140 if (!panel) return;
141
142 if (wm_menu) {
143 if ((panel_horizontal && (e->xbutton.x < panel->area.paddingxlr || e->xbutton.x > panel->area.width-panel->area.paddingxlr || e->xbutton.y < panel->area.paddingy || e->xbutton.y > panel->area.paddingy+panel->g_taskbar.height)) || (!panel_horizontal && (e->xbutton.y < panel->area.paddingxlr || e->xbutton.y > panel->area.height-panel->area.paddingxlr || e->xbutton.x < panel->area.paddingy || e->xbutton.x > panel->area.paddingy+panel->g_taskbar.width))) {
144 // forward the click to the desktop window (thanks conky)
145 XUngrabPointer(server.dsp, e->xbutton.time);
146 e->xbutton.window = server.root_win;
147 // icewm doesn't open under the mouse.
148 // and xfce doesn't open at all.
149 //e->xbutton.x = e->xbutton.x_root;
150 //e->xbutton.y = e->xbutton.y_root;
151 //printf("**** %d, %d\n", e->xbutton.x, e->xbutton.y);
152 XSetInputFocus(server.dsp, e->xbutton.window, RevertToParent, e->xbutton.time);
153 XSendEvent(server.dsp, e->xbutton.window, False, ButtonPressMask, e);
154 return;
155 }
156 }
157
158 if (e->xbutton.button != 1) return;
159
160 if (panel_mode != MULTI_DESKTOP) {
161 // drag and drop disabled
162 XLowerWindow (server.dsp, panel->main_win);
163 return;
164 }
165
166 GSList *l0;
167 Taskbar *tskbar;
168 if (panel_horizontal) {
169 int x = e->xbutton.x;
170 for (l0 = panel->area.list; l0 ; l0 = l0->next) {
171 tskbar = l0->data;
172 if (!tskbar->area.on_screen) continue;
173 if (x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width))
174 break;
175 }
176 if (l0) {
177 Task *tsk;
178 for (l0 = tskbar->area.list; l0 ; l0 = l0->next) {
179 tsk = l0->data;
180 if (x >= tsk->area.posx && x <= (tsk->area.posx + tsk->area.width)) {
181 task_drag = tsk;
182 break;
183 }
184 }
185 }
186 }
187 else {
188 int y = e->xbutton.y;
189 for (l0 = panel->area.list; l0 ; l0 = l0->next) {
190 tskbar = l0->data;
191 if (!tskbar->area.on_screen) continue;
192 if (y >= tskbar->area.posy && y <= (tskbar->area.posy + tskbar->area.height))
193 break;
194 }
195 if (l0) {
196 Task *tsk;
197 for (l0 = tskbar->area.list; l0 ; l0 = l0->next) {
198 tsk = l0->data;
199 if (y >= tsk->area.posy && y <= (tsk->area.posy + tsk->area.height)) {
200 task_drag = tsk;
201 break;
202 }
203 }
204 }
205 }
206 XLowerWindow (server.dsp, panel->main_win);
207 }
208
209
210 void event_button_release (XEvent *e)
211 {
212 Panel *panel = get_panel(e->xany.window);
213 if (!panel) return;
214
215 if (wm_menu) {
216 if ((panel_horizontal && (e->xbutton.x < panel->area.paddingxlr || e->xbutton.x > panel->area.width-panel->area.paddingxlr || e->xbutton.y < panel->area.paddingy || e->xbutton.y > panel->area.paddingy+panel->g_taskbar.height)) || (!panel_horizontal && (e->xbutton.y < panel->area.paddingxlr || e->xbutton.y > panel->area.height-panel->area.paddingxlr || e->xbutton.x < panel->area.paddingy || e->xbutton.x > panel->area.paddingy+panel->g_taskbar.width))) {
217 // forward the click to the desktop window (thanks conky)
218 e->xbutton.window = server.root_win;
219 XSendEvent(server.dsp, e->xbutton.window, False, ButtonReleaseMask, e);
220 return;
221 }
222 }
223
224 int action = TOGGLE_ICONIFY;
225 int x = e->xbutton.x;
226 int y = e->xbutton.y;
227 switch (e->xbutton.button) {
228 case 2:
229 action = mouse_middle;
230 break;
231 case 3:
232 action = mouse_right;
233 break;
234 case 4:
235 action = mouse_scroll_up;
236 break;
237 case 5:
238 action = mouse_scroll_down;
239 break;
240 }
241
242 // search taskbar
243 Taskbar *tskbar;
244 GSList *l0;
245 Clock clk = panel->clock;
246 if (panel_horizontal) {
247 if (clk.area.on_screen && x >= clk.area.posx && x <= (clk.area.posx + clk.area.width))
248 clock_action(e->xbutton.button);
249 else {
250 for (l0 = panel->area.list; l0 ; l0 = l0->next) {
251 tskbar = l0->data;
252 if (!tskbar->area.on_screen) continue;
253 if (x >= tskbar->area.posx && x <= (tskbar->area.posx + tskbar->area.width))
254 goto suite;
255 }
256 }
257 }
258 else {
259 if (clk.area.on_screen && y >= clk.area.posy && y <= (clk.area.posy + clk.area.height))
260 clock_action(e->xbutton.button);
261 else {
262 for (l0 = panel->area.list; l0 ; l0 = l0->next) {
263 tskbar = l0->data;
264 if (!tskbar->area.on_screen) continue;
265 if (y >= tskbar->area.posy && y <= (tskbar->area.posy + tskbar->area.height))
266 goto suite;
267 }
268 }
269 }
270
271 // TODO: check better solution to keep window below
272 XLowerWindow (server.dsp, panel->main_win);
273 task_drag = 0;
274 return;
275
276 suite:
277 // drag and drop task
278 if (task_drag) {
279 if (tskbar != task_drag->area.parent && action == TOGGLE_ICONIFY) {
280 if (task_drag->desktop != ALLDESKTOP && panel_mode == MULTI_DESKTOP) {
281 windows_set_desktop(task_drag->win, tskbar->desktop);
282 if (tskbar->desktop == server.desktop)
283 set_active(task_drag->win);
284 task_drag = 0;
285 }
286 return;
287 }
288 else task_drag = 0;
289 }
290
291 // switch desktop
292 if (panel_mode == MULTI_DESKTOP)
293 if (tskbar->desktop != server.desktop && action != CLOSE)
294 set_desktop (tskbar->desktop);
295
296 // action on task
297 Task *tsk;
298 GSList *l;
299 for (l = tskbar->area.list ; l ; l = l->next) {
300 tsk = l->data;
301 if (panel_horizontal) {
302 if (x >= tsk->area.posx && x <= (tsk->area.posx + tsk->area.width)) {
303 window_action (tsk, action);
304 break;
305 }
306 }
307 else {
308 if (y >= tsk->area.posy && y <= (tsk->area.posy + tsk->area.height)) {
309 window_action (tsk, action);
310 break;
311 }
312 }
313 }
314
315 // to keep window below
316 XLowerWindow (server.dsp, panel->main_win);
317 }
318
319
320 void event_property_notify (XEvent *e)
321 {
322 int i, j;
323 Task *tsk;
324 Window win = e->xproperty.window;
325 Atom at = e->xproperty.atom;
326
327 if (win == server.root_win) {
328 if (!server.got_root_win) {
329 XSelectInput (server.dsp, server.root_win, PropertyChangeMask|StructureNotifyMask);
330 server.got_root_win = 1;
331 }
332
333 // Change number of desktops
334 else if (at == server.atom._NET_NUMBER_OF_DESKTOPS) {
335 server.nb_desktop = server_get_number_of_desktop ();
336 cleanup_taskbar();
337 init_taskbar();
338 visible_object();
339 for (i=0 ; i < nb_panel ; i++) {
340 panel1[i].area.resize = 1;
341 }
342 task_refresh_tasklist();
343 panel_refresh = 1;
344 }
345 // Change desktop
346 else if (at == server.atom._NET_CURRENT_DESKTOP) {
347 server.desktop = server_get_current_desktop ();
348 if (panel_mode != MULTI_DESKTOP) {
349 visible_object();
350 }
351 }
352 // Window list
353 else if (at == server.atom._NET_CLIENT_LIST) {
354 task_refresh_tasklist();
355 panel_refresh = 1;
356 }
357 // Change active
358 else if (at == server.atom._NET_ACTIVE_WINDOW) {
359 GSList *l0;
360 if (task_active) {
361 for (i=0 ; i < nb_panel ; i++) {
362 for (j=0 ; j < panel1[i].nb_desktop ; j++) {
363 for (l0 = panel1[i].taskbar[j].area.list; l0 ; l0 = l0->next) {
364 tsk = l0->data;
365 tsk->area.is_active = 0;
366 }
367 }
368 }
369 task_active = 0;
370 }
371 Window w1 = window_get_active ();
372 Task *t = task_get_task(w1);
373 if (!t) {
374 Window w2;
375 if (XGetTransientForHint(server.dsp, w1, &w2) != 0)
376 if (w2) t = task_get_task(w2);
377 }
378 if (task_urgent == t) {
379 init_precision();
380 task_urgent = 0;
381 }
382 if (t) {
383 for (i=0 ; i < nb_panel ; i++) {
384 for (j=0 ; j < panel1[i].nb_desktop ; j++) {
385 for (l0 = panel1[i].taskbar[j].area.list; l0 ; l0 = l0->next) {
386 tsk = l0->data;
387 if (tsk->win == t->win) {
388 tsk->area.is_active = 1;
389 //printf("active monitor %d, task %s\n", panel1[i].monitor, tsk->title);
390 }
391 }
392 }
393 }
394 task_active = t;
395 }
396 panel_refresh = 1;
397 }
398 else if (at == server.atom._XROOTPMAP_ID) {
399 // change Wallpaper
400 for (i=0 ; i < nb_panel ; i++) {
401 set_panel_background(&panel1[i]);
402 }
403 panel_refresh = 1;
404 }
405 }
406 else {
407 tsk = task_get_task (win);
408 if (!tsk) return;
409 //printf("atom root_win = %s, %s\n", XGetAtomName(server.dsp, at), tsk->title);
410
411 // Window title changed
412 if (at == server.atom._NET_WM_VISIBLE_NAME || at == server.atom._NET_WM_NAME || at == server.atom.WM_NAME) {
413 Task *tsk2;
414 GSList *l0;
415 get_title(tsk);
416 // changed other tsk->title
417 for (i=0 ; i < nb_panel ; i++) {
418 for (j=0 ; j < panel1[i].nb_desktop ; j++) {
419 for (l0 = panel1[i].taskbar[j].area.list; l0 ; l0 = l0->next) {
420 tsk2 = l0->data;
421 if (tsk->win == tsk2->win && tsk != tsk2) {
422 tsk2->title = tsk->title;
423 tsk2->area.redraw = 1;
424 }
425 }
426 }
427 }
428 panel_refresh = 1;
429 }
430 // Demand attention
431 else if (at == server.atom._NET_WM_STATE) {
432 if (window_is_urgent (win)) {
433 task_urgent = tsk;
434 tick_urgent = 0;
435 time_precision = 1;
436 }
437 }
438 else if (at == server.atom.WM_STATE) {
439 // Iconic state
440 // TODO : try to delete following code
441 if (window_is_iconified (win)) {
442 if (task_active) {
443 if (task_active->win == tsk->win) {
444 Task *tsk2;
445 GSList *l0;
446 for (i=0 ; i < nb_panel ; i++) {
447 for (j=0 ; j < panel1[i].nb_desktop ; j++) {
448 for (l0 = panel1[i].taskbar[j].area.list; l0 ; l0 = l0->next) {
449 tsk2 = l0->data;
450 tsk2->area.is_active = 0;
451 }
452 }
453 }
454 task_active = 0;
455 }
456 }
457 }
458 }
459 // Window icon changed
460 else if (at == server.atom._NET_WM_ICON) {
461 get_icon(tsk);
462 Task *tsk2;
463 GSList *l0;
464 for (i=0 ; i < nb_panel ; i++) {
465 for (j=0 ; j < panel1[i].nb_desktop ; j++) {
466 for (l0 = panel1[i].taskbar[j].area.list; l0 ; l0 = l0->next) {
467 tsk2 = l0->data;
468 if (tsk->win == tsk2->win && tsk != tsk2) {
469 tsk2->icon_width = tsk->icon_width;
470 tsk2->icon_height = tsk->icon_height;
471 tsk2->icon_data = tsk->icon_data;
472 tsk2->area.redraw = 1;
473 }
474 }
475 }
476 }
477 panel_refresh = 1;
478 }
479 // Window desktop changed
480 else if (at == server.atom._NET_WM_DESKTOP) {
481 int desktop = window_get_desktop (win);
482 int active = tsk->area.is_active;
483 //printf(" Window desktop changed %d, %d\n", tsk->desktop, desktop);
484 // bug in windowmaker : send unecessary 'desktop changed' when focus changed
485 if (desktop != tsk->desktop) {
486 remove_task (tsk);
487 tsk = add_task (win);
488 if (tsk && active) {
489 tsk->area.is_active = 1;
490 task_active = tsk;
491 }
492 panel_refresh = 1;
493 }
494 }
495
496 if (!server.got_root_win) server.root_win = RootWindow (server.dsp, server.screen);
497 }
498 }
499
500
501 void event_expose (XEvent *e)
502 {
503 Panel *panel;
504
505 panel = get_panel(e->xany.window);
506 if (!panel) return;
507 // TODO : one panel_refresh per panel ?
508 panel_refresh = 1;
509 }
510
511
512 void event_configure_notify (Window win)
513 {
514 // check 'win' move in systray
515 TrayWindow *traywin;
516 GSList *l;
517 for (l = systray.list_icons; l ; l = l->next) {
518 traywin = (TrayWindow*)l->data;
519 if (traywin->id == win) {
520 //printf("move tray %d\n", traywin->x);
521 XMoveResizeWindow(server.dsp, traywin->id, traywin->x, traywin->y, traywin->width, traywin->height);
522 panel_refresh = 1;
523 return;
524 }
525 }
526
527 // check 'win' move in another monitor
528 if (nb_panel == 1) return;
529 if (server.nb_monitor == 1) return;
530 Task *tsk = task_get_task (win);
531 if (!tsk) return;
532
533 Panel *p = tsk->area.panel;
534 if (p->monitor != window_get_monitor (win)) {
535 remove_task (tsk);
536 add_task (win);
537 if (win == window_get_active ()) {
538 Task *tsk = task_get_task (win);
539 tsk->area.is_active = 1;
540 task_active = tsk;
541 }
542 panel_refresh = 1;
543 }
544 }
545
546
547 void event_timer()
548 {
549 struct timeval stv;
550 int i;
551
552 if (gettimeofday(&stv, 0)) return;
553
554 if (abs(stv.tv_sec - time_clock.tv_sec) < time_precision) return;
555 time_clock.tv_sec = stv.tv_sec;
556 time_clock.tv_sec -= time_clock.tv_sec % time_precision;
557
558 // urgent task
559 if (task_urgent) {
560 if (tick_urgent < max_tick_urgent) {
561 task_urgent->area.is_active = !task_urgent->area.is_active;
562 task_urgent->area.redraw = 1;
563 tick_urgent++;
564 }
565 }
566
567 // update battery
568 #ifdef ENABLE_BATTERY
569 if (panel1[0].battery.area.on_screen) {
570 update_battery();
571 for (i=0 ; i < nb_panel ; i++)
572 panel1[i].battery.area.resize = 1;
573 }
574 #endif
575
576 // update clock
577 if (time1_format) {
578 for (i=0 ; i < nb_panel ; i++)
579 panel1[i].clock.area.resize = 1;
580 }
581 panel_refresh = 1;
582 }
583
584
585 int main (int argc, char *argv[])
586 {
587 XEvent e;
588 fd_set fd;
589 int x11_fd, i, c;
590 struct timeval tv;
591 Panel *panel;
592 GSList *it;
593
594 init ();
595
596 load_config:
597 i = 0;
598 c = getopt (argc, argv, "c:");
599 init_config();
600 if (c != -1) {
601 i = config_read_file (optarg);
602 c = getopt (argc, argv, "j:");
603 if (c != -1) {
604 // usage: tint2 [-c] <config_file> -j <file> for internal use
605 printf("file %s\n", optarg);
606 cleanup();
607 exit(0);
608 }
609 }
610 if (!i)
611 i = config_read ();
612 if (!i) {
613 fprintf(stderr, "usage: tint2 [-c] <config_file>\n");
614 cleanup();
615 exit(1);
616 }
617 config_finish();
618
619 x11_fd = ConnectionNumber(server.dsp);
620 XSync(server.dsp, False);
621
622 while (1) {
623 // thanks to AngryLlama for the timer
624 // Create a File Description Set containing x11_fd
625 FD_ZERO (&fd);
626 FD_SET (x11_fd, &fd);
627
628 tv.tv_usec = 500000;
629 tv.tv_sec = 0;
630
631 // Wait for X Event or a Timer
632 if (select(x11_fd+1, &fd, 0, 0, &tv)) {
633 while (XPending (server.dsp)) {
634 XNextEvent(server.dsp, &e);
635
636 switch (e.type) {
637 case ButtonPress:
638 event_button_press (&e);
639 break;
640
641 case ButtonRelease:
642 event_button_release(&e);
643 break;
644
645 case Expose:
646 event_expose(&e);
647 break;
648
649 case PropertyNotify:
650 event_property_notify(&e);
651 break;
652
653 case ConfigureNotify:
654 if (e.xconfigure.window == server.root_win)
655 goto load_config;
656 else
657 event_configure_notify (e.xconfigure.window);
658 break;
659
660 case ReparentNotify:
661 if (!systray.area.on_screen)
662 break;
663 panel = (Panel*)systray.area.panel;
664 if (e.xany.window == panel->main_win) // reparented to us
665 break;
666 // FIXME: 'reparent to us' badly detected => disabled
667 break;
668 case UnmapNotify:
669 case DestroyNotify:
670 if (!systray.area.on_screen)
671 break;
672 for (it = systray.list_icons; it; it = g_slist_next(it)) {
673 if (((TrayWindow*)it->data)->id == e.xany.window) {
674 remove_icon((TrayWindow*)it->data);
675 break;
676 }
677 }
678 break;
679
680 case ClientMessage:
681 if (!systray.area.on_screen) break;
682 if (e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) {
683 net_message(&e.xclient);
684 }
685 break;
686 }
687 }
688 }
689 event_timer();
690
691 switch (signal_pending) {
692 case SIGUSR1:
693 signal_pending = 0;
694 goto load_config;
695 case SIGINT:
696 case SIGTERM:
697 case SIGHUP:
698 cleanup ();
699 return 0;
700 }
701
702 if (panel_refresh) {
703 panel_refresh = 0;
704
705 if (refresh_systray) {
706 panel = (Panel*)systray.area.panel;
707 XSetWindowBackgroundPixmap (server.dsp, panel->main_win, None);
708 }
709 for (i=0 ; i < nb_panel ; i++) {
710 panel = &panel1[i];
711
712 if (panel->temp_pmap) XFreePixmap(server.dsp, panel->temp_pmap);
713 panel->temp_pmap = XCreatePixmap(server.dsp, server.root_win, panel->area.width, panel->area.height, server.depth);
714
715 refresh(&panel->area);
716 XCopyArea(server.dsp, panel->temp_pmap, panel->main_win, server.gc, 0, 0, panel->area.width, panel->area.height, 0, 0);
717 }
718 XFlush (server.dsp);
719
720 if (refresh_systray) {
721 refresh_systray = 0;
722 panel = (Panel*)systray.area.panel;
723 // tint2 doen't draw systray icons. it just redraw background.
724 XSetWindowBackgroundPixmap (server.dsp, panel->main_win, panel->temp_pmap);
725 // force icon's refresh
726 refresh_systray_icon();
727 }
728 }
729 }
730 }
731
732
This page took 0.063579 seconds and 3 git commands to generate.