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