aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_alert.c
blob: c6a1f0a5d50132043027e50c81ef18d922e96315 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "e.h"
#include <sys/wait.h>

/* public variables */
E_API unsigned long _e_alert_composite_win = 0;

EINTERN int
e_alert_init(void)
{
   return 1;
}

EINTERN int
e_alert_shutdown(void)
{
   return 1;
}

E_API void
e_alert_composite_win(Ecore_X_Window root, Ecore_X_Window comp)
{
#ifndef HAVE_WAYLAND_ONLY
   Ecore_X_Atom composite_win;

   composite_win = ecore_x_atom_get("_E_COMP_WINDOW");

   if (comp == 0)
     ecore_x_window_prop_property_del(root, composite_win);
   else
     ecore_x_window_prop_card32_set(root, composite_win, &comp, 1);
#else
   (void)root;
   (void)comp;
#endif
}

E_API void
e_alert_show(void)
{
   if (!e_nopause)
     {
        fprintf(stderr, "PAUSE !\n");
        pause();
     }
}