Skip to content

Commit 6d3ad17

Browse files
committed
fix(x11rb): new deps have now different enum values
1 parent 2d34eb5 commit 6d3ad17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/linux/x11_api.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl X11Api {
9292
let (_, _, width, height) = self.get_window_geometry(&window_id)?;
9393
if width > 1 && height > 1 {
9494
let attr = conn.get_window_attributes(window)?.reply()?;
95-
if let MapState::Viewable = attr.map_state {
95+
if let MapState::VIEWABLE = attr.map_state {
9696
result.push(window as WindowId);
9797
} else {
9898
debug!(
@@ -166,7 +166,7 @@ impl PlatformApi for X11Api {
166166
.conn
167167
// NOTE: x and y are not the absolute coordinates but relative to the windows dimensions, that is why 0, 0
168168
.get_image(
169-
ImageFormat::ZPixmap,
169+
ImageFormat::Z_PIXMAP,
170170
window_id as Drawable,
171171
x,
172172
y,
@@ -433,7 +433,7 @@ mod test {
433433
for win in tree.children {
434434
let attr = conn.get_window_attributes(win)?.reply()?;
435435

436-
if let MapState::Viewable = attr.map_state {
436+
if let MapState::VIEWABLE = attr.map_state {
437437
let geometry = conn.get_geometry(win)?.reply()?;
438438

439439
let class = conn

0 commit comments

Comments
 (0)