UI rewrite 3rd attempt
This commit is contained in:
parent
c9fd1b1585
commit
1f5697326c
48 changed files with 2155 additions and 6190 deletions
|
|
@ -386,8 +386,10 @@ void Device::PointerListenerHandleEnter(void* data, wl_pointer* wl_pointer, std:
|
|||
Device::wlPointer = wl_pointer;
|
||||
for(Window* window : windows) {
|
||||
if(window->surface == surface) {
|
||||
window->lastPointerSerial_ = serial;
|
||||
if(window->cursorSurface != nullptr) {
|
||||
wl_pointer_set_cursor(wl_pointer, serial, window->cursorSurface, 0, 0);
|
||||
wl_pointer_set_cursor(wl_pointer, serial, window->cursorSurface,
|
||||
window->cursorHotspotX_, window->cursorHotspotY_);
|
||||
}
|
||||
focusedWindow = window;
|
||||
window->onMouseEnter.Invoke();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue