Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disables mouse event suppression on macOS when the mouse is hidden and moved #602

Merged
merged 3 commits into from
Jan 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions internal/c/libqb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28826,9 +28826,8 @@ int main(int argc, char *argv[]) {
singlespace = qbs_new_cmem(1, 0);
singlespace->chr[0] = 32;

// store _CWD$ for recall using _STARTDIR$ in g_startDir
g_startDir = qbs_new(0, 0);
qbs_set(g_startDir, func__cwd());
// Store _CWD$ for recall using _STARTDIR$
FS_SaveStartDirectory();

// switch to directory of this EXE file
// http://stackoverflow.com/questions/1023306/finding-current-executables-path-without-proc-self-exe
Expand Down
4 changes: 1 addition & 3 deletions internal/c/libqb/include/filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@

struct qbs;

/// @brief This is a global variable that is set on startup and holds the directory that was current when the program was loaded
extern qbs *g_startDir;

void FS_SaveStartDirectory();
bool FS_DirectoryExists(const char *path);
bool FS_FileExists(const char *path);

Expand Down
5 changes: 5 additions & 0 deletions internal/c/libqb/include/mac-mouse-support.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
void macMouseInit();
void macMouseDone();
void macMouseUpdatePosition(int x, int y);
void macMouseAssociateMouseAndMouseCursorPosition(bool connected);
#else
static inline void macMouseInit() {}

Expand All @@ -13,4 +14,8 @@ static inline void macMouseUpdatePosition(int x, int y) {
(void)x;
(void)y;
}

static inline void macMouseAssociateMouseAndMouseCursorPosition(bool connected) {
(void)connected;
}
#endif
Loading