Commit graph

319 commits

Author SHA1 Message Date
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
Matthias Ettrich
7ca46b1e1c do not manage magic for java applets
svn path=/trunk/kdebase/kwin/; revision=56985
2000-07-15 01:12:41 +00:00
Matthias Ettrich
bda93628e4 highly improved style switching
svn path=/trunk/kdebase/kwin/; revision=56978
2000-07-15 00:46:38 +00:00
Matthias Ettrich
7dcedd2f0d show desktop names in some other places as well (and use utf8 rather than local 8 bit)
svn path=/trunk/kdebase/kwin/; revision=56902
2000-07-14 19:56:47 +00:00
Matthias Ettrich
9a69f2a87a unicode caption support
svn path=/trunk/kdebase/kwin/; revision=56896
2000-07-14 19:35:23 +00:00
Dirk Mueller
36a5d47520 make use of the deskto p names
svn path=/trunk/kdebase/kwin/; revision=56853
2000-07-14 15:27:11 +00:00
Matthias Ettrich
0012e5088b focus handling on lower()
svn path=/trunk/kdebase/kwin/; revision=56651
2000-07-13 20:38:10 +00:00
Matthias Ettrich
5fb81f837b no "resize" and "maximize" options for non-resizable windows
svn path=/trunk/kdebase/kwin/; revision=56608
2000-07-13 17:59:12 +00:00
Matthias Ettrich
32bde0d550 desktop names
svn path=/trunk/kdebase/kwin/; revision=56406
2000-07-12 18:08:24 +00:00
Matthias Elter
94a2f7c586 save/restore number of desktops
svn path=/trunk/kdebase/kwin/; revision=56351
2000-07-12 13:54:23 +00:00
Matthias Ettrich
d226e9cd0e sexy toolwindows (at least in standard style)
svn path=/trunk/kdebase/kwin/; revision=56329
2000-07-12 12:46:58 +00:00
Matthias Ettrich
99211a9236 more staying on top
svn path=/trunk/kdebase/kwin/; revision=56113
2000-07-11 14:49:52 +00:00
Matthias Ettrich
c3a382cac9 improved stays-on-top hint handling
svn path=/trunk/kdebase/kwin/; revision=56111
2000-07-11 14:38:17 +00:00
Matthias Ettrich
678f92f146 yet another focus-follows-mind attempt
svn path=/trunk/kdebase/kwin/; revision=56079
2000-07-11 12:15:58 +00:00
Matthias Ettrich
05a8a4fde3 mac menubar
svn path=/trunk/kdebase/kwin/; revision=55967
2000-07-10 15:54:17 +00:00
Matthias Ettrich
9f2a4f3dc4 autoraise fix ...grmbll...
svn path=/trunk/kdebase/kwin/; revision=55941
2000-07-10 11:15:48 +00:00
Matthias Ettrich
3156291b39 autoraise and clickraise
svn path=/trunk/kdebase/kcontrol/; revision=55877
2000-07-09 20:29:53 +00:00
Matthias Ettrich
b26fb71535 some focus problem
svn path=/trunk/kdebase/kwin/; revision=55761
2000-07-08 13:35:59 +00:00
Matthias Ettrich
ad1f6da5a2 oops, motif noBorder hint was slightly broken
svn path=/trunk/kdebase/kwin/; revision=55753
2000-07-08 12:08:41 +00:00
Jesper Pedersen
797a25747c Added the following two functions:
- Switch one desktop to the left
  - Switch one desktop to the right

svn path=/trunk/kdebase/kwin/; revision=55397
2000-07-04 17:07:58 +00:00
Matthias Ettrich
d332cf9c90 transients stay also on top if the main client stays on top
svn path=/trunk/kdebase/kwin/; revision=54721
2000-06-28 13:24:04 +00:00
Matthias Ettrich
f5226e0281 staysOnTop support.
Fixed titlebar-dblclick-commands (Shade instead of winShade )

svn path=/trunk/kdebase/kwin/; revision=54719
2000-06-28 13:20:42 +00:00
Matthias Ettrich
10658d11e0 system tray support
svn path=/trunk/kdebase/kwin/; revision=54677
2000-06-28 07:51:45 +00:00
Matthias Ettrich
7ae8ea2bf9 focus to null (or desktop ) on last-window-iconified
svn path=/trunk/kdebase/kwin/; revision=54602
2000-06-27 14:43:12 +00:00
bhughes
d2bba865d0 update for NET WM-Spec API fix
svn path=/trunk/kdebase/kwin/; revision=54291
2000-06-24 19:09:50 +00:00
Matthias Ettrich
3958a3a1e1 possibility to iconify, deiconify without animation
propagate new desktop on desktop switches _before_ showing new windows

