mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-23 10:59:45 +00:00
Fix the issues found while reviewing the Wayland backend
Report the errors the display read loop can fail with instead of dispatching events on a dead connection, and release exactly the keys the user really holds: BaseInput::pressedKeys is never erased, so the previous list sent key releases for keys that were never pressed. The bar is the only owner of the pointer edges now, the fullscreen state comes from the compositor, and the decorations are enabled once, with the window geometry published again. The initialization failure paths destroy their resources exactly once, the screen state is reset on teardown, the clipboard write does not block the frame loop on a slow reader, and the gsettings fallback is not retried after it failed. The stretch blit of the last frame is gone: composeFrame() already paints the cached content.
This commit is contained in:
parent
4d1b4a1638
commit
c635549892
9 changed files with 206 additions and 137 deletions
|
|
@ -26,17 +26,16 @@
|
|||
#include <memory>
|
||||
#include <optional>
|
||||
#include <poll.h>
|
||||
#include <stack>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
struct GlStateGuard {
|
||||
GLint values[16] {};
|
||||
GLint attribs[3][7] {};
|
||||
GLint attribs[3][6] {};
|
||||
GLint viewport[4] {};
|
||||
GLint colorMask[4] {};
|
||||
GLboolean flags[6] {};
|
||||
GLboolean flags[4] {};
|
||||
GLboolean attribFlags[3] {};
|
||||
GlStateGuard();
|
||||
~GlStateGuard();
|
||||
|
|
@ -100,8 +99,6 @@ void ignore_event(Args...) {
|
|||
void dispatch_events(int timeoutMs);
|
||||
int keycode_from_keysym(xkb_keysym_t sym);
|
||||
|
||||
extern bool serverDecorations;
|
||||
|
||||
void zxdg_decoration_configure(
|
||||
void*, zxdg_toplevel_decoration_v1*, uint32_t mode
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue