send_event32 (win, server.atom._NET_WM_STATE, 2, server.atom._NET_WM_STATE_SHADED);
}
+/*
+int x11_send_expose(Display *dpy, Window dst, int x, int y, int width, int height)
+{
+ XEvent xe;
+ int rc;
+ xe.type = Expose;
+ xe.xexpose.window = dst;
+ xe.xexpose.x = x;
+ xe.xexpose.y = y;
+ xe.xexpose.width = width;
+ xe.xexpose.height = height;
+ xe.xexpose.count = 0;
+ rc = XSendEvent(tray_data.dpy, dst, True, NoEventMask, &xe);
+ return x11_ok() && rc != 0;
+}
+*/
int window_is_hidden (Window win)
{
at = server_get_property (win, server.atom._NET_WM_STATE, XA_ATOM, &count);
for (i = 0; i < count; i++) {
- if (at[i] == server.atom._NET_WM_STATE_SKIP_PAGER || at[i] == server.atom._NET_WM_STATE_SKIP_TASKBAR) {
+ if (at[i] == server.atom._NET_WM_STATE_SKIP_TASKBAR) {
XFree(at);
return 1;
}
XFree(at);
for (i=0 ; i < nb_panel ; i++) {
- if (panel1[i].main_win == win)
+ if (panel1[i].main_win == win) {
return 1;
+ }
}
// specification