Commit graph

390 commits

Author SHA1 Message Date
Ellis Whitehead
e2997d6bc4 Lots and lots and lots of changes all over the place for shortcut changes. Including new KAccel and KGlobalAccel classes.
svn path=/trunk/kdebase/kcontrol/; revision=122759
2001-11-16 23:21:43 +00:00
Alexander Neundorf
36542d8eb5 commented unused mapList and unmapList out
Alex

svn path=/trunk/kdebase/kwin/; revision=122561
2001-11-15 23:02:40 +00:00
Waldo Bastian
a29eb333d0 Don't crash when you happen to select a window with alt-tab that has just
disappeared. (forward port)

svn path=/trunk/kdebase/kwin/; revision=121076
2001-11-07 01:09:29 +00:00
Waldo Bastian
2076b00f61 Make active borders working when moving a window.
Make it configurable (disabled, only when moving, always enabled)

svn path=/trunk/kdebase/kwin/; revision=120497
2001-11-03 00:05:33 +00:00
Stephan Binner
9b12dc1a16 Revoked KIPC message addition, will use kWinModule::currentDesktopChanged(int).
svn path=/trunk/kdebase/kwin/; revision=117871
2001-10-14 13:04:49 +00:00
Stephan Binner
82c0178a80 Send KIPC:BackgroundChanged only when desktop is not common (part for
#33348). Still no perfect solution for "sticky transparent Konsole" problem.

svn path=/trunk/kdebase/kwin/; revision=117021
2001-10-09 06:53:26 +00:00
Fredrik Höglund
7497342101 Made KWin compile when QT_NO_COMPAT is defined.
svn path=/trunk/kdebase/kwin/; revision=115985
2001-09-30 21:22:20 +00:00
Ellis Whitehead
0223deb116 Call string <=> key conversion functions in KKey & KKeyX11 instead of KAccel
svn path=/trunk/kdebase/kcontrol/; revision=115761
2001-09-28 12:31:48 +00:00
Stephan Binner
aac86d915d Menu capitalization fixes
svn path=/trunk/kdebase/kwin/; revision=114950
2001-09-21 09:32:44 +00:00
Karol Szwed
890e9d257a - Hopefully fixes bug 31655
svn path=/trunk/kdebase/kwin/; revision=113874
2001-09-10 06:12:58 +00:00
Waldo Bastian
8f1f5f1b45 * Clean up move/resize code.
* Make moving/resizing work with keyboard.

svn path=/trunk/kdebase/kwin/; revision=113548
2001-09-06 22:54:31 +00:00
Waldo Bastian
7d5e50bab8 Tune electric borders...
svn path=/trunk/kdebase/kwin/; revision=113523
2001-09-06 19:44:06 +00:00
Matthias Ettrich
827e9b92be completed fullscreen fix
svn path=/trunk/kdebase/kwin/; revision=113471
2001-09-06 09:21:19 +00:00
Matthias Ettrich
87d25e94c5 include desktop widgets
svn path=/trunk/kdebase/kwin/; revision=113438
2001-09-05 20:48:16 +00:00
Matthias Ettrich
9388aeba3d fixed maximization handling
svn path=/trunk/kdebase/kwin/; revision=113436
2001-09-05 20:40:04 +00:00
Dirk Mueller
df7c4fb8b6 kdesktopwidget -> qdesktopwidget
svn path=/trunk/kdebase/kwin/; revision=112863
2001-09-01 12:52:41 +00:00
Waldo Bastian
83cbfe3acb Window follows mind^H^H^H^Hdesktop.
svn path=/trunk/kdebase/kwin/; revision=112163
2001-08-27 23:56:15 +00:00
Stephan Binner
21a2a14edd Fix Konsole transparent background problems when window is sticky or sent to other desktop (#24178)
svn path=/trunk/kdebase/kwin/; revision=112136
2001-08-27 21:02:33 +00:00
Waldo Bastian
aedc59bde7 Ported from KDE 1.1.2: Electric Borders are back!
svn path=/trunk/kdebase/kwin/; revision=112025
2001-08-27 05:42:32 +00:00
Simon Hausmann
c8f1508b36 - moved netwm.h inclusions after indirect qvariant.h inclusions
(fixes Bool clash)
- missing includes (qcursor,qstyle,qpainter,qvaluelist)
- minor qstyle api fixlet

svn path=/trunk/kdebase/kwin/; revision=110958
2001-08-18 23:06:16 +00:00
Matthias Ettrich
bb34fb1c55 fixed hanging keyboard in CDE-style Alt-Tab
svn path=/trunk/kdebase/kwin/; revision=109474
2001-08-07 11:15:12 +00:00
Waldo Bastian
d07cce76b9 Less debug output
svn path=/trunk/kdebase/kwin/; revision=108939
2001-08-02 18:31:37 +00:00
Matthias Ettrich
6847f73526 cleaned grabbing up a bit
svn path=/trunk/kdebase/kwin/; revision=107986
2001-07-27 12:48:30 +00:00
Ellis Whitehead
c06084d21b Make switching box disappear on mouse click, and release keyboard and pointer grabs.
Before, a mouse-click would cause a partial lock-up (global shortcuts could still be activated).

svn path=/trunk/kdebase/kwin/; revision=105788
2001-07-12 17:16:04 +00:00
Matthias Ettrich
a325dd9966 make focusEnsurance() multi-screen capable (at least I hope it works this
way)

svn path=/trunk/kdebase/kwin/; revision=105769
2001-07-12 13:50:19 +00:00
Ellis Whitehead
24ede41380 Make sure that Window/Desktop popup (e.g. Alt+Tab) isn't shown if modifier key has already been released before switch is processed.
svn path=/trunk/kdebase/kwin/; revision=105392
2001-07-09 03:10:16 +00:00
Ellis Whitehead
3e604d14b0 Remove "Window iconify all" since we now how "Toggle Show Desktop".
Index: kwinbindings.cpp
===================================================================
RCS file: /home/kde/kdebase/kwin/kwinbindings.cpp,v
retrieving revision 1.24
diff -u -3 -d -p -r1.24 kwinbindings.cpp
--- kwinbindings.cpp	2001/06/26 23:30:52	1.24
+++ kwinbindings.cpp	2001/06/29 04:29:14
@@ -22,7 +22,7 @@
  keys->insertItem(i18n("Window Maximize Vertical"), "Window maximize vertical", KKey(), KKey("Meta+Bar"));
  keys->insertItem(i18n("Window Maximize Horizontal"), "Window maximize horizontal", KKey(), KKey("Meta+Equal"));
  keys->insertItem(i18n("Window Iconify"), "Window iconify", KKey(), KKey("Meta+Minus"));
- keys->insertItem(i18n("Window Iconify (All)"), "Window iconify all", KKey(), KKey("Meta+Ctrl+Minus"));
+ //keys->insertItem(i18n("Window Iconify (All)"), "Window iconify all", KKey(), KKey("Meta+Ctrl+Minus"));
  keys->insertItem(i18n("Window Shade"), "Window shade", KKey(), KKey("Meta+Underscore"));
  keys->insertItem(i18n("Window Move"), "Window move", 0);
  keys->insertItem(i18n("Window Resize"), "Window resize", 0);
@@ -113,6 +113,6 @@ This belongs in taskbar rather than here
 #endif
  keys->insertItem(i18n("Mouse Emulation"), "Mouse emulation", KKey("ALT+F12"), KKey());
  keys->insertItem(i18n("Kill Window"), "Kill Window", KKey("CTRL+ALT+Escape"), KKey("Meta+Ctrl+Delete"));
- keys->insertItem(i18n("Window Screenshot"), "Screenshot of active window", KKey("Print"), KKey());
- keys->insertItem(i18n("Desktop Screenshot"), "Screenshot of desktop", KKey("CTRL+PrtSc"), KKey());
+ keys->insertItem(i18n("Window Screenshot"), "Screenshot of active window", KKey("Print"), KKey("Alt+Print"));
+ keys->insertItem(i18n("Desktop Screenshot"), "Screenshot of desktop", KKey("CTRL+Print"), KKey("Meta+Print"));

Index: workspace.cpp
===================================================================
RCS file: /home/kde/kdebase/kwin/workspace.cpp,v
retrieving revision 1.263
diff -u -3 -d -p -r1.263 workspace.cpp
--- workspace.cpp	2001/06/29 00:16:26	1.263
+++ workspace.cpp	2001/06/29 04:29:24
@@ -2553,7 +2553,7 @@ void Workspace::createKeybindings(){
     keys->connectItem( "Window maximize horizontal", this, SLOT( slotWindowMaximizeHorizontal() ) );
     keys->connectItem( "Window maximize vertical", this, SLOT( slotWindowMaximizeVertical() ) );
     keys->connectItem( "Window iconify", this, SLOT( slotWindowIconify() ) );
-    keys->connectItem( "Window iconify all", this, SLOT( slotWindowIconifyAll() ) );
+    //keys->connectItem( "Window iconify all", this, SLOT( slotWindowIconifyAll() ) );
     keys->connectItem( "Window shade", this, SLOT( slotWindowShade() ) );
     keys->connectItem( "Window move", this, SLOT( slotWindowMove() ) );
     keys->connectItem( "Window resize", this, SLOT( slotWindowResize() ) );
@@ -2744,6 +2744,7 @@ void Workspace::slotWindowIconify()
     performWindowOperation( popup_client, Options::IconifyOp );
 }

+// This should probably be removed now that there is a "Show Desktop" binding.
 void Workspace::slotWindowIconifyAll()
 {
     int iDesktop = currentDesktop();

svn path=/trunk/kdebase/kwin/; revision=104351
2001-06-29 04:30:25 +00:00
Richard J. Moore
649c822bc2 Include window frame when grabbing snapshots
svn path=/trunk/kdebase/kwin/; revision=104328
2001-06-29 00:16:26 +00:00
Richard J. Moore
2cd059894a Window grabbing stuff for linuxtag
svn path=/trunk/kdebase/kwin/; revision=104070
2001-06-26 23:30:52 +00:00
Matthias Ettrich
ab5b07786a more alt-tab hanging fixes. Requires update in libkdecore/kglobalaccel.cpp
svn path=/trunk/kdebase/kwin/; revision=103034
2001-06-19 15:05:03 +00:00
Matthias Ettrich
6413e1dd8f Fixed hanging Alt-Tab under heavy load (Part II, first part was in
kdelibs/kdecore/kglobalaccel.cpp)

svn path=/trunk/kdebase/kwin/; revision=102912
2001-06-18 20:18:32 +00:00
Ellis Whitehead
c77c63a6d3 Forgot to connect.
===================================================================
RCS file: /home/kde/kdebase/kwin/workspace.cpp,v
retrieving revision 1.258
diff -u -3 -d -p -r1.258 workspace.cpp
--- workspace.cpp	2001/06/13 15:47:54	1.258
+++ workspace.cpp	2001/06/13 18:46:54
@@ -2562,6 +2562,8 @@ void Workspace::createKeybindings(){

     keys->connectItem( "Walk through desktops", this, SLOT( slotWalkThroughDesktops()));
     keys->connectItem( "Walk back through desktops", this, SLOT( slotWalkBackThroughDesktops()));
+    keys->connectItem( "Walk through desktop list", this, SLOT( slotWalkThroughDesktopList()));
+    keys->connectItem( "Walk back through desktop list", this, SLOT( slotWalkBackThroughDesktopList()));
     keys->connectItem( "Walk through windows",this, SLOT( slotWalkThroughWindows()));
     keys->connectItem( "Walk back through windows",this, SLOT( slotWalkBackThroughWindows()));

@@ -2571,6 +2573,8 @@ void Workspace::createKeybindings(){
     keys->readSettings();
     walkThroughDesktopsKeycode = keys->currentKey( "Walk through desktops" );
     walkBackThroughDesktopsKeycode = keys->currentKey( "Walk back through desktops" );
+    walkThroughDesktopListKeycode = keys->currentKey( "Walk through desktop list" );
+    walkBackThroughDesktopListKeycode = keys->currentKey( "Walk back through desktop list" );
     walkThroughWindowsKeycode = keys->currentKey( "Walk through windows" );
     walkBackThroughWindowsKeycode = keys->currentKey( "Walk back through windows" );
 }

svn path=/trunk/kdebase/kwin/; revision=101992
2001-06-13 18:48:23 +00:00
Luboš Luňák
0827825fcb Use debug area for the debug info.
Explicitly note in the headers that the classes have to keep BC ( after KDE2.2 ).
Fixed index in walking through desktops.

svn path=/trunk/kdebase/kwin/; revision=101972
2001-06-13 15:47:54 +00:00
Ellis Whitehead
9e0653455e kdebase/kcontrol/keys/: add ability to separate between 'normal' shortcuts and a shortcut series
kdebase/kwin/tabbox: allow for choosing between switching between desktops in focus order versus numeric order.

kdebase/kwin/workspace: add key bindings for focus-order-desktop-walking and sending a window to a specific desktop.

*bindings.cpp: add labels for kcontrol

svn path=/trunk/kdebase/kwin/; revision=101281
2001-06-10 04:10:42 +00:00
Malte Starostik
f8c8380275 Expose int currentDesktop() const via DCOP
and added void nextDesktop() and void previousDesktop(), also available
via DCOP.
This makes it possible to use KGesture to cycle through desktops :)

svn path=/trunk/kdebase/kwin/; revision=101071
2001-06-09 05:00:46 +00:00
Ellis Whitehead
a9c55776ae KAccel: allow for 4-modifier setup defaults, check whether Qt supports the
Meta key.

KGlobalAccel: improve X key ungrabbing for key map changes.

KKeyDialog: Allow caller to specify whether normal keys (i.e., 'A', 'B') can
be used as shortcuts and whether the Meta key can be used in a shortcut.

KeyConfog: Add support for a second default configuration. Add support for a
user with a Meta key not to default to 4-modifier setup (not yet working
completely).

Workspace: Added 'Window iconify all'.  Still speed work -- best might be to
merge this with 'Show Desktop'

kcontrol/keys/main.cpp: a bit of capitalization

kcontrol/kwm/mouse, kwin/client, kwin/options: Let user use Meta key for
window resizing/moving/etc

*bindings.cpp: add 4-modifier setup defaults

svn path=/trunk/kdebase/kcontrol/; revision=100877
2001-06-07 18:17:24 +00:00
Karol Szwed
9c0f71e601 Making reconfigure() timer buffered so that we don't get flooded with
too many reconfigure events at once, which would re-client all windows
multiple times and cause lots of ugly flicker.

svn path=/trunk/kdebase/kwin/; revision=100375
2001-06-04 14:01:00 +00:00
Ellis Whitehead
e2b6a56386 Compared a Qt key code to an X key code and lost the ability to use Escape
to abort switch between programs/desktops mode.  Fixed.

svn path=/trunk/kdebase/kwin/; revision=100319
2001-06-04 06:43:31 +00:00
Ellis Whitehead
b4a70d38fe A couple simplifications in the Program/Desktop switching routine.
svn path=/trunk/kdebase/kwin/; revision=100272
2001-06-03 22:29:12 +00:00
Dirk Mueller
5a49a411dd whoops, restoring binary compatibility in case we want it (SC was given)
svn path=/trunk/kdebase/kwin/; revision=100140
2001-06-03 09:30:19 +00:00
Dirk Mueller
8e8dce5e64 Xinerama support, patch by Balaji Ramani <balaji@spinnakernet.com>
svn path=/trunk/kdebase/kwin/; revision=100136
2001-06-03 09:04:03 +00:00
Ellis Whitehead
1a3f866309 When switching between programs, Workspace was calling KGlobalAccel::setEnabled(false) and then KGlobalAccel::setEnabled(true), causing hundreds of XGrabKey and XUngrabKey calls. This problem was multiplied by four times by mods i made to KGlobalAccel allowing it to ignore the ModeSwitch and ScrollLock keys. The sluggishness became apparent, so now it calls KGlobalAccel::setKeyEventEnabled( bool ), which merely disables processing, rather than changing any X-server behavior. Much faster.
svn path=/trunk/kdebase/kwin/; revision=99589
2001-05-31 06:22:52 +00:00
Luboš Luňák
0603cb240d 'Logout' and 'Lock screen' keybindings don't really belong to kwin, they
belong to kdesktop.

svn path=/trunk/kdebase/kwin/; revision=99466
2001-05-30 13:23:53 +00:00
Helge Deller
6536d083a0 added global "Lock Screen" key-binding (CTRL-ALT-L)
svn path=/trunk/kdebase/kwin/; revision=99436
2001-05-30 10:31:03 +00:00
Ellis Whitehead
03d449b0b8 Add flag for working with Meta-key
svn path=/trunk/kdebase/kcontrol/; revision=99403
2001-05-30 05:57:16 +00:00
Luboš Luňák
322eaa8daa Use the new app startup info stuff to implement start_on_desktop.
svn path=/trunk/kdebase/kwin/; revision=98620
2001-05-24 21:01:09 +00:00
Luboš Luňák
10672210ae Better focus handling when sending windows to other desktops.
svn path=/trunk/kdebase/kwin/; revision=98455
2001-05-23 20:39:28 +00:00
Dirk Mueller
e3766f1c3b Xinerama support (patch by Balaji Ramani <balaji@spinnakernet.com>)
svn path=/trunk/kdebase/kwin/; revision=96584
2001-05-12 00:33:43 +00:00
Henrik Johnson
10baa96bc7 Add key bindings to move current window to next/previous desktop
svn path=/trunk/kdebase/kwin/; revision=96538
2001-05-11 21:38:00 +00:00
Carsten Pfeiffer
3e28074e23 Configure WindowManager
svn path=/trunk/kdebase/kwin/; revision=96232
2001-05-10 17:54:57 +00:00
Luboš Luňák
1034a53451 Make KWinModule::activeWindowChanged() emit with 0 when there's no window
active - no need to try to focus windows that don't accept it anyway unless
forced to.

svn path=/trunk/kdebase/kwin/; revision=96046
2001-05-09 20:06:46 +00:00
Martijn Klingens
c0d943b01a Added some icons to the popup menus
svn path=/trunk/kdebase/kwin/; revision=95333
2001-05-05 18:28:41 +00:00
Luboš Luňák
e0dbc88040 Implemented NET::SkipPager in kwin, kpager, the pager applet and kstart.
Not that I really understand why's there both SkipTaskbar and SkipPager ...

svn path=/trunk/kdebase/kwin/; revision=94832
2001-05-02 20:37:30 +00:00
Matthias Ettrich
d9a7551774 window snapping for all windows, including dialogs (suggestion by Melchior Franz)
svn path=/trunk/kdebase/kwin/; revision=93936
2001-04-25 16:15:54 +00:00
Waldo Bastian
42291d5b87 Make Workspace a singleton, accesible via Workspace::self()
svn path=/trunk/kdebase/kwin/; revision=93375
2001-04-22 06:51:07 +00:00
Waldo Bastian
57f4808d0f Make resource management in clients easier with these three functions:
init() called after client got loaded
deinit() called when client is about to get unloaded
reset() called once before Options::resetClients() is emitted

svn path=/trunk/kdebase/kwin/; revision=93372
2001-04-22 05:39:17 +00:00
Daniel Molkentin
5c63088d15 - popup->insertItem(i18n("&Decoration"), deco );
+       // danimo: Tackat says: use kcontrol!
+       // Will remove the stuff behind later
+       // popup->insertItem(i18n("&Decoration"), deco );

svn path=/trunk/kdebase/kwin/; revision=92401
2001-04-16 22:03:28 +00:00
Luboš Luňák
18d2c93cea Added private data pointer members to classes which might be accessed
by style plugins ( KWin has to keep BC for these ). I hope these are
all classes that need it.
And of course, this change is not binary compatible, but it fortunately
doesn't matter much for KWin these days.

svn path=/trunk/kdebase/kwin/; revision=90127
2001-04-03 14:40:34 +00:00
Luboš Luňák
d194f74314 Reduce wallpaper repaints during desktop switching.
svn path=/trunk/kdebase/kwin/; revision=90111
2001-04-03 12:50:32 +00:00
Luboš Luňák
6261311a69 I think I've finally found the right place for the propagateClients() call.
Now KWinModule will emit windowAdded() after all properties are set
correctly, but still before activeWindowChanged().
If it breaks something, beat me.

svn path=/trunk/kdebase/kwin/; revision=90016
2001-04-02 22:12:54 +00:00
Adriaan de Groot
2b0e89325f Added window raise-or-lower
svn path=/trunk/kdebase/kwin/; revision=89959
2001-04-02 16:17:06 +00:00
Leon Bottou
715dcc3beb Workspace::storeLegacySession() now uses kwin_time.
svn path=/trunk/kdebase/kwin/; revision=89469
2001-03-30 19:37:40 +00:00
Luboš Luňák
c125639ccb Make KWinModule first emit windowAdded(), then activeWindowChanged().
svn path=/trunk/kdebase/kwin/; revision=89414
2001-03-30 11:50:22 +00:00
Luboš Luňák
4c03fa5c6f Less flickering when switching virt. desktops.
svn path=/trunk/kdebase/kwin/; revision=89410
2001-03-30 11:15:15 +00:00
Matthias Ettrich
9547820ecc re-enabled the nice feature that Alt-Tab and Ctrl-Tab won't do anything
if there are popup windows open (that is, if we cannot obtain a mouse pointer
grab). Avoids "hanging" Window or Desktop boxes.

This broke when the (otherwise very nice) transition to KGlobalAccel was
introduced.

svn path=/trunk/kdebase/kwin/; revision=89105
2001-03-28 12:44:31 +00:00
Karol Szwed
fe44db9631 Added a dcop signal "dcopResetAllClients()" to allow other apps to be notified
when the user has changed the current kwin client decoration via the titlebar.

svn path=/trunk/kdebase/kwin/; revision=88294
2001-03-23 09:28:40 +00:00
Leon Bottou
41e4bffe40 Removed possibility of X errors in the Client::staticXXXX() functions.
Cosmetic changes to Workspace::storeLegacySession().

svn path=/trunk/kdebase/kwin/; revision=87983
2001-03-20 20:48:40 +00:00
Luboš Luňák
944967a8e1 Made Alt+Tab , Ctrl+Tab configurable. Also added in kcontrol module missing option
to make Alt+Tab to go either through all windows or only the ones on the current
desktop. If you get keyboard lock-ups because of this, yell.
I wonder how many bugreports I will be able to close because of this :).

svn path=/trunk/kdebase/kwin/; revision=87801
2001-03-19 20:05:36 +00:00
Matthias Ettrich
9b24d884bf legacy session management support (WM_COMMAND) for emacs-lovers.
Many thanks to Leon Bottou <leonb@research.att.com> for this one.

svn path=/trunk/kdebase/kwin/; revision=87737
2001-03-19 15:35:07 +00:00
George Staikos
a888d424c6 The new refresh code. This will refresh the entire desktop for you,
background, icons and windows!

svn path=/trunk/kdebase/kwin/; revision=86920
2001-03-14 10:16:08 +00:00
Matthias Ettrich
11f1ab2b60 reduce the number of X-errors. Thanks to Lars Hete for this one.
svn path=/trunk/kdebase/kwin/; revision=86918
2001-03-14 09:21:16 +00:00
Luboš Luňák
8b6478aeda Applying #19154 ( together with #19158 fixes #13794 #17915 #17698 )
svn path=/trunk/kdebase/kwin/; revision=86664
2001-03-12 21:32:13 +00:00
Matthias Ettrich
33c69f053c small activation state fix (thanks to Simon Hausmann for the bugreport)
svn path=/trunk/kdebase/kwin/; revision=86636
2001-03-12 18:03:17 +00:00
Wilco Greven
8e8341d6ec GUI: Resolve conflicting accelerators. Fixes #20579. I assigned r as
accelerator for "Store settings" instead of t which was already used by
     "To Desktop".

svn path=/trunk/kdebase/kwin/; revision=84957
2001-03-02 10:35:25 +00:00
Waldo Bastian
d577f604e2 It's slashdot feature request time!
+       HMaximizeOp,
+       VMaximizeOp,
+       LowerOp,

svn path=/trunk/kdebase/kwin/; revision=84551
2001-02-27 07:19:52 +00:00
Matthias Elter
c48346551b Patch by Matthias Ettrich:
Changing the focus policy does not reset all client styles.

svn path=/trunk/kdebase/kwin/; revision=83927
2001-02-21 18:29:24 +00:00
Waldo Bastian
2f90225543 Put stuff in KWinInternal namespace.
Export client.h, workspace.h and options.h so that people can write plugins.

svn path=/trunk/kdebase/kwin/; revision=83707
2001-02-20 01:20:38 +00:00
Cristian Tibirna
5db5950bc1 CT: kill off-by-one bug in smart placement. Thanks to Michael Driscoll for
bug report, bug analysis and patch review.

svn path=/trunk/kdebase/kwin/; revision=83151
2001-02-16 18:05:27 +00:00
David Faure
f14bbd47a4 - area = QApplication::desktop()->geometry();
+    area = QRect( 0, 0, 0, 0 ); // bogus value so that updateClientArea does the right thing
This fixes the icons being put on the topleft corner on startup.
updateClientArea wasn't setting the values in NETWM because it didn't detect
a change (until kicker started).

svn path=/trunk/kdebase/kwin/; revision=82160
2001-02-10 00:27:26 +00:00
bhughes
7a9862f4ee multihead in kdebase
svn path=/trunk/kdebase/kcontrol/; revision=81587
2001-02-06 18:32:07 +00:00
Matthias Ettrich
f788868318 fixed focus problems with qt-2.2.4 (see separate mail on kde-core-devel)
svn path=/trunk/kdebase/kwin/; revision=81151
2001-02-03 12:30:46 +00:00
Matthias Ettrich
3deaa52496 cooperate with qt-2.2.4 (the deadkey popup fix) and qt-copy.
Don't update the frame decoration if it didn't change, I don't want
flicker when changing the focus policy.

svn path=/trunk/kdebase/kwin/; revision=80891
2001-02-01 01:13:44 +00:00
Matthias Ettrich
8ba06abb33 loadFakeSessionInfo() in initialization
svn path=/trunk/kdebase/kwin/; revision=80299
2001-01-27 19:24:15 +00:00
Waldo Bastian
03fc02caf3 Delay resetting client decorations a bit in some cases, maybe we have to do
it anyway later on in which case we can save some flicker & CPU by doing it
only once.

svn path=/trunk/kdebase/kwin/; revision=80040
2001-01-25 19:17:17 +00:00
Matthias Ettrich
d2e0e0529b disabled the special treatment of system-tray parents for iconify()
Reason: it didn't work. This is the least intrusive and cleanest fix for it.

svn path=/trunk/kdebase/kwin/; revision=79884
2001-01-24 16:47:44 +00:00
Rik Hemsley
5198b0b270 Don't change maximise mode of windows when resetting
svn path=/trunk/kdebase/kwin/; revision=79285
2001-01-20 21:03:12 +00:00
Waldo Bastian
8190667206 Let reconfigure() reparse plugin setting.
svn path=/trunk/kdebase/kwin/; revision=78491
2001-01-16 23:54:45 +00:00
Matthias Ettrich
e9d30a20d7 Balaji Ramani <balaji@spinnakernet.com>: shadeHover support
GUI: new operation popup item: "Store Settings"

svn path=/trunk/kdebase/kwin/; revision=78043
2001-01-14 20:16:04 +00:00
Matthias Elter
e048421030 Workspace::activateClient does not flicker any more now.
The problem was that when switching to a window on a different desktop via the taskbar setCurrentDesktop made a different window active for a second.

svn path=/trunk/kdebase/kwin/; revision=77821
2001-01-13 14:57:16 +00:00
bhughes
96c420e927 kwin supports a good chunk of the NETWM spec... let's report it
svn path=/trunk/kdebase/kwin/; revision=77691
2001-01-12 19:44:40 +00:00
Matthias Ettrich
33f78a855b some more keybindings
less race conditions with map/unmap thanks to BlackboxTechnology(tm)

svn path=/trunk/kdebase/kwin/; revision=77544
2001-01-11 23:41:07 +00:00
Matthias Ettrich
a189cb2c45 some attempt for dirk
svn path=/trunk/kdebase/kwin/; revision=76503
2001-01-05 18:28:24 +00:00
Waldo Bastian
f21e0fd688 Send notifications on desktop changes.
svn path=/trunk/kdebase/kwin/; revision=75432
2000-12-21 21:04:52 +00:00
Cristian Tibirna
37ef0caae2 CT: handle Control-Tab at run time, not only at start time. This should
silence a few bug reports from Emacs users

svn path=/trunk/kdebase/kwin/; revision=75146
2000-12-17 21:57:52 +00:00
Dirk Mueller
bd3140b6b7 try not to place windows behind always on top windows in smart
placement code. Fix found by Cristian Tibirna

svn path=/trunk/kdebase/kwin/; revision=75050
2000-12-17 03:23:34 +00:00
Matthias Ettrich
c1eac4d5d0 hopefully less frame drawing
svn path=/trunk/kdebase/kwin/; revision=74802
2000-12-14 11:35:12 +00:00
Matthias Ettrich
2d401d3acc more netwm details
svn path=/trunk/kdebase/kwin/; revision=71162
2000-11-17 16:39:47 +00:00
Matthias Ettrich
258a7be78a make kwin adjust to shape changes
svn path=/trunk/kdebase/kwin/; revision=71049
2000-11-16 19:08:05 +00:00
Matthias Ettrich
8dde856133 small fix for >= 10 desktops (thanks to Keunwoo Lee)
svn path=/trunk/kdebase/kwin/; revision=70816
2000-11-14 14:12:54 +00:00
Richard J. Moore
99fa5f16ed Added a new method to the DCOP interface that displays the window menu
for a specified WId.

svn path=/trunk/kdebase/kwin/; revision=70680
2000-11-12 20:25:21 +00:00
Alexander Neundorf
285841c790 some minor changes in adjustClientPos(), so that the flag set via the
new checkbox in the control center is honored

alex

svn path=/trunk/kdebase/kwin/; revision=69737
2000-11-02 18:15:39 +00:00
Alexander Neundorf
ac87507e17 And here we go, now we have to snapping styles in kwin, the classic
"magnetic" style and the new "barrier" style.
To enable the new style insert MagneticBorders=off in your kwinrc.
The gui for the control center will follow the next days.
Anybody a good idea how to call it ?
Two radiobuttons, one "Magnetic borders", the other one "Barrier Borders" ?

Alex

svn path=/trunk/kdebase/kwin/; revision=69692
2000-11-02 08:33:00 +00:00
Matthias Ettrich
25c292f3a1 removed sticky again.
"sticky" is the wrong term. In order to make it easier to combine
different window managers, we removed it. In the NET specs, sticky
means something entirely different.

What you want is "On All Desktops" and it's already available in
the menu under ToDesktop->AllDesktops

svn path=/trunk/kdebase/kwin/; revision=69381
2000-10-30 09:58:08 +00:00
Wilco Greven
2e93aab89b GUI Add 'Sticky' to the window operations menu.
svn path=/trunk/kdebase/kwin/; revision=69290
2000-10-29 14:06:12 +00:00
Matthias Ettrich
7d5ac3a25e more configurability - thanks to David Pittman
svn path=/trunk/kdebase/kwin/; revision=68922
2000-10-26 09:38:09 +00:00
Matthias Ettrich
2d59aac1c8 small fix for mac menu when using focus follows mouse (even though this
combination does not make sense at all)

svn path=/trunk/kdebase/kwin/; revision=68919
2000-10-26 08:26:05 +00:00
Waldo Bastian
b1d63a2951 WABA: Move null-focus window to (-1,-1)
Ahhhh, the whole screen feels bigger now.

svn path=/trunk/kdebase/kwin/; revision=68889
2000-10-25 20:16:56 +00:00
Matthias Ettrich
a74ed42f17 make "doNotManage" work with regular expressions as advertised. Otherwise,
kstart does not work properly (see thread on kde-devel)

svn path=/trunk/kdebase/kwin/; revision=68106
2000-10-17 15:55:40 +00:00
Matthias Ettrich
0b4ba11c29 removed debug out, small fix for mac menu
svn path=/trunk/kdebase/kwin/; revision=68088
2000-10-17 13:09:59 +00:00
Matthias Ettrich
8ba0c8171f fixed unmanaged windows on subsquent desktop switches
svn path=/trunk/kdebase/kwin/; revision=68087
2000-10-17 12:51:39 +00:00
Matthias Ettrich
1266db9901 fixed transient_for handling for embedded main windows
Patch reviewed by Lars.

svn path=/trunk/kdebase/kwin/; revision=67756
2000-10-15 14:19:15 +00:00
Matthias Ettrich
a0b6bdb956 don't minimize dialog boxes that have a managed parent.
Unify operation menu enabled settings with visible decorations.

svn path=/trunk/kdebase/kwin/; revision=67486
2000-10-13 15:37:07 +00:00
Matthias Ettrich
a2c3696df5 Removed startkde and exitkde events. They don't belong into kwin.
I remember that I removed those already some time ago. Somebody keeps
believing that KWin has something to do with a) KDE startup and b) KDE
Exit, grmbl.

