refactor: precache atoms in window-state-watcher (#27575)

This commit is contained in:
Charles Kerr 2021-02-02 11:50:32 -06:00 committed by GitHub
parent 6b744171b1
commit 72127b2916
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 17 deletions

View file

@ -26,7 +26,11 @@ class WindowStateWatcher : public x11::EventObserver {
NativeWindowViews* window_;
gfx::AcceleratedWidget widget_;
const x11::Atom window_state_atom_;
const x11::Atom net_wm_state_atom_;
const x11::Atom net_wm_state_hidden_atom_;
const x11::Atom net_wm_state_maximized_vert_atom_;
const x11::Atom net_wm_state_maximized_horz_atom_;
const x11::Atom net_wm_state_fullscreen_atom_;
DISALLOW_COPY_AND_ASSIGN(WindowStateWatcher);
};