Commit Graph

3 Commits (master)

Author SHA1 Message Date
Vlad Zahorodnii 8a788b71ca Slightly improve code readability
The compiler suggests us to add some parenthesis in order to improve
code readability.
2020-09-09 17:05:34 +03:00
Vlad Zahorodnii e5dd5b6a77 Replace some if statements with a switch statement
The switch case statement allows the compiler to optimize code. More
specifically, if the values are densely packed, then the compiler may
generate a jump table. The switch statement also looks cleaner.

As for the if statements in adjustWorkArea(), they were overlooked by
me after LayerSurfaceV1Interface::exclusiveEdge() had been introduced.
2020-09-09 13:51:08 +00:00
Vlad Zahorodnii d3cca65d39 Implement the layer-shell v1 protocol
The layer-shell protocol allows wayland clients to create surfaces that
can be used for building desktop environment components such as panels,
notifications, etc.

The support for the plasma-shell protocol will be dropped once plasma in
all its entirety is ported to the layer-shell protocol.
2020-09-03 18:11:44 +00:00