exit(111);
}
+/* Don't page the pager. */
+void setup_pager() {
+ long states = { skip_pager_state };
+ char buffer[16];
+
+ XChangeProperty(DADisplay, DAWindow, client_state_atom, XA_ATOM, 32, PropModeAppend, &states, 1);
+
+ if (desktop >= 0) {
+ if (snprintf(buffer, sizeof(buffer), "Desktop %d", desktop + 1) < 0) return;
+ }
+ else {
+ if (snprintf(buffer, sizeof(buffer), "All desktops") < 0) return;
+ }
+ XStoreName(DADisplay, DAWindow, buffer);
+}
+
void get_atom_longs(Atom atom, Atom type, Window window, long **data, unsigned long *num_items) {
Atom actual;
int format;
if (client_list_supported) client = data[i];
else client = XmuClientWindow(DADisplay, wins[i]);
- /* Don't page the pager. */
- if (client == DAWindow) continue;
-
/* Check the window is on our desktop (or all desktops). */
client_desktop = get_atom_long(client_desktop_atom, XA_CARDINAL, client);
if (desktop > -1) {
XSetErrorHandler(error_handler);
setup_GCs();
+ setup_pager();
DAShow();
DAEventLoop();