Skip to content

Commit fb7c757

Browse files
Maurizio Mongechristian-rauch
authored andcommitted
fix compilation with CLang
1 parent c66f9df commit fb7c757

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/pango_windowing/src/display_x11.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,8 @@ void X11Window::ProcessEvents()
431431
{
432432
const int button = ev.xbutton.button-1;
433433
MouseSignal(MouseEvent{
434-
(float)ev.xbutton.x, (float)ev.xbutton.y,
435-
GetEventFlagsFromXState(ev.xkey.state),
434+
WindowInputEvent{(float)ev.xbutton.x, (float)ev.xbutton.y,
435+
GetEventFlagsFromXState(ev.xkey.state)},
436436
button, ev.xbutton.type == ButtonPress
437437
});
438438
break;
@@ -499,8 +499,8 @@ void X11Window::ProcessEvents()
499499

500500
if(key >=0) {
501501
KeyboardSignal(KeyboardEvent{
502-
(float)ev.xkey.x, (float)ev.xkey.y,
503-
GetEventFlagsFromXState(ev.xkey.state),
502+
WindowInputEvent{(float)ev.xkey.x, (float)ev.xkey.y,
503+
GetEventFlagsFromXState(ev.xkey.state)},
504504
(unsigned char)key, ev.type == KeyPress
505505
});
506506
}

0 commit comments

Comments
 (0)