aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-01-03 01:57:30 +0100
committerdec05eba <dec05eba@protonmail.com>2025-01-03 01:57:30 +0100
commit2a07c741121e737aec9bdd5214ba66efbf252da0 (patch)
treea717b3328ec4bfcf87d7aa7281261f3e42519537 /include
parentf526c175f6e2b852c8fe19b666505cfeac36b667 (diff)
Fix some application (using xi) receiving mouse input when UI is shown
Diffstat (limited to 'include')
-rw-r--r--include/Overlay.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/Overlay.hpp b/include/Overlay.hpp
index 50a38cd..596d0fc 100644
--- a/include/Overlay.hpp
+++ b/include/Overlay.hpp
@@ -65,7 +65,6 @@ namespace gsr {
void grab_mouse_and_keyboard();
void xi_setup_fake_cursor();
void xi_grab_all_devices();
- void xi_warp_pointer(mgl::vec2i position);
void close_gpu_screen_recorder_output();
@@ -124,7 +123,6 @@ namespace gsr {
mgl::Texture cursor_texture;
mgl::Sprite cursor_sprite;
mgl::vec2i cursor_hotspot;
- bool cursor_drawn = false;
WindowTexture window_texture;
PageStack page_stack;
@@ -166,5 +164,8 @@ namespace gsr {
bool do_exit = false;
std::string exit_reason;
+
+ mgl::vec2i window_size = { 1280, 720 };
+ mgl::vec2i window_pos = { 0, 0 };
};
} \ No newline at end of file