Skip to content

Commit

Permalink
Remove detect GdkWaylandDisplay or GdkX11Display
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Oct 19, 2022
1 parent 2146606 commit f2f0d85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions eaf.el
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ A hashtable, key is url and value is title.")
;; Make sure EAF application scale support 4k screen.
(setenv "QT_SCALE_FACTOR" "1")

;; In wayland, we use
;; In wayland, we use
(cond
((eaf-emacs-running-in-wayland-native)
(setenv "QT_FONT_DPI" (if (= (frame-scale-factor) 2) "192" "96")))
Expand Down Expand Up @@ -1023,9 +1023,7 @@ provide at least one way to let everyone experience EAF. ;)"
))

(defun eaf-emacs-running-in-wayland-native ()
(and (eq window-system 'pgtk)
(fboundp 'pgtk-backend-display-class)
(string-equal (pgtk-backend-display-class) "GdkWaylandDisplay")))
(eq window-system 'pgtk))

(eval-when-compile
(when (eaf-emacs-not-use-reparent-technology)
Expand Down

0 comments on commit f2f0d85

Please sign in to comment.