File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ impl X11Api {
92
92
let ( _, _, width, height) = self . get_window_geometry ( & window_id) ?;
93
93
if width > 1 && height > 1 {
94
94
let attr = conn. get_window_attributes ( window) ?. reply ( ) ?;
95
- if let MapState :: Viewable = attr. map_state {
95
+ if let MapState :: VIEWABLE = attr. map_state {
96
96
result. push ( window as WindowId ) ;
97
97
} else {
98
98
debug ! (
@@ -166,7 +166,7 @@ impl PlatformApi for X11Api {
166
166
. conn
167
167
// NOTE: x and y are not the absolute coordinates but relative to the windows dimensions, that is why 0, 0
168
168
. get_image (
169
- ImageFormat :: ZPixmap ,
169
+ ImageFormat :: Z_PIXMAP ,
170
170
window_id as Drawable ,
171
171
x,
172
172
y,
@@ -433,7 +433,7 @@ mod test {
433
433
for win in tree. children {
434
434
let attr = conn. get_window_attributes ( win) ?. reply ( ) ?;
435
435
436
- if let MapState :: Viewable = attr. map_state {
436
+ if let MapState :: VIEWABLE = attr. map_state {
437
437
let geometry = conn. get_geometry ( win) ?. reply ( ) ?;
438
438
439
439
let class = conn
You can’t perform that action at this time.
0 commit comments