This is not true, it's ksmserver who does this.

Unfortunatly I cannot remove the "logout" keybindings due to the translations.
It rather belongs into kdesktopbindings than kwinbindings.

Please, guys, kwin is a *window* manager, not a desktop (seems like a
neverending story...)

svn path=/trunk/kdebase/kwin/; revision=66503
2000-10-05 22:09:49 +00:00
Matthias Ettrich
cceeee466f Fixed GIMP-1.1 (and other applications) windows dissappearing magically
svn path=/trunk/kdebase/kwin/; revision=66379
2000-10-04 15:19:44 +00:00
Matthias Ettrich
bb80bc7507 Fixed focus for "Lower", made "ActivateAndLower" work, fixed
CDE-style Alt-tab in FocusUnderMouse mode (was broken with transient
windows)

svn path=/trunk/kdebase/kwin/; revision=66189
2000-10-02 12:02:15 +00:00
Matthias Ettrich
2dd48cfde3 cosmetic change to the positioning patch,
fix for xawtv fullscreen placement (discussed with Dirk Mueller)

svn path=/trunk/kdebase/kwin/; revision=65773
2000-09-29 15:54:18 +00:00
David Faure
972efcada8 Applied patch from Rik, approved by Matthias Ettrich and tested by me :)
It fixes the size of windows restored by session management.

