diff options
author | Chris Feng <chris.w.feng@gmail.com> | 2018-07-14T16·00+0800 |
---|---|---|
committer | Chris Feng <chris.w.feng@gmail.com> | 2018-07-14T16·00+0800 |
commit | bc5f0b3ffac4d262d4b8537baae0baf72402d079 (patch) | |
tree | 53aef68c2b48afe8c907808ad98235ece354306a /exwm.el | |
parent | 1364f80f09668a16358aa8f509266bae41d55685 (diff) |
; Use `derived-mode-p'.
Diffstat (limited to 'exwm.el')
-rw-r--r-- | exwm.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exwm.el b/exwm.el index 17f73d8ca03b..33cced44a927 100644 --- a/exwm.el +++ b/exwm.el @@ -108,7 +108,7 @@ "Reset the state of the selected window (non-fullscreen, line-mode, etc)." (interactive) (with-current-buffer (window-buffer) - (when (eq major-mode 'exwm-mode) + (when (derived-mode-p 'exwm-mode) (when (exwm-layout--fullscreen-p) (exwm-layout-unset-fullscreen)) ;; Force refresh |