Originally posted by TheBlackCat
View Post
If 50% of the work when creating a app is spent on the display manager your probably doing something wrong or linux is a way wrost of a shape then i thought.
My understanding is the display manager is useless all you require from the display manager is the window position, drag events, resizes, mouse/keyboard input and maybe display resolution correct??
the display should not even try to mess with whats inside your app (should not draw anything in your app).
I will read that article you sent more detailed when i have a bit more "study time" but all these things can and should be done by the toolkit quiet easly.
a stupid example for creating a window:
APP:
function create_window ();
call_toolkit_api (My_App_Name)
end
The toolkit:
Funtion call_toolkitapi (name)
if mir
call_mir_api_to_create_window
give_it_a_name ("name")
if wayland
call_wayland_api_to_create_window
give_it_a_name ("name")
if x11
call_x11_api_to_create_window
give_it_a_name ("name")
else
print ("sorry this display manager is not supported")
end
This is how i understand how it works (kinda)...
i will study it and maybe even try can create an app for linux just to have some facts.
Comment