Hi,
I am aware of Wayland and multiple attempts to get rid of x11 as a window system.
I am digging in its -very large- code.
I think we face a design issue for modern hardware with x11 because, as wayland advocates, letting the application do the connections to the graphic cards may lead to a speed bump.
I would like something more like a two-mode system.
When not in a 3d game / full screen:
1) a window event system, to manage clicks and send to the right app the corresponding callback pointer. But not a server. Shared memory with an event loop.
2) an app with a given and compulsory framework to manage the event like it should (no separate window manager) or send buffers to graphic cards/devices.
When in a 3d game / full screen :
Embed the event system in the game directly for speed reasons and let the app do the work. Same code.
Security:
Raises some questions.
Can you override the framework? not if the kernel/os forces you not to or detects that an action comes from an app.
Is x11 really a good guardian against potential attacks? breaches happened just look at the website.
Do they happen often? No.
This is definitely the full screen event which will choose the strategy.
Right now, let's forget about the fact that few devs would change their habits (it matters, but not right now).
I am just drawing ideas and I am seeking for arguments of why they suck (yes, I happen to love it
) and what improvement you propose.
Bye