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

Rohit Nandan pulkitnandan at gmail.com
Thu May 29 23:54:44 PDT 2014


Niether window_size gets updated not geometry of struct window after
configure event or callback.
Is their no way to know updated size or resolution.


On Tue, May 27, 2014 at 8:14 PM, Jasper St. Pierre <jstpierre at mecheye.net>
wrote:

> 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/20140530/a4660abf/attachment.html>


More information about the wayland-devel mailing list