Skip to content

Exwm replace support #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions xcb-icccm.el
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
(defconst xcb:icccm:-atoms
'(UTF8_STRING COMPOUND_TEXT TEXT C_STRING MANAGER
WM_PROTOCOLS WM_TAKE_FOCUS WM_DELETE_WINDOW
WM_STATE WM_CHANGE_STATE)
WM_STATE WM_CHANGE_STATE WM_S0)
"Atoms involved in ICCCM.")

(dolist (atom xcb:icccm:-atoms)
Expand All @@ -60,11 +60,14 @@

This method must be called before using any other method in this module."
(when (or force (not xcb:Atom:WM_PROTOCOLS))
(xcb:icccm:intern-atoms obj xcb:icccm:-atoms force)))
(let ((atoms xcb:icccm:-atoms))
(dotimes (i (1- (x-display-screens)))
(push (intern (format "WM_S%d" (1+ i))) atoms))
(xcb:icccm:intern-atoms obj atoms force))))

(cl-defmethod xcb:icccm:intern-atoms ((obj xcb:connection) atoms
&optional force)
"Intern the X atoms listed in the list AOTMS.
"Intern the X atoms listed in the list ATOMS.

The value of these atoms will be available in `xcb:Atom' namespace."
(dolist (atom atoms)
Expand Down