aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c
index c56d82ee684..168614069f5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -8547,6 +8547,7 @@ x_handle_net_wm_state (f, event)
8547 unsigned char *tmp_data = NULL; 8547 unsigned char *tmp_data = NULL;
8548 Atom target_type = XA_ATOM; 8548 Atom target_type = XA_ATOM;
8549 Lisp_Object lval; 8549 Lisp_Object lval;
8550 int sticky = 0;
8550 8551
8551 BLOCK_INPUT; 8552 BLOCK_INPUT;
8552 x_catch_errors (dpy); 8553 x_catch_errors (dpy);
@@ -8584,6 +8585,8 @@ x_handle_net_wm_state (f, event)
8584 } 8585 }
8585 else if (a == dpyinfo->Xatom_net_wm_state_fullscreen_atom) 8586 else if (a == dpyinfo->Xatom_net_wm_state_fullscreen_atom)
8586 value = FULLSCREEN_BOTH; 8587 value = FULLSCREEN_BOTH;
8588 else if (a == dpyinfo->Xatom_net_wm_state_sticky)
8589 sticky = 1;
8587 } 8590 }
8588 8591
8589 lval = Qnil; 8592 lval = Qnil;
@@ -8604,7 +8607,8 @@ x_handle_net_wm_state (f, event)
8604 } 8607 }
8605 8608
8606 store_frame_param (f, Qfullscreen, lval); 8609 store_frame_param (f, Qfullscreen, lval);
8607 8610 store_frame_param (f, Qsticky, sticky ? Qt : Qnil);
8611
8608 if (tmp_data) XFree (tmp_data); 8612 if (tmp_data) XFree (tmp_data);
8609 UNBLOCK_INPUT; 8613 UNBLOCK_INPUT;
8610} 8614}
@@ -10295,6 +10299,8 @@ x_term_init (display_name, xrm_option, resource_name)
10295 = XInternAtom (dpyinfo->display, "_NET_WM_STATE_MAXIMIZED_HORZ", False); 10299 = XInternAtom (dpyinfo->display, "_NET_WM_STATE_MAXIMIZED_HORZ", False);
10296 dpyinfo->Xatom_net_wm_state_maximized_vert 10300 dpyinfo->Xatom_net_wm_state_maximized_vert
10297 = XInternAtom (dpyinfo->display, "_NET_WM_STATE_MAXIMIZED_VERT", False); 10301 = XInternAtom (dpyinfo->display, "_NET_WM_STATE_MAXIMIZED_VERT", False);
10302 dpyinfo->Xatom_net_wm_state_sticky
10303 = XInternAtom (dpyinfo->display, "_NET_WM_STATE_STICKY", False);
10298 10304
10299 dpyinfo->cut_buffers_initialized = 0; 10305 dpyinfo->cut_buffers_initialized = 0;
10300 10306