diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/haikuterm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/haikuterm.c b/src/haikuterm.c index a765eb715df..bdba6403aca 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c | |||
| @@ -101,6 +101,15 @@ haiku_coords_from_parent (struct frame *f, int *x, int *y) | |||
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | static void | 103 | static void |
| 104 | haiku_toolkit_position (struct frame *f, int x, int y, | ||
| 105 | bool *menu_bar_p, bool *tool_bar_p) | ||
| 106 | { | ||
| 107 | if (FRAME_OUTPUT_DATA (f)->menubar) | ||
| 108 | *menu_bar_p = (x >= 0 && x < FRAME_PIXEL_WIDTH (f) | ||
| 109 | && y >= 0 && y < FRAME_MENU_BAR_HEIGHT (f)); | ||
| 110 | } | ||
| 111 | |||
| 112 | static void | ||
| 104 | haiku_delete_terminal (struct terminal *terminal) | 113 | haiku_delete_terminal (struct terminal *terminal) |
| 105 | { | 114 | { |
| 106 | emacs_abort (); | 115 | emacs_abort (); |
| @@ -3728,6 +3737,7 @@ haiku_create_terminal (struct haiku_display_info *dpyinfo) | |||
| 3728 | terminal->menu_show_hook = haiku_menu_show; | 3737 | terminal->menu_show_hook = haiku_menu_show; |
| 3729 | terminal->toggle_invisible_pointer_hook = haiku_toggle_invisible_pointer; | 3738 | terminal->toggle_invisible_pointer_hook = haiku_toggle_invisible_pointer; |
| 3730 | terminal->fullscreen_hook = haiku_fullscreen; | 3739 | terminal->fullscreen_hook = haiku_fullscreen; |
| 3740 | terminal->toolkit_position_hook = haiku_toolkit_position; | ||
| 3731 | 3741 | ||
| 3732 | return terminal; | 3742 | return terminal; |
| 3733 | } | 3743 | } |