svn path=/trunk/kdebase/kwin/; revision=65719
2000-09-29 10:06:38 +00:00
Matthias Ettrich
731d758eb7 small patch from Antonio
svn path=/trunk/kdebase/kwin/; revision=65622
2000-09-28 12:53:57 +00:00
Torben Weis
b6ed7aefb0 - avoid having modal dialogs below their main windows
- propagate actual stacking order (kpager should show stays-on-top windows
ontop)

svn path=/trunk/kdebase/kwin/; revision=65480
2000-09-27 12:21:04 +00:00
Matthias Ettrich
6dacbd0112 tool window handling for the default style
visible dialogs for stays-on-top fullscreen windows (helps with Konqueror's dialogs)
Fixed lock with Alt-Tab box plus accelerator

svn path=/trunk/kdebase/kwin/; revision=65241
2000-09-25 15:30:51 +00:00
Thomas Zander
e0e632dfdf Fixed a bug with window placement in smart mode where windows are to heigh.
They get placed nicely now.

svn path=/trunk/kdebase/kwin/; revision=65162
2000-09-25 09:23:04 +00:00
Thomas Zander
2ff8d44d50 Fixed problem with windows being to height to fit on screen. There position
is still calculated for optimal screen usage now. Formerly the window
was just placed top-left..

svn path=/trunk/kdebase/kwin/; revision=64956
2000-09-24 09:20:31 +00:00
Stephan Kulow
c4e41683d7 don't save default values if they are not yet written as defaults
svn path=/trunk/kdebase/kwin/; revision=64871
2000-09-23 21:54:37 +00:00
Matthias Ettrich
d3fe8c69ed more focusFollowsMind magic.
- if you minimize a window, it will be put to the end of the focus change
(technically, to the beginning, see the prepend() )

- if you switch desktop, sticky windows are ignored as long as there are
non-sticky windows in the change

- this does not happen if the sticky window is actually active. In that case it
remains active.

Patch tested by Christian Gebauer

svn path=/trunk/kdebase/kwin/; revision=64442
2000-09-19 18:57:15 +00:00
Waldo Bastian
1cc65aa20e WABA: Fixed memory leaks.
svn path=/trunk/kdebase/kwin/; revision=63827
2000-09-14 06:03:47 +00:00
Charles Samuels
fbc7c46935 Bleh #1
svn path=/trunk/kdebase/kwin/; revision=63811
2000-09-14 03:10:03 +00:00
Matthias Ettrich
10b2e5fde2 don't activate dock windows with click (fixes kicker focus problems,
reviewed by Carsten Peiffer)

