On Wed, Jul 25, 2012 at 02:33:42PM +0200, Olivier Blin wrote: Applied this one, thanks. Kristian
> --- > clients/gears.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/clients/gears.c b/clients/gears.c > index 166e6a4..70ec86c 100644 > --- a/clients/gears.c > +++ b/clients/gears.c > @@ -58,6 +58,7 @@ struct gears { > int last_x, last_y; > > GLint gear_list[3]; > + int fullscreen; > }; > > struct gear_template { > @@ -353,6 +354,15 @@ keyboard_focus_handler(struct window *window, > window_schedule_redraw(window); > } > > +static void > +fullscreen_handler(struct window *window, void *data) > +{ > + struct gears *gears = data; > + > + gears->fullscreen ^= 1; > + window_set_fullscreen(window, gears->fullscreen); > +} > + > static struct gears * > gears_create(struct display *display) > { > @@ -418,6 +428,7 @@ gears_create(struct display *display) > widget_set_motion_handler(gears->widget, motion_handler); > window_set_keyboard_focus_handler(gears->window, > keyboard_focus_handler); > + window_set_fullscreen_handler(gears->window, fullscreen_handler); > > window_schedule_resize(gears->window, width, height); > > -- > 1.7.11.3 > > This message and any attachments herein are confidential, intended solely for > the addressees and are SoftAtHome's ownership. Any unauthorized use or > dissemination is prohibited. If you are not the intended addressee of this > message, please cancel it immediately and inform the sender. > _______________________________________________ > wayland-devel mailing list > wayland-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/wayland-devel _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel