Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Unified Diff: ui/events/platform/x11/x11_event_source.h

Issue 2057333002: X11: Wait for UnmapNotify before trying to remap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/events/platform/x11/x11_event_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/platform/x11/x11_event_source.h
diff --git a/ui/events/platform/x11/x11_event_source.h b/ui/events/platform/x11/x11_event_source.h
index 1537f6707ed7420a3f547e844540e8f4abe3b3c8..c878e172440046f6c2dfdee41ab502441c509cbe 100644
--- a/ui/events/platform/x11/x11_event_source.h
+++ b/ui/events/platform/x11/x11_event_source.h
@@ -62,6 +62,8 @@ class EVENTS_EXPORT X11EventSource {
// functions which require a mapped window.
void BlockUntilWindowMapped(XID window);
+ void BlockUntilWindowUnmapped(XID window);
+
XDisplay* display() { return display_; }
Time last_seen_server_time() const { return last_seen_server_time_; }
@@ -81,6 +83,10 @@ class EVENTS_EXPORT X11EventSource {
// Handles updates after event has been dispatched.
void PostDispatchEvent(XEvent* xevent);
+ // Block until receiving a structure notify event of |type| on |window|.
+ // Dispatch all encountered events prior to the one we're blocking on.
+ void BlockOnWindowStructureEvent(XID window, int type);
+
private:
static X11EventSource* instance_;
« no previous file with comments | « no previous file | ui/events/platform/x11/x11_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698