svn path=/trunk/kdebase/kwin/; revision=63580
2000-09-11 20:54:00 +00:00
Waldo Bastian
1add59200c WABA: Fixes BR6808 and BR7983.
#6808: selecting a "Decoration" by right-clicking on a window de-iconify windows.
#7983: SHIP STOPPER: kwin - titlebars get <2> after the name of the application when changing decorations
Reviewed by gis.

svn path=/trunk/kdebase/kwin/; revision=63563
2000-09-11 18:59:26 +00:00
Matthias Ettrich
a309da9f0e "activate" event on every activation, not only on taskbar
svn path=/trunk/kdebase/kwin/; revision=62339
2000-08-31 17:29:10 +00:00
Matthias Ettrich
d53798aaf0 more sound effects
svn path=/trunk/kdebase/kwin/; revision=62336
2000-08-31 17:15:10 +00:00
Matthias Ettrich
bf33b067be - completed session management (maximize, shaded, and restore were missing)
- support for WM_COMMAND pseudo session management (xterm and friends)
- basic support for private colormaps, useful on the last remaining 8bit displays

svn path=/trunk/kdebase/kwin/; revision=62239
2000-08-30 14:27:30 +00:00
Kalle Dalheimer
87931a071a Added hotkeys for workspaces 9-16
Patch approved by Matthias Ettrich

svn path=/trunk/kdebase/kwin/; revision=62067
2000-08-28 06:16:34 +00:00
Matthias Ettrich
d0d3166d4a don't grab server during initialization, may result in freezes due to libkmapnotify
svn path=/trunk/kdebase/kwin/; revision=61614
2000-08-21 15:13:24 +00:00
Matthias Ettrich
078b8b3ff4 - make maximized windows
- adjust to workarea changes
	- not movable or resizable
	- not show vertical borders if not necessary

 - new default style: middle mouse and right mouse for maximize button

 - now resize mouse cursors if the window is not resizable

svn path=/trunk/kdebase/kwin/; revision=61240
2000-08-16 12:18:56 +00:00
Matthias Ettrich
5314dbb817 mosfet's much ligher version of the default style. Still flickers a little bit, but
uses much less resources

svn path=/trunk/kdebase/kwin/; revision=61022
2000-08-14 18:49:44 +00:00
Matthias Ettrich
3fccc94b5b react on key changes
svn path=/trunk/kdebase/kwin/; revision=61011
2000-08-14 16:45:45 +00:00
Matthias Ettrich
ba64395e9a removed debug output
svn path=/trunk/kdebase/kwin/; revision=60887
2000-08-13 17:26:18 +00:00
Matthias Ettrich
81bd6b26c3 some focus follows mouse stuff
svn path=/trunk/kdebase/kwin/; revision=60885
2000-08-13 17:07:26 +00:00
Matthias Ettrich
ffbe75dfba some bugfixes
svn path=/trunk/kdebase/kwin/; revision=60295
2000-08-09 10:02:56 +00:00
Matthias Ettrich
813ee80842 don't move fullscreen windows around
svn path=/trunk/kdebase/kwin/; revision=59482
2000-08-01 16:44:15 +00:00
Matthias Ettrich
70f8d2823b make konqueror's full-screen mode useful
svn path=/trunk/kdebase/kwin/; revision=59464
2000-08-01 12:42:03 +00:00
Matthias Ettrich
5d7ca8f2ee adding missing raise and lower keybindings
svn path=/trunk/kdebase/kwin/; revision=59304
2000-07-30 16:15:17 +00:00
Werner Trobin
13aebff097 Commented out some more #define QT_CLEAN_NAMESPACE statements
svn path=/trunk/kdebase/kscreensaver/; revision=59186
2000-07-29 07:59:24 +00:00
Matthias Ettrich
d7d265452b some work on the new default style. Better, but not there yet.
The class still duplicates too much functionality of the base class (Client).
IMO the ResizeBar widgets have to go, it can all be done by painting directly
on the main Manager.

