Comments (1)
I found a solution to fix this issue may give some help to you:
First set a hit test function to embedded window control.
SDL_SetWindowHitTest(m_hWnd, SDL_X11_HitTest, nullptr);
Since it's a embedded control, SDL_X11_HitTest always returns SDL_HITTEST_NORMAL
then modify code in SDL_x11mouse.c:
void X11_SetHitTestCursor(SDL_HitTestResult rc)
{
X11_ShowCursor(sys_cursors[rc]);
/*if (rc == SDL_HITTEST_NORMAL || rc == SDL_HITTEST_DRAGGABLE) {
SDL_SetCursor(NULL);
} else {
X11_ShowCursor(sys_cursors[rc]);
}*/
}
Now whenever cursor hover over embedded control, it restores to default!
from sdl.
Related Issues (20)
- atomic pointer symbol naming HOT 1
- SDL3 Request: SDL_LogOutputRaw (fputs equivalent)
- SDL2: Mac inaccurate display count after disconnection / laptop close
- Macro option to hide OpenGL <=1.3 function definitions in SDL_opengl.h? HOT 1
- Logic issues with functions returning SDL_bool HOT 3
- Sanity check for CMake Configures HOT 1
- EGL Surface not set for foreign X11 windows
- audio_resampleLoss failure in testautomation-no-simd HOT 36
- Suggestion: Remove SDL_SCALEMODE_BEST HOT 1
- GPU documentation unmangling
- Error message is not being freed from memory HOT 5
- GPU: vsync is always enabled HOT 4
- testyuv has incorrect colors when converting to RGB for texture upload HOT 3
- testwm shows no text HOT 3
- GPU: test code needs command line parameters to select GPU driver HOT 1
- GPU: renderer memory leaks HOT 3
- GPU: D3D12 resource memory management
- wiki problem, SDL_SetAudioStreamGetCallback HOT 1
- Compiler warnings with system locale set to JP. HOT 8
- CI doesn't show memory leak call stacks HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdl.