* src/haiku_support.cc (Zoom):
* src/haiku_support.h (struct haiku_zoom_event): Include the
current fullscreen mode in the event.
* src/haikuterm.c (haiku_read_socket): Use that instead of the
current frame's fullscreen mode.
struct haiku_zoom_event rq;
rq.window = this;
+ rq.fullscreen_mode = fullscreen_mode;
haiku_write (ZOOM_EVENT, &rq);
}
struct haiku_zoom_event
{
void *window;
+ int fullscreen_mode;
};
enum haiku_font_specification
{
struct haiku_zoom_event *b = buf;
struct frame *f = haiku_window_to_frame (b->window);
- struct haiku_output *output;
if (!f)
continue;
- output = FRAME_OUTPUT_DATA (f);
-
- if (output->fullscreen_mode == FULLSCREEN_MAXIMIZED)
+ if (b->fullscreen_mode == FULLSCREEN_MODE_MAXIMIZED)
f->want_fullscreen = FULLSCREEN_NONE;
else
f->want_fullscreen = FULLSCREEN_MAXIMIZED;