Changeset View
Changeset View
Standalone View
Standalone View
main.h
Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Line(s) | 57 | public: | |||
---|---|---|---|---|---|
99 | 99 | | |||
100 | void setupTranslator(); | 100 | void setupTranslator(); | ||
101 | void setupCommandLine(QCommandLineParser *parser); | 101 | void setupCommandLine(QCommandLineParser *parser); | ||
102 | void processCommandLine(QCommandLineParser *parser); | 102 | void processCommandLine(QCommandLineParser *parser); | ||
103 | 103 | | |||
104 | xcb_timestamp_t x11Time() const { | 104 | xcb_timestamp_t x11Time() const { | ||
105 | return m_x11Time; | 105 | return m_x11Time; | ||
106 | } | 106 | } | ||
107 | void setX11Time(xcb_timestamp_t timestamp) { | 107 | enum class TimestampUpdate { | ||
108 | if (timestamp > m_x11Time) { | 108 | OnlyIfLarger, | ||
109 | Always | ||||
110 | }; | ||||
111 | void setX11Time(xcb_timestamp_t timestamp, TimestampUpdate force = TimestampUpdate::OnlyIfLarger) { | ||||
112 | if (timestamp > m_x11Time || force == TimestampUpdate::Always) { | ||||
109 | m_x11Time = timestamp; | 113 | m_x11Time = timestamp; | ||
110 | } | 114 | } | ||
111 | } | 115 | } | ||
112 | void updateX11Time(xcb_generic_event_t *event); | 116 | void updateX11Time(xcb_generic_event_t *event); | ||
113 | void createScreens(); | 117 | void createScreens(); | ||
114 | 118 | | |||
115 | static void setCrashCount(int count); | 119 | static void setCrashCount(int count); | ||
116 | static bool wasCrash(); | 120 | static bool wasCrash(); | ||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |