mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 07:15:19 +01:00
[PR #1109] [CLOSED] fix: pass the correct GDK Monitor #1153
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#1153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/ironbar/pull/1109
Author: @da-x
Created: 8/6/2025
Status: ❌ Closed
Base:
master← Head:correct-gdk-monitor📝 Commits (1)
111d5d5fix: pass the correct GDK Monitor📊 Changes
5 files changed (+104 additions, -9 deletions)
View changed files
📝
src/clients/wayland/mod.rs(+1 -1)📝
src/clients/wayland/wl_output.rs(+2 -0)➕
src/clients/wayland/wl_output/list.rs(+84 -0)📝
src/ipc/server/mod.rs(+2 -2)📝
src/main.rs(+15 -6)📄 Description
On dual monitor scaling configuration, seems that obtaining the Monitor position using GDK yields the wrong results - both bars end up on the same monitor.
We can use
monitor(idx: i32)to obtain the correct one. However the Rust bindings for GdkMonitor are not complete enough to let us call the function that provides the connector name, therefore we need to query smithay to get the vector and from the vector guess the index.Fixes #1042.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.