svn path=/trunk/kdebase/kwin/; revision=54279
2000-06-24 17:58:10 +00:00
Waldo Bastian
ce9f4a2365 WABA: React to color changes
svn path=/trunk/kdebase/kwin/; revision=54202
2000-06-24 06:48:53 +00:00
Matthias Ettrich
3693e4ba80 react properly on sendClientToDesktop requests from kicker
svn path=/trunk/kdebase/kwin/; revision=54143
2000-06-23 18:56:59 +00:00
Matthias Ettrich
72abf668d2 iconify/deiconify animation.
Don't forget to update libkdecore and kicker

svn path=/trunk/kdebase/kwin/; revision=54131
2000-06-23 16:26:44 +00:00
Matthias Ettrich
ead1f75144 some cleanups, reconfigure() dcop call
svn path=/trunk/kdebase/kwin/; revision=54046
2000-06-22 21:57:39 +00:00
Matthias Ettrich
6655d0207d focus policies and alt-tab style:
/*!
      Different focus policies:
      <ul>

      <li>ClickToFocus - Clicking into a window activates it. This is
      also the default.

      <li>FocusFollowsMouse - Moving the mouse pointer actively onto a
      normal window activates it. For convenience, the desktop and
      windows on the dock are excluded. They require clicking.

      <li>FocusUnderMouse - The window that happens to be under the
      mouse pointer becomes active. The invariant is: no window can
      have focus that is not under the mouse. This also means that
      Alt-Tab won't work properly and popup dialogs are usually
      unsable with the keyboard. Note that the desktop and windows on
      the dock are excluded for convenience. They get focus only when
      clicking on it.

      <li>FocusStrictlyUnderMouse - this is even worse than
      FocusUnderMouse. Only the window under the mouse pointer is
      active. If the mouse points nowhere, nothing has the focus. If
      the mouse points onto the desktop, the desktop has focus. The
      same holds for windows on the dock.

      Note that FocusUnderMouse and FocusStrictlyUnderMouse are not
      particulary useful. They are only provided for old-fashined
      die-hard UNIX people ;-)

      </ul>
     */
FocusPolicy=ClickToFocus | FocusFollowsMouse | FocusUnderMouse | FocusStrictlyUnderMouse


    /**
       Different Alt-Tab-Styles:
       <ul>

       <li> KDE - the recommended KDE style. Alt-Tab opens a nice icon
       box that makes it easy to select the window you want to tab
       to. The order automatically adjusts to the most recently used
       windows. Note that KDE style does not work with the
       FocusUnderMouse and FocusStrictlyUnderMouse focus
       policies. Choose ClickToFocus or FocusFollowsMouse instead.

       <li> CDE - the old-fashion CDE style. Alt-Tab cycles between
       the windows in static order. The current window gets raised,
       the previous window gets lowered.

       </ul>
     */
AltTabStyle=KDE | CDE

svn path=/trunk/kdebase/kwin/; revision=54010
2000-06-22 18:08:35 +00:00
Matthias Ettrich
4ea2a5c27f some cleanups
svn path=/trunk/kdebase/kwin/; revision=53990
2000-06-22 14:12:13 +00:00
Matthias Ettrich
c0e1ae2879 improved mouse emulation
svn path=/trunk/kdebase/kwin/; revision=53892
2000-06-21 17:43:44 +00:00
Matthias Ettrich
64f8bc08a9 missing file
svn path=/trunk/kdebase/kwin/; revision=53658
2000-06-19 10:45:45 +00:00
Michael Matz
9bf0f3010b s/CARD32/Q_UINT32/g
svn path=/trunk/kdebase/kwin/; revision=53252
2000-06-14 21:39:07 +00:00
David Faure
b9cc5b7cb1 Hmm, somebody went on holidays and forgot to commit killwindow.h apparently :->
Commented out the feature (you didn't think I would reimplement it, did you ?) :)

And took the opportunity of touching Makefile.am for including *.moc in *.cpp
(faster compilation, smaller link lines, less files...)

svn path=/trunk/kdebase/kwin/; revision=52667
2000-06-09 00:20:21 +00:00
Matthias Ettrich
900e2e6c0b Use the new windowmanager interaction API
svn path=/trunk/kdebase/kwin/; revision=52623
2000-06-08 17:05:51 +00:00
Bernd Gehrmann
45e0fc465a KGlobal <-> KGlobalSettings <-> KApplication cleanup
svn path=/trunk/kdebase/kcontrol/; revision=51720
2000-06-03 01:19:08 +00:00
Waldo Bastian
dc5bf6c01c WABA: Don't allow change of focus while resizing / moving.
This prevents a lot of stupid focus changes when you move a window
around with focusFollowsMouse.
(mouse moves -> focus changes -> window moves -> focus changes back)

svn path=/trunk/kdebase/kwin/; revision=51574
2000-06-02 00:20:41 +00:00
Waldo Bastian
b42ee22030 WABA: Focus fixes.
svn path=/trunk/kdebase/kwin/; revision=51431
2000-06-01 05:32:06 +00:00
Waldo Bastian
c3d3c81d64 WABA: Keep focus with same window after switching desktops
svn path=/trunk/kdebase/kwin/; revision=51128
2000-05-30 05:52:11 +00:00
Waldo Bastian
59e4a2c8fc WABA: Try to kill the window under that is actually under the cursor.
svn path=/trunk/kdebase/kwin/; revision=51107
2000-05-29 22:38:43 +00:00
Matthias Ettrich
c0d337d352 cleanups: less debug output, less flicker, less confusing code
svn path=/trunk/kdebase/kwin/; revision=50775
2000-05-26 13:54:50 +00:00
Kurt Granroth
795b743459 Instead of matching for Kicker, let's match for any window that starts
with kicker.  This allows us to apply kicker rules for internalapplets
that are external to Kicker (e.g., kasbar and ktaskbar)

Also converted qDebug calls to kdDebug while I was debugging

svn path=/trunk/kdebase/kwin/; revision=50597
2000-05-24 20:57:42 +00:00
Rik Hemsley
452395b559 Fixed some activation stuff. When you get down to 1 window, it's
activated. This was really annoying me :)

