diff options
| author | Juanma Barranquero | 2013-07-25 02:37:56 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2013-07-25 02:37:56 +0200 |
| commit | cb3a56d2389eb6fe0635bd28b863c3a0734279c6 (patch) | |
| tree | 2082d17f52abc0ca9f2fa8f939d0b015313c9144 /lisp | |
| parent | 8121f08950ca36647a6dfa32d02be574b253d9df (diff) | |
| download | emacs-cb3a56d2389eb6fe0635bd28b863c3a0734279c6.tar.gz emacs-cb3a56d2389eb6fe0635bd28b863c3a0734279c6.zip | |
lisp/desktop.el: Add workaround for bug#14949.
(desktop--make-frame): Do not pass the `fullscreen' parameter to
modify-frame-parameters if the value has not changed.
(desktop--make-frame): On cl-delete-if call, check parameter name,
not full parameter.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/desktop.el | 8 |
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 587c9b921c9..85c68323cfe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2013-07-25 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * desktop.el (desktop--make-frame): Do not pass the `fullscreen' | ||
| 4 | parameter to modify-frame-parameters if the value has not changed; | ||
| 5 | this is a workaround for bug#14949. | ||
| 6 | (desktop--make-frame): On cl-delete-if call, check parameter name, | ||
| 7 | not full parameter. | ||
| 8 | |||
| 1 | 2013-07-24 Juanma Barranquero <lekktu@gmail.com> | 9 | 2013-07-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 10 | ||
| 3 | * desktop.el (desktop-restoring-frames-p): Return a true boolean. | 11 | * desktop.el (desktop-restoring-frames-p): Return a true boolean. |
diff --git a/lisp/desktop.el b/lisp/desktop.el index f4622ae4961..291f28a79db 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -1289,7 +1289,7 @@ its window state. Internal use only." | |||
| 1289 | (visible (assq 'visibility filtered-cfg))) | 1289 | (visible (assq 'visibility filtered-cfg))) |
| 1290 | (setq filtered-cfg (cl-delete-if (lambda (p) | 1290 | (setq filtered-cfg (cl-delete-if (lambda (p) |
| 1291 | (memq p '(visibility fullscreen width height))) | 1291 | (memq p '(visibility fullscreen width height))) |
| 1292 | filtered-cfg)) | 1292 | filtered-cfg :key #'car)) |
| 1293 | (when width | 1293 | (when width |
| 1294 | (setq filtered-cfg (append `((user-size . t) (width . ,width)) | 1294 | (setq filtered-cfg (append `((user-size . t) (width . ,width)) |
| 1295 | filtered-cfg))) | 1295 | filtered-cfg))) |
| @@ -1302,7 +1302,11 @@ its window state. Internal use only." | |||
| 1302 | 1302 | ||
| 1303 | ;; Time to select or create a frame an apply the big bunch of parameters | 1303 | ;; Time to select or create a frame an apply the big bunch of parameters |
| 1304 | (if (setq frame (desktop--select-frame display filtered-cfg)) | 1304 | (if (setq frame (desktop--select-frame display filtered-cfg)) |
| 1305 | (modify-frame-parameters frame filtered-cfg) | 1305 | (modify-frame-parameters frame |
| 1306 | (if (eq (frame-parameter frame 'fullscreen) fullscreen) | ||
| 1307 | ;; Workaround for bug#14949 | ||
| 1308 | (assq-delete-all 'fullscreen filtered-cfg) | ||
| 1309 | filtered-cfg)) | ||
| 1306 | (setq frame (make-frame-on-display display filtered-cfg))) | 1310 | (setq frame (make-frame-on-display display filtered-cfg))) |
| 1307 | 1311 | ||
| 1308 | ;; Let's give the finishing touches (visibility, tool-bar, maximization). | 1312 | ;; Let's give the finishing touches (visibility, tool-bar, maximization). |