svn path=/trunk/kdebase/kwin/; revision=59127
2000-07-28 22:06:22 +00:00
Matthias Ettrich
450395e891 small things
svn path=/trunk/kdebase/kwin/; revision=58969
2000-07-27 17:58:09 +00:00
Thomas Zander
4d0ac7b5c0 fixed counting problem. On creation of the config file counting started with 2, creating Desktop 2 Desktop 3 etc.
svn path=/trunk/kdebase/kwin/; revision=58433
2000-07-23 17:18:29 +00:00
Matthias Ettrich
47f386209b workarea stuff
svn path=/trunk/kdebase/kwin/; revision=57913
2000-07-19 01:26:00 +00:00
Matthias Ettrich
8ab7b1c57f no debug
svn path=/trunk/kdebase/kwin/; revision=57552
2000-07-17 17:11:19 +00:00
Matthias Ettrich
dea089ee3b send-to-desktop works again
svn path=/trunk/kdebase/kwin/; revision=57321
2000-07-16 15:02:36 +00:00
Rik Hemsley
62e30dc0dc KDE 2 style is now default. KDE 1 style now available as plugin.
KDE 2 style still needs work, but bear with me. I'll get on it...

svn path=/trunk/kdebase/kwin/; revision=57252
2000-07-16 10:20:29 +00:00