aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorAlexander Gramiak2019-04-11 09:00:58 -0600
committerAlexander Gramiak2019-04-26 16:10:49 -0600
commitda9541dd1086b7bab52940c82915efe114bb7419 (patch)
tree24c279c12ad07586d77b30f410ce0ea1a38adcf6 /src/xterm.c
parentff4e31fa328a2cee5197beb20f068eb021712b5c (diff)
downloademacs-da9541dd1086b7bab52940c82915efe114bb7419.tar.gz
emacs-da9541dd1086b7bab52940c82915efe114bb7419.zip
Add prefixes to some window system-dependent procedures
* src/nsterm.m (note_mouse_movement): * src/w32fns.c (construct_console_modifiers): * src/w32inevt.c: * src/w32term.c (frame_highlight, frame_unhighlight) (construct_mouse_click, construct_mouse_wheel, construct_drag_n_drop) (lispy_file_action, queue_notifications, note_mouse_movement): * src/w32term.h: * src/xterm.c (frame_highlight, frame_unhighlight) (construct_mouse_click, note_mouse_movement, get_current_wm_state): Add and use window system prefixes.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 5d4d2ca3b78..69f9afddbcc 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -234,7 +234,7 @@ static void x_wm_set_window_state (struct frame *, int);
234static void x_wm_set_icon_pixmap (struct frame *, ptrdiff_t); 234static void x_wm_set_icon_pixmap (struct frame *, ptrdiff_t);
235static void x_initialize (void); 235static void x_initialize (void);
236 236
237static bool get_current_wm_state (struct frame *, Window, int *, bool *); 237static bool x_get_current_wm_state (struct frame *, Window, int *, bool *);
238 238
239/* Flush display of frame F. */ 239/* Flush display of frame F. */
240 240
@@ -4354,7 +4354,7 @@ x_scroll_run (struct window *w, struct run *run)
4354 4354
4355 4355
4356static void 4356static void
4357frame_highlight (struct frame *f) 4357x_frame_highlight (struct frame *f)
4358{ 4358{
4359 /* We used to only do this if Vx_no_window_manager was non-nil, but 4359 /* We used to only do this if Vx_no_window_manager was non-nil, but
4360 the ICCCM (section 4.1.6) says that the window's border pixmap 4360 the ICCCM (section 4.1.6) says that the window's border pixmap
@@ -4375,7 +4375,7 @@ frame_highlight (struct frame *f)
4375} 4375}
4376 4376
4377static void 4377static void
4378frame_unhighlight (struct frame *f) 4378x_frame_unhighlight (struct frame *f)
4379{ 4379{
4380 /* We used to only do this if Vx_no_window_manager was non-nil, but 4380 /* We used to only do this if Vx_no_window_manager was non-nil, but
4381 the ICCCM (section 4.1.6) says that the window's border pixmap 4381 the ICCCM (section 4.1.6) says that the window's border pixmap
@@ -4740,9 +4740,9 @@ x_frame_rehighlight (struct x_display_info *dpyinfo)
4740 if (dpyinfo->x_highlight_frame != old_highlight) 4740 if (dpyinfo->x_highlight_frame != old_highlight)
4741 { 4741 {
4742 if (old_highlight) 4742 if (old_highlight)
4743 frame_unhighlight (old_highlight); 4743 x_frame_unhighlight (old_highlight);
4744 if (dpyinfo->x_highlight_frame) 4744 if (dpyinfo->x_highlight_frame)
4745 frame_highlight (dpyinfo->x_highlight_frame); 4745 x_frame_highlight (dpyinfo->x_highlight_frame);
4746 } 4746 }
4747} 4747}
4748 4748
@@ -4962,9 +4962,9 @@ x_get_keysym_name (int keysym)
4962 the mouse. */ 4962 the mouse. */
4963 4963
4964static Lisp_Object 4964static Lisp_Object
4965construct_mouse_click (struct input_event *result, 4965x_construct_mouse_click (struct input_event *result,
4966 const XButtonEvent *event, 4966 const XButtonEvent *event,
4967 struct frame *f) 4967 struct frame *f)
4968{ 4968{
4969 /* Make the event type NO_EVENT; we'll change that when we decide 4969 /* Make the event type NO_EVENT; we'll change that when we decide
4970 otherwise. */ 4970 otherwise. */
@@ -4993,7 +4993,7 @@ construct_mouse_click (struct input_event *result,
4993 another motion event, so we can check again the next time it moves. */ 4993 another motion event, so we can check again the next time it moves. */
4994 4994
4995static bool 4995static bool
4996note_mouse_movement (struct frame *frame, const XMotionEvent *event) 4996x_note_mouse_movement (struct frame *frame, const XMotionEvent *event)
4997{ 4997{
4998 XRectangle *r; 4998 XRectangle *r;
4999 struct x_display_info *dpyinfo; 4999 struct x_display_info *dpyinfo;
@@ -7670,7 +7670,7 @@ x_net_wm_state (struct frame *f, Window window)
7670 Lisp_Object lval = Qnil; 7670 Lisp_Object lval = Qnil;
7671 bool sticky = false; 7671 bool sticky = false;
7672 7672
7673 get_current_wm_state (f, window, &value, &sticky); 7673 x_get_current_wm_state (f, window, &value, &sticky);
7674 7674
7675 switch (value) 7675 switch (value)
7676 { 7676 {
@@ -8594,12 +8594,12 @@ handle_one_xevent (struct x_display_info *dpyinfo,
8594 /* EnterNotify counts as mouse movement, 8594 /* EnterNotify counts as mouse movement,
8595 so update things that depend on mouse position. */ 8595 so update things that depend on mouse position. */
8596 if (f && !f->output_data.x->hourglass_p) 8596 if (f && !f->output_data.x->hourglass_p)
8597 note_mouse_movement (f, &event->xmotion); 8597 x_note_mouse_movement (f, &event->xmotion);
8598#ifdef USE_GTK 8598#ifdef USE_GTK
8599 /* We may get an EnterNotify on the buttons in the toolbar. In that 8599 /* We may get an EnterNotify on the buttons in the toolbar. In that
8600 case we moved out of any highlighted area and need to note this. */ 8600 case we moved out of any highlighted area and need to note this. */
8601 if (!f && dpyinfo->last_mouse_glyph_frame) 8601 if (!f && dpyinfo->last_mouse_glyph_frame)
8602 note_mouse_movement (dpyinfo->last_mouse_glyph_frame, &event->xmotion); 8602 x_note_mouse_movement (dpyinfo->last_mouse_glyph_frame, &event->xmotion);
8603#endif 8603#endif
8604 goto OTHER; 8604 goto OTHER;
8605 8605
@@ -8632,7 +8632,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
8632#ifdef USE_GTK 8632#ifdef USE_GTK
8633 /* See comment in EnterNotify above */ 8633 /* See comment in EnterNotify above */
8634 else if (dpyinfo->last_mouse_glyph_frame) 8634 else if (dpyinfo->last_mouse_glyph_frame)
8635 note_mouse_movement (dpyinfo->last_mouse_glyph_frame, &event->xmotion); 8635 x_note_mouse_movement (dpyinfo->last_mouse_glyph_frame, &event->xmotion);
8636#endif 8636#endif
8637 goto OTHER; 8637 goto OTHER;
8638 8638
@@ -8701,7 +8701,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
8701 last_mouse_window = window; 8701 last_mouse_window = window;
8702 } 8702 }
8703 8703
8704 if (!note_mouse_movement (f, &event->xmotion)) 8704 if (!x_note_mouse_movement (f, &event->xmotion))
8705 help_echo_string = previous_help_echo_string; 8705 help_echo_string = previous_help_echo_string;
8706 } 8706 }
8707 else 8707 else
@@ -8959,13 +8959,13 @@ handle_one_xevent (struct x_display_info *dpyinfo,
8959 && event->xbutton.time > ignore_next_mouse_click_timeout) 8959 && event->xbutton.time > ignore_next_mouse_click_timeout)
8960 { 8960 {
8961 ignore_next_mouse_click_timeout = 0; 8961 ignore_next_mouse_click_timeout = 0;
8962 construct_mouse_click (&inev.ie, &event->xbutton, f); 8962 x_construct_mouse_click (&inev.ie, &event->xbutton, f);
8963 } 8963 }
8964 if (event->type == ButtonRelease) 8964 if (event->type == ButtonRelease)
8965 ignore_next_mouse_click_timeout = 0; 8965 ignore_next_mouse_click_timeout = 0;
8966 } 8966 }
8967 else 8967 else
8968 construct_mouse_click (&inev.ie, &event->xbutton, f); 8968 x_construct_mouse_click (&inev.ie, &event->xbutton, f);
8969 } 8969 }
8970 if (FRAME_X_EMBEDDED_P (f)) 8970 if (FRAME_X_EMBEDDED_P (f))
8971 xembed_send_message (f, event->xbutton.time, 8971 xembed_send_message (f, event->xbutton.time,
@@ -10671,10 +10671,10 @@ x_set_z_group (struct frame *f, Lisp_Object new_value, Lisp_Object old_value)
10671 Return true iff we are not hidden. */ 10671 Return true iff we are not hidden. */
10672 10672
10673static bool 10673static bool
10674get_current_wm_state (struct frame *f, 10674x_get_current_wm_state (struct frame *f,
10675 Window window, 10675 Window window,
10676 int *size_state, 10676 int *size_state,
10677 bool *sticky) 10677 bool *sticky)
10678{ 10678{
10679 unsigned long actual_size; 10679 unsigned long actual_size;
10680 int i; 10680 int i;
@@ -10922,7 +10922,7 @@ x_handle_net_wm_state (struct frame *f, const XPropertyEvent *event)
10922 int value = FULLSCREEN_NONE; 10922 int value = FULLSCREEN_NONE;
10923 Lisp_Object lval; 10923 Lisp_Object lval;
10924 bool sticky = false; 10924 bool sticky = false;
10925 bool not_hidden = get_current_wm_state (f, event->window, &value, &sticky); 10925 bool not_hidden = x_get_current_wm_state (f, event->window, &value, &sticky);
10926 10926
10927 lval = Qnil; 10927 lval = Qnil;
10928 switch (value) 10928 switch (value)