diff options
Diffstat (limited to 'examples/x-window-focus')
-rw-r--r-- | examples/x-window-focus | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/examples/x-window-focus b/examples/x-window-focus index 930044a..08e058f 100644 --- a/examples/x-window-focus +++ b/examples/x-window-focus @@ -6,20 +6,21 @@ # only been tested on twm and xmonad. -# Copyright © 2014 Mattias Andrée (m@maandree.se) +# ISC License # -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. +# © 2014, 2025 Mattias Andrée <m@maandree.se> # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# Permission to use, copy, modify, and/or distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. # -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # This requires that python3-xlib is installed. @@ -30,7 +31,7 @@ import threading import Xlib.display # TODO: cannot re-exec when this script is used -# TODO: does not wait with toggling of redshift is froozen +# TODO: does not wait with toggling if redshift is frozen def x_window_focus_thread_function(proc): @@ -124,4 +125,3 @@ def start_daemon_threads(proc, sock): thread = threading.Thread(target = x_window_focus_thread_function, args = (proc,)) thread.setDaemon(True) thread.start() - |