refactor: precache atoms in window-state-watcher (#27575)
This commit is contained in:
parent
6b744171b1
commit
72127b2916
2 changed files with 22 additions and 17 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue