[
Thread Prev][
Thread Next] >
Date Index
>
Thread Index
[wmx] cleaner alt-drag patch
Teemu Voipio -
Sun Feb 10 23:50:02 2002
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..
--
- 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,10 @@
mapRaised();
+if ((e->button == Button1) && (!m_border->hasWindow(e->window))){
+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,11 @@
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: