query fullscreen size to pass that value in callback calling glviewport.
Rohit Nandan
pulkitnandan at gmail.com
Fri May 30 06:50:51 PDT 2014
Exactly it was.
I placed my gl & egl resize calback after tooglescreen when event recieved
is key F11. Which was never called.
Corrected it by placing it in resize function.
Thanks
Rohit Nandan
On Fri, May 30, 2014 at 5:17 PM, Jasper St. Pierre <jstpierre at mecheye.net>
wrote:
> That sounds like a bug in your window system library. The compositor will
> send you the updated size in the configure event.
>
>
> On Fri, May 30, 2014 at 2:54 AM, Rohit Nandan <pulkitnandan at gmail.com>
> wrote:
>
>> 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
>>>
>>
>>
>
>
> --
> Jasper
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140530/5ba13890/attachment.html>
More information about the wayland-devel
mailing list