[Misc] Set X Wait Timeout to nil only on GNU systems

As it seems, setting this variable to nil causes an Windows Emacs to busy wait
for input with no time delay between two cycles.  This causes heavy load on the
machine and a non-reacting Emacs.
This commit is contained in:
Daniel - 2019-01-25 21:36:22 +01:00
parent 51d58a7107
commit 7d666e146d
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 2 deletions

View File

@ -351,8 +351,10 @@
delete-trailing-lines nil delete-trailing-lines nil
x-underline-at-descent-line t x-underline-at-descent-line t
search-whitespace-regexp "[ \t\r\n]+" search-whitespace-regexp "[ \t\r\n]+"
visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow) visual-line-fringe-indicators '(left-curly-arrow right-curly-arrow))
x-wait-for-event-timeout nil)
(when (memq system-type '(gnu gnu/linux gnu/kfreebsd))
(setq x-wait-for-event-timeout nil))
(when on-windows (when on-windows
;; treat memory for display time ... but hey, this is Windows, memory doesnt ;; treat memory for display time ... but hey, this is Windows, memory doesnt