svn path=/trunk/kdebase/kwin/; revision=50437
2000-05-23 14:55:50 +00:00
Waldo Bastian
7c426bc687 WABA: If we set "may not move" we mean it! No cheating via Alt-F3!
svn path=/trunk/kdebase/kwin/; revision=50046
2000-05-20 07:54:11 +00:00
Kurt Granroth
7853d20753 Added support for Ctrl+Alt+Esc to kill a window. I basically just cut-n-
pasted everything from kwm.  It works.

However, I don't know if this fits the new design or not.  Maybe some
of the functions are accomplished elsewhere?  I think Matthias needs
to take a look at this...

But like I said, it does work :-)

svn path=/trunk/kdebase/kwin/; revision=49849
2000-05-17 23:02:42 +00:00
Kurt Granroth
3396c20935 Added new action: Ctrl+Alt+Del will start the logout/shutdown sequence.
Since this uses kaccel, it is (of course) configurable.

svn path=/trunk/kdebase/kwin/; revision=49834
2000-05-17 20:15:17 +00:00
Rik Hemsley
5fc7cf3f1f Implemented delayed-show for tab box. Configurable, by default off.
To set it, put this in kwinrc:
[TabBox]
ShowDelay=true
DelayTime=200 (or whatever you want, in ms)

svn path=/trunk/kdebase/kwin/; revision=49379
2000-05-14 01:58:13 +00:00
Waldo Bastian
626753571d WABA: Fixed a bug which wasted 0.2% of my effective screen size >:-)
svn path=/trunk/kdebase/kwin/; revision=49060
2000-05-10 04:36:50 +00:00
Matthias Ettrich
f2bb598e46 implemented raise/lower
svn path=/trunk/kdebase/kwin/; revision=48888
2000-05-08 19:37:54 +00:00
Rik Hemsley
d2f8cfec65 Fixed kicker getting hidden
svn path=/trunk/kdebase/kwin/; revision=48754
2000-05-07 20:40:16 +00:00
Matthias Ettrich
6a36c54a7f Kwin raises the following sound events via KNotifyClient:
"Window Close"
	 "Window Iconify"
                  "Window DeIconify"
                  "Window Maximize"
                  "Window UnMaximize"
                  "Window Sticky"
                  "Window UnSticky"
                  "Window New"
                  "Window Delete"
                  "Window Trans New"
                  "Window Trans Delete"
                  "Window Shade Up"
                  "Window Shade Down"
                  "Window Move Start"
                  "Window Move End"
                  "Window Resize Start"
                  "Window Resize End"

svn path=/trunk/kdebase/kwin/; revision=48752
2000-05-07 20:38:11 +00:00
Dirk Mueller
7c6272e088 made it compile
svn path=/trunk/kdebase/kwin/; revision=48746
2000-05-07 20:17:33 +00:00
Rik Hemsley
a982506a75 Kicker is now placed _under_ the Mac menubar - it will not obscure it...
except if you press the hide buttons. That needs fixing.

svn path=/trunk/kdebase/kwin/; revision=48570
2000-05-06 18:59:43 +00:00
Rik Hemsley
e167888fd6 Kicker now tells kwin when it's scrolled off-screen
Commented debug info

svn path=/trunk/kdebase/kwin/; revision=48544
2000-05-06 13:30:08 +00:00
Rik Hemsley
7666caed0a Fixed KWinInterface.h (thanks Simon for the temporary fix :)
Reverted the moving of inline functions in workspace.*

