[waffle] [PATCH 07/10] waffle: add full screen window request

Emil Velikov emil.l.velikov at gmail.com
Fri Apr 10 05:26:17 PDT 2015


On 09/04/15 22:48, Chad Versace wrote:
> On Mon 30 Mar 2015, Frank Henigman wrote:
>> You can now put WAFFLE_WINDOW_FULLSCREEN in the attribute list passed
>> to waffle_window_create2() and get a full screen window.
>> Only glx and x11_egl implemented so far.
> 
> I like the idea of WAFFLE_WINDOW_FULLSCREEN. Comments below.
> 
>> Signed-off-by: Frank Henigman <fjhenigman at google.com>
>> ---
>> include/waffle/waffle.h        |  1 +
>> src/waffle/api/waffle_window.c | 69
>> ++++++++++++++++++++++--------------------
>> src/waffle/glx/glx_window.c    | 12 ++++++--
>> src/waffle/xegl/xegl_window.c  | 13 ++++++--
>> 4 files changed, 59 insertions(+), 36 deletions(-)
>>
>> diff --git a/include/waffle/waffle.h b/include/waffle/waffle.h
>> index 297a487..df0218e 100644
>> --- a/include/waffle/waffle.h
>> +++ b/include/waffle/waffle.h
>> @@ -172,6 +172,7 @@ enum waffle_enum {
>>
>>     WAFFLE_WINDOW_WIDTH                                         = 0x0310,
>>     WAFFLE_WINDOW_HEIGHT                                        = 0x0311,
>> +    WAFFLE_WINDOW_FULLSCREEN                                    =
>> 0x0312,
> 
> wcore_enum_to_string must be taught about the new enum.
> 
Hi Chad,

Should one wrap the new enum in #if WAFFLE_API_VERSION >= 0x1070 ? Or it
only makes sense for new entry points into the waffle library ?
Considering that WAFFLE_WINDOW_{WIDTH,HEIGHT} went in without the API
guard, I'm leaning towards the latter.

...
> Anyway... I approve of the way that this patch handles non-X11
> platforms. I was
> mostly just complaining to myself that I haven't yet written a query API.
Speaking of which what is the status of waffle_display_print_info() ?
Mostly curious than anything else.

Thanks
Emil


More information about the waffle mailing list