* xterm.c (x_handle_net_wm_state): Also look for sticky.
(x_term_init): Initialize Xatom_net_wm_state_sticky.
* frame.h: Declare Qsticky.
2009-07-01 Jan Djärv <jan.h.d@swipnet.se>
+ * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky
+
+ * xterm.c (x_handle_net_wm_state): Also look for sticky.
+ (x_term_init): Initialize Xatom_net_wm_state_sticky.
+
+ * frame.h: Declare Qsticky.
+
* w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
* nsfns.m (ns_frame_parm_handlers): Ditto.
extern Lisp_Object Qwait_for_wm;
extern Lisp_Object Qfullscreen;
extern Lisp_Object Qfullwidth, Qfullheight, Qfullboth, Qmaximized;
+extern Lisp_Object Qsticky;
extern Lisp_Object Qfont_backend;
extern Lisp_Object Qalpha;
unsigned char *tmp_data = NULL;
Atom target_type = XA_ATOM;
Lisp_Object lval;
+ int sticky = 0;
BLOCK_INPUT;
x_catch_errors (dpy);
}
else if (a == dpyinfo->Xatom_net_wm_state_fullscreen_atom)
value = FULLSCREEN_BOTH;
+ else if (a == dpyinfo->Xatom_net_wm_state_sticky)
+ sticky = 1;
}
lval = Qnil;
}
store_frame_param (f, Qfullscreen, lval);
-
+ store_frame_param (f, Qsticky, sticky ? Qt : Qnil);
+
if (tmp_data) XFree (tmp_data);
UNBLOCK_INPUT;
}
= XInternAtom (dpyinfo->display, "_NET_WM_STATE_MAXIMIZED_HORZ", False);
dpyinfo->Xatom_net_wm_state_maximized_vert
= XInternAtom (dpyinfo->display, "_NET_WM_STATE_MAXIMIZED_VERT", False);
+ dpyinfo->Xatom_net_wm_state_sticky
+ = XInternAtom (dpyinfo->display, "_NET_WM_STATE_STICKY", False);
dpyinfo->cut_buffers_initialized = 0;
/* Atoms dealing with maximization and fullscreen */
Atom Xatom_net_wm_state, Xatom_net_wm_state_fullscreen_atom,
- Xatom_net_wm_state_maximized_horz, Xatom_net_wm_state_maximized_vert;
+ Xatom_net_wm_state_maximized_horz, Xatom_net_wm_state_maximized_vert,
+ Xatom_net_wm_state_sticky;
};
#ifdef HAVE_X_I18N