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