Skip to content

Commit

Permalink
Should be the other way around...
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Nov 15, 2024
1 parent 713568a commit 2b2ae89
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changes/gdk-monitor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tao": "patch"
---

Expose raw gdk monitor through `MonitorHandleExtUnix::gdk_monitor`
5 changes: 0 additions & 5 deletions .changes/gtk-monitor.md

This file was deleted.

6 changes: 3 additions & 3 deletions src/platform/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,13 +286,13 @@ unsafe extern "C" fn x_error_callback(

/// Additional methods on `MonitorHandle` that are specific to Unix.
pub trait MonitorHandleExtUnix {
/// Returns the raw handle of the monitor - `gtk::Monitor`.
fn gtk_monitor(&self) -> &gtk::Monitor;
/// Returns the raw handle of the monitor - `gdk::Monitor`.
fn gdk_monitor(&self) -> &gtk::gdk::Monitor;
}

impl MonitorHandleExtUnix for MonitorHandle {
#[inline]
fn gtk_monitor(&self) -> &gtk::Monitor {
fn gdk_monitor(&self) -> &gtk::gdk::Monitor {
self.monitor
}
}

0 comments on commit 2b2ae89

Please sign in to comment.