query fullscreen size to pass that value in callback calling glviewport.

Jasper St. Pierre jstpierre at mecheye.net
Tue May 27 07:44:06 PDT 2014


The window size comes in the "configure" event, which is similar to X11's
ConfigureNotify. See:

http://cgit.freedesktop.org/wayland/weston/tree/clients/simple-egl.c#n269

If you're still using wl_shell_surface, then see:

http://cgit.freedesktop.org/wayland/weston/tree/clients/simple-egl.c?h=1.4#n272


On Tue, May 27, 2014 at 4:51 AM, Rohit Nandan <pulkitnandan at gmail.com>wrote:

> I have a app with all opengl and egl function calls which is backed up by
> a window system library. In wayland case I have added fullscreen option
> using F11 handler in window system library exactly like simple-egl but here
> my redraw function is outside that library so glviewport and app size is
> not modified. In case of X11, Xevent has has event.xconfigure.width/height
> which can be passed to resize calllback of gl app to resize drawing as
> well.
>
> How do one achieve this in wayland case to query current window width &
> hieght. Simple-egl doenot set its anywhere when in fullscreen mode. or any
> way to query max resolution?
>
> Thanks
> Rohit Nandan
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>


-- 
  Jasper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140527/5f812c9b/attachment.html>


More information about the wayland-devel mailing list