Smithay / wayland-window

A simple window-decorations library built on top of wayland-client.
MIT License
18 stars 11 forks source link

Full rework of the decoration system #24

Closed elinorbgr closed 6 years ago

elinorbgr commented 6 years ago

This switches the control over the base surface, the contents now being a subsurface over our parent surface.

This also re-organises the internal structure, splitting things into better organized modules.

Also adds buttons for minimize/maximize/close.

newpavlov commented 6 years ago

At first glance it fixes resizing issue described in the #23, but window resizing became much less responsive. Also closing window using border button crashes Gnome shell... Although it probably should be reported as a Gnome bug. Closing from overview mode works fine.

elinorbgr commented 6 years ago

I am aware of the responsiveness issue, the border are currently drawn very inefficiently. I'll try to improve that.

Now, the crash of gnome-shell itself is... unexpected? Though it's likely a gnome-shell bug indeed.

elinorbgr commented 6 years ago

Okay, now the drawing speed of the borders should be much better.

The example is still kinda slow, but this is because drawing this huge color gradient in CPU is slow. Commenting out the window.resize(...) line makes a snappy window with no content.