svn path=/trunk/kdebase/kwin/; revision=48479
2000-05-05 18:53:37 +00:00
Rik Hemsley
297651e2c3 Understand more about edge-based clients and act appropriately, passing
info along to kdesktop too.

This is funky now :)

svn path=/trunk/kdebase/kwin/; revision=48377
2000-05-04 23:12:29 +00:00
Michael Matz
c142c3ff4a lowerClient now takes two parameters (an additional 'bool dropFocus=true')
if true (default), the lowered client looses focus, and the top of
stacking order gets it. Something is not working if one lowers many
windows one after another... investigating

svn path=/trunk/kdebase/kwin/; revision=48229
2000-05-03 12:57:37 +00:00
Michael Matz
b3f88eb796 implemented lowerClient(), connected middle-Click to it.
Note that it leaves the focus where it was, which may seem strange if the
to be lowered window becomes fully obscured, but to change focus would be
the purpose of the calling function. To be discussed.

svn path=/trunk/kdebase/kwin/; revision=48202
2000-05-03 06:30:37 +00:00
Rik Hemsley
accc728575 Some debug info while I test avoidance of side-hugging windows
svn path=/trunk/kdebase/kwin/; revision=47701
2000-04-28 02:52:09 +00:00
Rik Hemsley
f65ca70e0b Fixed maximisation. Now kwin really does avoid windows which ask
to be avoided. It also updates nicely. Just move kicker from the
bottom to the left, say, and open a new window. It doesn't cover
kicker. Maximise. Still doesn't cover. Seems to work, then.

svn path=/trunk/kdebase/kwin/; revision=47602
2000-04-26 21:28:51 +00:00
Waldo Bastian
b33a6fa71e WABA: Grab mouse while in Alt-Tab or Control-Tab mode. This prevents a bug
which otherwise would occur when you click on the Alt-Tab-window with the
mouse. I hope I didn't break anything because this X-stuff is rather mystical.

BTW Why does KWin get so many "MotionNotify" events when you move your mouse
across certain windows?

svn path=/trunk/kdebase/kwin/; revision=47554
2000-04-26 01:45:10 +00:00
Waldo Bastian
f02955dcba WABA: Make desktop, kicker and the macbar unmovable.
svn path=/trunk/kdebase/kwin/; revision=47007
2000-04-19 04:36:47 +00:00
Rik Hemsley
330ea804b2 Preliminary support for avoiding covering clients such as kicker
which want to be permanently visible.

I've used an XAtom called '_NET_AVOID_SPEC'. This of course can change
if need be. I think it's correct according to the wm spec, but the
wm spec seems to be empty on gnome.org, so who knows.

Windows can choose to be avoided by setting an XTextProperty
with one value, which can be either 'N', 'S', 'E', or 'W', according
to which screen edge they are anchored to.

kwin then sets its 'clientArea' rect appropriately, so that (in
  theory at least) clients will not enter this area in some circumstances,
such as when being mapped for the first time.

You can see that this actually works if you start lots of konsoles. They
don't appear over the panel. I don't know what happens if you move the
panel, but I presume things will be screwed up, because I haven't
looked at that yet.

If you maximise a window, it'll still fill the screen, because the
implementation of maximise in kwin/client.cpp doesn't take account
of the workspace's clientArea rect. This is easy to fix, but I've
been awake for too long, so I'll do it after 42 winks.

svn path=/trunk/kdebase/kwin/; revision=46772
2000-04-16 09:06:03 +00:00
Kurt Granroth
281b293440 Hack to get the kdesktop mac menu sticky since KWin::setSticky doesn't exist
and KWM::setSticky doesn't work.

svn path=/trunk/kdebase/kwin/; revision=46004
2000-04-08 18:45:20 +00:00
Matthias Ettrich
6d299fc9a4 support for the MOTIF noBorder hint
svn path=/trunk/kdebase/kwin/; revision=45820
2000-04-06 18:29:04 +00:00
Matthias Ettrich
b49151074f Session management for KDE-2.x : say hello to the ksmserver
svn path=/trunk/kdebase/kwin/; revision=44552
2000-03-24 22:23:02 +00:00
Matthias Ettrich
12f591923c do not change window placement on style changes
svn path=/trunk/kdebase/kwin/; revision=44451
2000-03-24 09:42:23 +00:00
Matthias Ettrich
7375cc7a17 faster abort when another window manager is running
svn path=/trunk/kdebase/kwin/; revision=44291
2000-03-22 12:36:07 +00:00
Matthias Ettrich
0bb1975556 performance
svn path=/trunk/kdebase/kwin/; revision=44279
2000-03-22 10:06:37 +00:00
Matthias Ettrich
c2b5722a6b small optimizations
svn path=/trunk/kdebase/kwin/; revision=44233
2000-03-21 20:02:27 +00:00