chiark / gitweb /
Moved to mgLib.
authormdw <mdw>
Fri, 11 Dec 1998 09:50:58 +0000 (09:50 +0000)
committermdw <mdw>
Fri, 11 Dec 1998 09:50:58 +0000 (09:50 +0000)
mdwfocus.c [deleted file]
mdwfocus.h [deleted file]

diff --git a/mdwfocus.c b/mdwfocus.c
deleted file mode 100644 (file)
index dced194..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*-c-*-
- *
- * $Id: mdwfocus.c,v 1.1 1998/12/03 00:39:27 mdw Exp $
- *
- * Tell my hacked `fvwm' to focus this window
- *
- * (c) 1998 Straylight/Edgeware
- */
-
-/*----- Licensing notice --------------------------------------------------* 
- *
- * This file is part of the Edgeware X tools collection.
- *
- * X tools 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 2 of the License, or
- * (at your option) any later version.
- * 
- * X tools 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.
- * 
- * You should have received a copy of the GNU General Public License
- * along with X tools; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: mdwfocus.c,v $
- * Revision 1.1  1998/12/03 00:39:27  mdw
- * Handling for my weird focus rules.
- *
- */
-
-/*----- Header files ------------------------------------------------------*/
-
-#include <gtk/gtk.h>
-#include <gdk/gdk.h>
-
-#include <X11/Xatom.h>
-#include <X11/Xlib.h>
-
-/*----- Main code ---------------------------------------------------------*/
-
-/* --- @mdwfocus@ --- *
- *
- * Arguments:  @GtkWidget *w@ = widget to mark as must-be-focussed.
- *
- * Returns:    ---
- *
- * Use:                Marks a window as wanting to have focus `anyway', even if
- *             normally disabled.  This only works with my hacked `fvwm'
- *             version.
- */
-
-void mdwfocus(GtkWidget *w)
-{
-  static GdkAtom a = 0;
-  unsigned char c = 1;
-
-  if (!a)
-    a = gdk_atom_intern("FVWM_GIVE_ME_FOCUS", 0);
-  gdk_property_change(w->window, a, XA_CARDINAL, 8,
-                     GDK_PROP_MODE_REPLACE, &c, 1);
-}
-
-/*----- That's all, folks -------------------------------------------------*/
diff --git a/mdwfocus.h b/mdwfocus.h
deleted file mode 100644 (file)
index b04af46..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/* -*-c-*-
- *
- * $Id: mdwfocus.h,v 1.1 1998/12/03 00:39:27 mdw Exp $
- *
- * Tell my hacked `fvwm' to focus this window
- *
- * (c) 1998 Straylight/Edgeware
- */
-
-/*----- Licensing notice --------------------------------------------------* 
- *
- * This file is part of the Edgeware X tools collection.
- *
- * X tools 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 2 of the License, or
- * (at your option) any later version.
- * 
- * X tools 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.
- * 
- * You should have received a copy of the GNU General Public License
- * along with X tools; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: mdwfocus.h,v $
- * Revision 1.1  1998/12/03 00:39:27  mdw
- * Handling for my weird focus rules.
- *
- */
-
-#ifndef MDWFOCUS_H
-#define MDWFOCUS_H
-
-#ifdef __cplusplus
-  extern "C" {
-#endif
-
-/*----- Header files ------------------------------------------------------*/
-
-#include <gtk/gtk.h>
-
-/*----- Functions provided ------------------------------------------------*/
-
-/* --- @mdwfocus@ --- *
- *
- * Arguments:  @GtkWidget *w@ = widget to mark as must-be-focussed.
- *
- * Returns:    ---
- *
- * Use:                Marks a window as wanting to have focus `anyway', even if
- *             normally disabled.  This only works with my hacked `fvwm'
- *             version.
- */
-
-extern void mdwfocus(GtkWidget */*w*/);
-
-/*----- That's all, folks -------------------------------------------------*/
-
-#ifdef __cplusplus
-  }
-#endif
-
-#endif