Changeset View
Changeset View
Standalone View
Standalone View
pointer_input.cpp
Show First 20 Lines • Show All 902 Lines • ▼ Show 20 Line(s) | 885 | { | |||
---|---|---|---|---|---|
903 | std::for_each(clients.begin(), clients.end(), setupMoveResizeConnection); | 903 | std::for_each(clients.begin(), clients.end(), setupMoveResizeConnection); | ||
904 | connect(workspace(), &Workspace::clientAdded, this, setupMoveResizeConnection); | 904 | connect(workspace(), &Workspace::clientAdded, this, setupMoveResizeConnection); | ||
905 | connect(waylandServer(), &WaylandServer::shellClientAdded, this, setupMoveResizeConnection); | 905 | connect(waylandServer(), &WaylandServer::shellClientAdded, this, setupMoveResizeConnection); | ||
906 | loadThemeCursor(Qt::ArrowCursor, &m_fallbackCursor); | 906 | loadThemeCursor(Qt::ArrowCursor, &m_fallbackCursor); | ||
907 | if (m_cursorTheme) { | 907 | if (m_cursorTheme) { | ||
908 | connect(m_cursorTheme, &WaylandCursorTheme::themeChanged, this, | 908 | connect(m_cursorTheme, &WaylandCursorTheme::themeChanged, this, | ||
909 | [this] { | 909 | [this] { | ||
910 | m_cursors.clear(); | 910 | m_cursors.clear(); | ||
911 | m_cursorsByName.clear(); | ||||
911 | loadThemeCursor(Qt::ArrowCursor, &m_fallbackCursor); | 912 | loadThemeCursor(Qt::ArrowCursor, &m_fallbackCursor); | ||
912 | updateDecorationCursor(); | 913 | updateDecorationCursor(); | ||
913 | updateMoveResize(); | 914 | updateMoveResize(); | ||
914 | // TODO: update effects | 915 | // TODO: update effects | ||
915 | } | 916 | } | ||
916 | ); | 917 | ); | ||
917 | } | 918 | } | ||
918 | m_surfaceRenderedTimer.start(); | 919 | m_surfaceRenderedTimer.start(); | ||
▲ Show 20 Lines • Show All 387 Lines • Show Last 20 Lines |