Switch to EGL

This commit is contained in:
dec05eba
2024-08-04 21:47:14 +02:00
parent 3a20c417cb
commit 2aa81b741c
3 changed files with 5 additions and 2 deletions

2
TODO
View File

@@ -15,3 +15,5 @@ Colorscheme should follow graphics card in use. On nvidia use nvidia green, on i
Optimize list/page when having a few items in it (dont use vector<unique_ptr<Widget>>). Optimize list/page when having a few items in it (dont use vector<unique_ptr<Widget>>).
Only redraw ui if changed (dirty state, propagate upward. Set dirty when adding widget or changing any visible properly on a widget or when event updates how the widget should be displayed). Only redraw ui if changed (dirty state, propagate upward. Set dirty when adding widget or changing any visible properly on a widget or when event updates how the widget should be displayed).
Use _NET_WM_ALLOWED_ACTIONS. Same for notifications.

View File

@@ -410,6 +410,7 @@ int main(int argc, char **argv) {
window_create_params.background_color = bg_color; window_create_params.background_color = bg_color;
window_create_params.support_alpha = true; window_create_params.support_alpha = true;
window_create_params.window_type = MGL_WINDOW_TYPE_NOTIFICATION; window_create_params.window_type = MGL_WINDOW_TYPE_NOTIFICATION;
window_create_params.render_api = MGL_RENDER_API_EGL;
mgl::Window window; mgl::Window window;
if(!window.create("gsr overlay", window_create_params)) if(!window.create("gsr overlay", window_create_params))