[
Thread Prev][
Thread Next] >
Date Index
>
Thread Index
Re: [wmx] cleaner alt-drag patch FINAL (?)
Teemu Voipio -
Mon Feb 11 18:05:15 2002
On Mon, Feb 11, 2002 at 06:03:41PM +0200, Teemu Voipio wrote:
> On Mon, Feb 11, 2002 at 12:48:09AM +0200, Teemu Voipio wrote:
>
> > Here's a cleaner version of damion's old patch for dragging windows from
> > anywhere on the window with your alt-key pressed. This one honors
> > CONFIG_ALT_KEY so you can use your windows key or anything without any
> > extra edit to sources..
> >
>
> And here is a patch that has following improvements:
>
> 1) No warping cursor
> 2) applies clean ;)
>
> (sorry for the problems with the ealier patch..)
>
It's so hard to get them right.. sorry this mailinglist flood :(
there is a typo in the first hunk. e->y should ofcource be incremented
with yIndent() not xIndent().. attached the fixed version once again..
--
- Teemu Voipio <tvoipio@cc.hut.fi>
-----------------------------------------------------------------
Mystran == my very own nick @ IRC == god's gift to net
does not ==
use that ==
MS software software and has == a verb
at home has to only Linux == Linux from Scratch
since he be free at home == wasteland.pp.htv.fi
believes for all therefore. (is encrypted)
-----------------------------------------##----------------------
diff -ur wmx-6/Buttons.C wmx-6-/Buttons.C
--- wmx-6/Buttons.C Wed Apr 4 09:58:31 2001
+++ wmx-6-/Buttons.C Tue Jul 24 11:04:16 2001
@@ -465,6 +465,11 @@
mapRaised();
+if ((e->button == Button1) && (!m_border->hasWindow(e->window))){
+ e->x += m_border->xIndent(); e->y += m_border->yIndent();
+ move(e);
+}
+
if (e->button == Button1) {
if (m_border->hasWindow(e->window)) {
diff -ur wmx-6/Client.C wmx-6-/Client.C
--- wmx-6/Client.C Fri May 12 08:40:20 2000
+++ wmx-6-/Client.C Mon Jul 23 14:24:57 2001
@@ -214,6 +214,10 @@
XGrabKey(display(), XKeysymToKeycode(display(), CONFIG_ALT_KEY),
0, m_window, True, GrabModeAsync, GrabModeAsync);
+//find me
+XGrabButton(display(), Button1, m_windowManager->altModMask(), m_window, False, 0,
+GrabModeAsync, GrabModeSync, None, None);
+
for (i = 0; i < sizeof(keys)/sizeof(keys[0]); ++i) {
keycode = XKeysymToKeycode(display(), keys[i]);
if (keycode) {
Next: