Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

get-display-left-top-inset returns non-zero offset for monitor 0 on linux

Đang mở
#223 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
linux
Lĩnh vực
desktop, operating-systems

Hướng nghiên cứu

Bắt đầu với API racket/gui get-display-left-top-inset và tái hiện trên Linux đầu ra monitor-0 được cung cấp bằng snippet get-display-info. So sánh kết quả với tài liệu được liên kết và bố cục màn hình, sau đó xác nhận rằng offset khác không được báo cáo được xử lý nhất quán cho monitor 0.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Following and investigation into tooltips being misplaced in https://github.com/alex-hhh/gui-widget-mixins/issues/3, we determined that the underlying issue is that for some reason on my system I have a non-zero offsets when calling get-display-left-top-inset for monitor zero. This is at variance with the docs.

(require racket/gui)
(get-display-left-top-inset #:monitor 0)
-1200
-370

The full display info is '(linux cs "8.0.0.11" 2 (0 1920 1080 -1200 -370) (1 1200 1920 0 0)) when running

(begin
  (require racket/gui)
  (define (get-display-info)
    (append (list (system-type 'os*) (system-type 'gc) (version) (get-display-count))
            (for/list ([monitor (in-range (get-display-count))])
              (let-values ([(x y) (get-display-size #:monitor monitor)]
                           [(dx dy) (get-display-left-top-inset #:monitor monitor)])
                (list
                 monitor
                 x y dx dy)))))
  (get-display-info))

See also this thread in slack https://racket.slack.com/archives/C06V96CKX/p1618503646014800.

Here is the monitor layout if it helps.
mon-0
mon-1

Ngôn ngữ chính
Racket
Star
68
Fork
83
Merge trung bình
9 ngày 8 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của racket/gui

Tất cả issue của racket/gui

Issue tương tự

Thêm issue về Desktop Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.