Commit Graph

662 Commits (84c15214c569e45d449a456181135591cf92fbd1)

Author SHA1 Message Date
Luboš Luňák d2e94b988e Watch properties also on the group leader window, for now only
the startup notification property, but it could be extended
to read icons etc. as well if needed (ICCCM 4.1.2.7).

svn path=/trunk/kdebase/kwin/; revision=291218
2004-02-25 09:51:47 +00:00
Luboš Luňák 339c7a297f Change the alt+f3 warning to avoid saying 'use the keyboard shortcut'
when the shortcut is unset.

svn path=/trunk/kdebase/kwin/; revision=290553
2004-02-23 14:25:55 +00:00
Luboš Luňák 37d83f6c9c No need for quoting with KProcess.
svn path=/trunk/kdebase/kwin/; revision=290537
2004-02-23 13:45:36 +00:00
Luboš Luňák 89aefe8811 Before using the global desktop topmenu, try to find any topmenu
belonging to the application.
CCMAIL: 72113-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=289122
2004-02-18 18:27:04 +00:00
Luboš Luňák bf814c45e0 Handle two todo comments from the recent partial struts commit,
and fix a problem with clientArea( WorkArea ) ignoring struts.

svn path=/trunk/kdebase/kwin/; revision=289110
2004-02-18 17:57:57 +00:00
Peter Rockai 2eb784cf35 Support for NETWM partial struts (_NET_WM_STRUT_PARTIAL, we call them
extended here, ask Lubos why :>). This patch also includes workaround
for kicker (in its current state, without extended-strut support), so it
works in xinerama setups as expected. Thanks go to Lubos for help with
implementation and for review.

svn path=/trunk/kdebase/kwin/; revision=288758
2004-02-17 17:34:00 +00:00
Luboš Luňák ed511fc454 Reshuffle the options in the Alt+F3 menu a bit and see what is does ...
svn path=/trunk/kdebase/kwin/; revision=287759
2004-02-13 15:15:37 +00:00
Luboš Luňák 5f079f5e3d Fix for #67416 by Martin Koller + my grab code changes to get mouse
clicks even for the active window.

svn path=/trunk/kdebase/kwin/; revision=286702
2004-02-10 09:24:57 +00:00
Luboš Luňák e5d090ff4d When the X focus gets set to None, reset it to the null focus window,
so that keyboard shortcuts still work.

svn path=/trunk/kdebase/kwin/; revision=284489
2004-02-02 14:17:01 +00:00
Luboš Luňák 1f3ee9b39c Fix problem with: Topmenus enabled, konqueror started, Ctrl+N,
html form submitted -> first window is raised above second,
because the dialog is group transient, and the second's window topmenu
was not above the first's one.

svn path=/trunk/kdebase/kwin/; revision=283817
2004-01-30 14:55:47 +00:00
Luboš Luňák 455e128802 Minor fix - don't show the empty topmenu area for fullscreen windows,
it would obscure the top part of the window.

svn path=/trunk/kdebase/kwin/; revision=280267
2004-01-16 17:03:14 +00:00
Luboš Luňák c1d1b6289f Make sure there aren't two windows given focus with the same X timestamp,
because if one timestamp is reused for activating window A and then
immediatelly window B, and A will want to set focus to one
of its subwindows after receiving WM_TAKE_FOCUS, and will lag a bit,
it will actually set the focus after B, and will win. Fixes #71704.

If somebody still gets the warning, I'd be interested in the backtrace.

svn path=/trunk/kdebase/kwin/; revision=278208
2004-01-09 17:35:21 +00:00
Luboš Luňák 997f45b25e Show the topmenu_space window reserving the space for standalone menubars
only if there's no menubar active. Helps Fredrik to have the menu shadow
exactly in the color he wants :).

svn path=/trunk/kdebase/kwin/; revision=273185
2003-12-15 18:30:14 +00:00
Luboš Luňák 0ba12a0837 Perform whole new window managing with X server grab, in order to prevent
"smart" apps from doing stupid things before they get MapNotify.
This avoids the recent Java+OracleInstaller strange problem too.
The patch may look huge, but it's only adding two KWin wrappers
for X(Un)GrabServer() and uncommenting the calls in Client::manage().

svn path=/trunk/kdebase/kwin/; revision=271152
2003-12-04 13:54:10 +00:00
Luboš Luňák 897e67f79a Partially revert the recent xinerama commit - !isMapped == useCursorPos
was always true, no need for another argument.

svn path=/trunk/kdebase/kwin/; revision=269308
2003-11-24 15:05:50 +00:00
George Staikos 875fc62836 Reimplement Xinerama placement. Patch from Balaji Ramani.
CCMAIL: balaji@yablibli.com

svn path=/trunk/kdebase/kwin/; revision=268719
2003-11-21 23:00:38 +00:00
Luboš Luňák b3c1af874a Temporarily comment out Q_ASSERT's about stacking order, as they're quite
harmless, but everybody blames them in their bugreports.

svn path=/trunk/kdebase/kwin/; revision=268335
2003-11-20 09:05:32 +00:00
Luboš Luňák 95cc10f6ca Try harder to find the matching topmenu for kdesktop.
svn path=/trunk/kdebase/kwin/; revision=268022
2003-11-18 18:10:36 +00:00
Luboš Luňák e636ef9f6b Windows on all desktops are indeed on all desktops.
svn path=/trunk/kdebase/kwin/; revision=266850
2003-11-13 17:13:17 +00:00
Luboš Luňák d46c7413c4 Hopefully final fixes for topmenus managed by KWin to work (#66152).
Written by Schizo, reviewed by Frenia. As it was broken anyway, I don't
think this can break it more.

svn path=/trunk/kdebase/kwin/; revision=266813
2003-11-13 14:34:05 +00:00
Luboš Luňák 0ec4c11585 Small topmenu fixes.
svn path=/trunk/kdebase/kwin/; revision=266534
2003-11-12 10:03:42 +00:00
Luboš Luňák 1d71c9839b Reserve space for topmenus, so there's no flicker, and the space is taken
even with no topmenu shown. Support topmenus only when enabled in kdeglobals.

svn path=/trunk/kdebase/kwin/; revision=266531
2003-11-12 09:47:13 +00:00
Luboš Luňák f4604d4162 Make sure topmenu is on the same virtual desktop as the active window
for which it's shown.

svn path=/trunk/kdebase/kwin/; revision=266399
2003-11-11 18:51:10 +00:00
Luboš Luňák bd81e83d55 Override-redirect windows in the window manager itself don't make any
difference, and Keith Packard said it's better without it for some
translucency toy or whatever it is, so let's get rid of WX11BypassWM in KWin.

svn path=/trunk/kdebase/kwin/; revision=266398
2003-11-11 18:38:19 +00:00
Luboš Luňák f8886f4f01 Make sure desktop is active after startup if there's no other window active
svn path=/trunk/kdebase/kwin/; revision=266152
2003-11-10 18:09:16 +00:00
Luboš Luňák 70645a691a When a new window appears in a group, make sure group transients are
transient for it.

svn path=/trunk/kdebase/kwin/; revision=266151
2003-11-10 18:08:59 +00:00
Luboš Luňák 07b08d5d99 Don't use struts if KWin itself restricts workarea size by topmenus.
svn path=/trunk/kdebase/kwin/; revision=266150
2003-11-10 18:08:04 +00:00
Luboš Luňák 323806acbe Don't obscure windows that are not visible, otherwise switching between
two empty desktops can flicker.

svn path=/trunk/kdebase/kwin/; revision=263247
2003-10-30 17:22:06 +00:00
Luboš Luňák 240ad036d0 Make system tray temporarily set _KDE_SYSTEM_TRAY_EMBEDDING property on
windows while embedding them, allowing KWin to figure out it's being used
and that it's not going away. This hack avoids the reparenting fight
between KWin and QXEmbed where QXEmbed started to loose after the recent
fixes.
In order to make systray really work, QXEmbed still needs some fixes
related to not destroying the embedded window.

svn path=/trunk/kdebase/kwin/; revision=263178
2003-10-30 10:10:54 +00:00
Luboš Luňák 26a5b0bfb4 I'm not sure anymore what that was, but pointing out that kwin could
simply use kdialog was right.

svn path=/trunk/kdebase/kwin/; revision=261293
2003-10-23 13:38:42 +00:00
Luboš Luňák 8b5159bb1a Warn when somebody plays too much, turns off a border and doesn't know how
to put it back *sigh*.

CCMAIL: 64938-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=258583
2003-10-13 16:22:39 +00:00
Luboš Luňák 09f1ceb353 Looks like I reversed this condition in r1.398.2.49 .
svn path=/trunk/kdebase/kwin/; revision=257811
2003-10-10 17:28:47 +00:00
Luboš Luňák d45a853dd4 Fixes related to shown shaded windows.
svn path=/trunk/kdebase/kwin/; revision=257726
2003-10-10 13:00:01 +00:00
Luboš Luňák 83835a8757 Small cleanup related to timestamp handling.
svn path=/trunk/kdebase/kwin/; revision=257715
2003-10-10 12:48:09 +00:00
Luboš Luňák 6b3d8e134a Implemented _NET_MOVERESIZE_WINDOW.
Moved KWin code related to configure request to geometry.cpp to a common function.

svn path=/trunk/kdebase/kwin/; revision=255355
2003-10-01 12:08:53 +00:00
Luboš Luňák 9226142471 Announce support for restacking.
svn path=/trunk/kdebase/kwin/; revision=255113
2003-09-30 15:15:21 +00:00
Stephan Binner 2ec6c54769 Moved window options into a sub-menu. Still not convinced that having full
screen and noborder there is a good idea. How does an application get notified
that it was switched to full screen mode? How do you revert these settings?

svn path=/trunk/kdebase/kwin/; revision=254230
2003-09-26 21:32:49 +00:00
Luboš Luňák dcb2349a19 Fix #64769.
CCMAIL:64769-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=253884
2003-09-25 15:36:10 +00:00
Luboš Luňák f91b62ba2f Disable the "curtain" when changing decoration, it actually seems
to make things worse now.

svn path=/trunk/kdebase/kwin/; revision=253541
2003-09-24 11:00:57 +00:00
Luboš Luňák 10f405c73d Merging kwin core from kwin_iii back to HEAD.
svn path=/trunk/kdebase/kwin/; revision=251608
2003-09-16 19:28:03 +00:00
Luboš Luňák 71d30b5813 At least very basic support for _NET_WM_WINDOW_TYPE_SPLASHSCREEN also in HEAD.
svn path=/trunk/kdebase/kwin/; revision=239649
2003-07-28 13:26:08 +00:00
Dirk Mueller 6bbbe69c0e unbreak compilation (gcc 3.4+)
svn path=/trunk/kdebase/kcontrol/; revision=239225
2003-07-26 10:41:28 +00:00
Stephan Binner 68698772c7 replace('&',"&&")
svn path=/trunk/kdebase/kwin/; revision=237355
2003-07-16 07:04:20 +00:00
Waldo Bastian 1e3aa4ef97 KIOSK: Make it possible to disable window menu entirely
svn path=/trunk/kdebase/kwin/; revision=234965
2003-07-01 21:12:55 +00:00
Dirk Mueller 9113dc840b spelling fixes
svn path=/trunk/kdebase/ksysguard/; revision=234293
2003-06-28 10:31:39 +00:00
Luboš Luňák be51d65058 Fix #60277.
svn path=/trunk/kdebase/kwin/; revision=233897
2003-06-26 13:09:45 +00:00
Luboš Luňák 6dc2810d6a Support NET::DemandsAttention in HEAD too.
svn path=/trunk/kdebase/kwin/; revision=231921
2003-06-17 09:24:14 +00:00
Luboš Luňák 3ea533d147 Filter out FocusIn/FocusOut events. Should help #44881.
svn path=/trunk/kdebase/kwin/; revision=230888
2003-06-11 08:48:13 +00:00
Luboš Luňák 314b20731c Fix warning in HEAD too.
svn path=/trunk/kdebase/kwin/; revision=229645
2003-06-04 18:06:21 +00:00
Luboš Luňák 62dcc1120f I'm honestly not sure why that XAllowEvents() is needed for mouse events
to work, when only keyboard is grabbed with GrabModeAsync for pointer,
but it fixed #59059, and it shouldn't break anything.

svn path=/trunk/kdebase/kwin/; revision=228598
2003-05-29 12:16:27 +00:00
Waldo Bastian 7857c16713 KIOSK: Disable "Configure Window Behavior" menu option when kwinrc is immutable.
svn path=/trunk/kdebase/kwin/; revision=222215
2003-04-26 15:43:20 +00:00
Luboš Luňák 0778f37a58 #44972 too.
svn path=/trunk/kdebase/kwin/; revision=221616
2003-04-23 11:15:54 +00:00
Luboš Luňák 19ce45b1c4 Damn, I managed to commit one file to HEAD and one to 3_1_BRANCH with
the last commit.

svn path=/trunk/kdebase/kwin/; revision=220410
2003-04-16 07:23:17 +00:00
Luboš Luňák 9cb2c00de3 Cleanup of KWin::Info -> KWin::WindowInfo.
Correct detection of minimized windows for KWin HEAD and kwin_iii.
Correct detection of window type even if the list includes unsupported ones.

svn path=/trunk/kdebase/kwin/; revision=219298
2003-04-09 14:20:55 +00:00
Luboš Luňák a25f11125a Fix #55164.
CCMAIL: 55164-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=211101
2003-03-03 18:08:46 +00:00
Luboš Luňák 1f87831837 XRANDR support in HEAD too, so that curious people don't have to use
kwin_iii. It's still #ifdef-ed out by XRANDR_SUPPORT, just like elsewhere
in kdelibs/kdebase.

svn path=/trunk/kdebase/kwin/; revision=211041
2003-03-03 14:03:56 +00:00
Luboš Luňák bb43159a79 Fix for #52206.
svn path=/trunk/kdebase/kwin/; revision=211015
2003-03-03 13:08:36 +00:00
Luboš Luňák 325e45ee26 With 'konqueror --preload', create a KonqMainWindow too.
And KWin related fixes - hack for _KDE_NET_USER_TIME, and don't display
topmenus for non-active windows.

svn path=/trunk/kdebase/kwin/; revision=210251
2003-02-28 14:16:31 +00:00
Luboš Luňák 8557bf1108 I knew I forgot something. Make the API naming match the new ASN spec.
svn path=/trunk/kdebase/kwin/; revision=209110
2003-02-24 18:51:54 +00:00
Luboš Luňák 9bed3f02fe Well, where to start ... ah, yes : Fix #34640 - make startup notification
work with kdesu.
This means
- support for suspending visual feedback for startup notification
- use it in kdesu
- pass KDE_STARTUP_ENV correctly to kdesu-ed apps
- leave only empty now-obsolete StubProcess::notifyTaskbar()

svn path=/trunk/kdebase/kicker/taskmanager/; revision=209053
2003-02-24 15:50:36 +00:00
George Staikos 67c0282087 one more place where we weren't obeying settings
svn path=/trunk/kdebase/kwin/; revision=207612
2003-02-18 05:12:11 +00:00
Richard J. Moore 59e2f7ef98 - Ported SadEagle's XShape support code from ksnapshot to the kwin
window grabbing code.

svn path=/trunk/kdebase/kwin/; revision=205331
2003-02-06 23:11:27 +00:00
Luboš Luňák 32830fe4c6 Disable legacy session support in HEAD KWin too, as ksmserver is not
branched.

svn path=/trunk/kdebase/kwin/; revision=203113
2003-01-27 13:49:15 +00:00
Luboš Luňák 739d1c454c No need for this warning in HEAD I guess.
svn path=/trunk/kdebase/kwin/; revision=201780
2003-01-21 19:09:07 +00:00
Luboš Luňák 45e2d67eb2 Make hasClient() check NET::Desktop windows too.
svn path=/trunk/kdebase/kwin/; revision=198738
2003-01-10 12:36:17 +00:00
Luboš Luňák 86cccebde6 Don't lower topmenu when lowering a window.
svn path=/trunk/kdebase/kwin/; revision=198737
2003-01-10 12:33:09 +00:00
Luboš Luňák 05063a30f5 Above -> KeepAbove
svn path=/trunk/kdebase/kwin/; revision=198736
2003-01-10 12:31:57 +00:00
Luboš Luňák 63fbbb6f83 Just in case.
svn path=/trunk/kdebase/kwin/; revision=197782
2003-01-06 13:16:03 +00:00
Luboš Luňák 70784e0433 Bah, one screws up KWin a bit for the weekend, and there are already
3 bugreports for it.
With KStartupInfo, I unintentionally introduced KWinModule in KWin,
and after the kdecore/netwm* cleanup, it started getting events,
and doing XSelectInput() on clients :(.

svn path=/trunk/kdebase/kwin/; revision=197771
2003-01-06 12:28:28 +00:00
Luboš Luňák aa007a7b63 Enable --enable-final again, and also get rid of that ugly select() hack
that apparently came from Qt - we don't support every stupid Nullix-0.1
out there.

svn path=/trunk/kdebase/kwin/; revision=197769
2003-01-06 12:19:14 +00:00
Luboš Luňák c0b5ad09d0 List all supported features (up to now).
svn path=/trunk/kdebase/kwin/; revision=197213
2003-01-03 17:01:52 +00:00
Luboš Luňák 67b77176dd I missed one propagateClients() call.
svn path=/trunk/kdebase/kwin/; revision=197007
2003-01-02 17:09:00 +00:00
Luboš Luňák a4b6ba8032 Save some duplicated code.
svn path=/trunk/kdebase/kwin/; revision=197003
2003-01-02 16:57:08 +00:00
Luboš Luňák 73e6f75ab7 _NET_NUMBER_OF_DESKTOPS is ok now
svn path=/trunk/kdebase/kwin/; revision=196975
2003-01-02 14:41:22 +00:00
Luboš Luňák 68eb8a80fb _NET_CLIENT_LIST is now ok, except for small stupid detail.
svn path=/trunk/kdebase/kwin/; revision=196944
2003-01-02 13:00:52 +00:00
Luboš Luňák 5100e63107 Client::is_sticky_ is dead and would be gone, if it weren't for BIC.
No need to this duplication of Client::desk == NET::OnAllDesktops.
It's simple, desk == NET::OnAllDesktops - sticky
             desk == 0 - not mapped yet
             desk something else - the desktop the window is on

svn path=/trunk/kdebase/kwin/; revision=196529
2002-12-30 20:34:38 +00:00
Luboš Luňák fc34663134 Fix #52376. Maybe.
svn path=/trunk/kdebase/kwin/; revision=196526
2002-12-30 20:21:50 +00:00
Luboš Luňák 09b8f2b184 Client::is_sticky will go soon, as it may become inconsistent with
Client::desk . But this fixes the problem for now.

svn path=/trunk/kdebase/kwin/; revision=196351
2002-12-29 18:41:54 +00:00
Luboš Luňák 7d89180191 <= numberOfDesktops().
svn path=/trunk/kdebase/kwin/; revision=196350
2002-12-29 18:39:01 +00:00
Ryan Cumming a80aa9abc7 Compile
svn path=/trunk/kdebase/kwin/; revision=196087
2002-12-28 00:25:19 +00:00
Luboš Luňák 92396f254d Work areas (_NET_WORKAREA) are actually to be supposed per-desktop.
svn path=/trunk/kdebase/kwin/; revision=196073
2002-12-27 22:32:17 +00:00
Luboš Luňák 5ad28f6c67 Docks are not required to be sticky, and Kicker etc. set it, so let's not
force it.

svn path=/trunk/kdebase/kwin/; revision=196071
2002-12-27 22:29:22 +00:00
Luboš Luňák 249d025c75 Set the _NET_DESKTOP_GEOMETRY property.
svn path=/trunk/kdebase/kwin/; revision=196068
2002-12-27 22:26:30 +00:00
Luboš Luňák 13620c1952 Update necesary _NET_WM_ properties on the desktop count change.
Also save the desktop names only to kwinrc, there's no reason for them
to be in kdeglobals.

svn path=/trunk/kdebase/kwin/; revision=196064
2002-12-27 22:22:50 +00:00
Luboš Luňák 30a6b25432 Make sure _NET_ACTIVE_WINDOW is always up to date, and set to None
if there's no active window.

svn path=/trunk/kdebase/kwin/; revision=196063
2002-12-27 22:18:10 +00:00
Luboš Luňák a396827dee I wonder if this makes a real difference.
svn path=/trunk/kdebase/kwin/; revision=194589
2002-12-18 08:48:11 +00:00
Luboš Luňák 7b3f3bdd3b CCMAIL: klas.kalass@gmx.de
You managed to backport a nice crash to both 3.1 and 3.0 branches. It would
be nice if you posted your patches for review to kwin@kde.org next time,
especially when backporting.

svn path=/trunk/kdebase/kwin/; revision=194498
2002-12-17 19:27:19 +00:00
Luboš Luňák 336667733e keyboard shortcuts for always-on-top & on-all-desktops
(#49083).

svn path=/trunk/kdebase/kwin/; revision=194462
2002-12-17 16:09:08 +00:00
Klas Kalass 17c4c1f75c do not force desktop menu on top of windows that want to be on top, fixes fullscreen behaviour for non-kde apps with multiple windows (i.e. mplayer)
svn path=/trunk/kdebase/kwin/; revision=193897
2002-12-14 15:20:45 +00:00
Luboš Luňák 6a0c7144b6 KProcess::setUseShell() doesn't make sense here.
svn path=/trunk/kdebase/kwin/; revision=192246
2002-12-05 17:22:46 +00:00
Luboš Luňák 1519056ee1 Grmbl. Make the NET::Menu -> NET::TopMenu hack less strict.
svn path=/trunk/kdebase/kwin/; revision=189732
2002-11-19 14:44:11 +00:00
Luboš Luňák dfcc58b00f Fix #49369 and generally try to improve window matching.
Use WM_WINDOW_ROLE also for fake sessions (Save window settings).
Remember also window type.

svn path=/trunk/kdebase/kwin/; revision=185456
2002-10-24 16:22:15 +00:00
Luboš Luňák 6a1b175c7f Damn, I hate keeping BC in an application.
svn path=/trunk/kdebase/kwin/; revision=184473
2002-10-18 11:26:55 +00:00
Luboš Luňák e494dc3161 Fix #47757. Approved by Gallium.
svn path=/trunk/kdebase/kwin/; revision=184026
2002-10-15 13:42:35 +00:00
Luboš Luňák 35c890d029 Fix #44133. Approved by Gallium.
svn path=/trunk/kdebase/kwin/; revision=184025
2002-10-15 13:41:37 +00:00
Luboš Luňák ad2369b5ac Fix #48378.
svn path=/trunk/kdebase/kwin/; revision=181220
2002-09-30 08:34:24 +00:00
Ellis Whitehead f86f8f1378 Only print out the primary shortcuts (not the secondary) in Workspace::clientPopup()
svn path=/trunk/kdebase/kwin/; revision=180120
2002-09-24 14:23:13 +00:00
Aaron J. Seigo 4706a46264 disambiguate the window manager references in the titlebar menu
Sto&re Settings => Sto&re Window Settings
Configur&e => Configur&e Window Behavior...

svn path=/trunk/kdebase/kwin/; revision=179542
2002-09-22 03:33:06 +00:00
Matthias Ettrich 251c8ec906 disable the close icon (rather than not-checking it!) on non-closeable
windows. Make toolbars closeable by default (I really love to be able
to close kpager again)

svn path=/trunk/kdebase/kwin/; revision=178978
2002-09-19 17:22:31 +00:00
Matthias Ettrich 7a9e7dbb24 WM applet fixes: ignore withdrawn windows on a few more places, and (slightly hacky)
set the skip-taskbar NETWM hin on windows that have an initial_state of WithDrawn

svn path=/trunk/kdebase/kwin/; revision=176459
2002-09-08 15:45:26 +00:00
Luboš Luňák 3d3c5fa658 Fix #47434 .
svn path=/trunk/kdebase/kwin/; revision=175815
2002-09-05 07:57:53 +00:00
Luboš Luňák df05c96459 Ok, looks like it wasn't BIC after all.
svn path=/trunk/kdebase/kwin/; revision=175636
2002-09-04 07:27:06 +00:00
Luboš Luňák 427941efea Keep BC.
svn path=/trunk/kdebase/kwin/; revision=175540
2002-09-03 16:47:41 +00:00
Matthias Ettrich e3dddfb21d the return of the popup_client, at least a tiny little bit :-) See
discussion on kwin@mail.kde.org

svn path=/trunk/kdebase/kwin/; revision=175528
2002-09-03 16:05:30 +00:00
Cristian Tibirna e5d7df3d7f CT: revert non-feature (revision 1.345)
svn path=/trunk/kdebase/kwin/; revision=175049
2002-09-01 11:39:51 +00:00
Luboš Luňák 3b57952b03 Take care of #46042. [...resisted to say here something about Motif >;> ]
svn path=/trunk/kdebase/kwin/; revision=174310
2002-08-28 15:17:31 +00:00
Karol Szwed a33f4313ab - Removing patch by Diego Iastrubini that attempted to fix the bidi issues in
clients by adding an unnecessary 'enable-bidi' checkbox which was never agreed
  upon on the kwin mailing list.

  The use of --reverse is sufficient without needing this checkbox.
  Please discuss largish patches like these first, especially during a feature
  freeze!

  (Everyone also seems to forget the kwin-styles in kdeartwork)

- Make clients look the same with --reverse instead of the broken state they
  were in previously. If the button ordering is not to your liking in reverse
  mode, just change the button positions. (Or send patches for those clients
  that have not got these features yet).

- Clean up popupMenu handling somewhat.

- Remove a global static object in keramik.

svn path=/trunk/kdebase/kwin/; revision=174079
2002-08-27 15:12:14 +00:00
Luboš Luňák 220206e6dd Make sure the window operations popup works for the active window.
Plugin developers should use only Workspace::showWindowMenu() instead
of calling Workspace::clientPopup() and playing with the popup.

svn path=/trunk/kdebase/kwin/; revision=173296
2002-08-22 17:16:47 +00:00
Luboš Luňák 0714a8d003 Get rid of client_popup, as (not) discussed on kwin@.
This patch should fix such interesting things like closing the toplevel
menubar with Alt+F4 or moving Kicker to a different desktop using
keyboard shortcuts.

svn path=/trunk/kdebase/kwin/; revision=170646
2002-08-06 07:45:29 +00:00
Karol Szwed bbb9426543 Fix bug #45759 - CDE window cycling lockup
svn path=/trunk/kdebase/kwin/; revision=168816
2002-07-26 06:26:35 +00:00
Luboš Luňák 487f30a4ec Some fixes for the NET::TopMenu/NET::Menu hack.
svn path=/trunk/kdebase/kwin/; revision=168742
2002-07-25 20:08:09 +00:00
Oliver Bausinger 8824060f12 fix the disappearence of kwinoptions and provide the other (new)
control modules in the Configure... menu

svn path=/trunk/kdebase/kwin/; revision=166110
2002-07-11 20:54:54 +00:00
Luboš Luňák 3e236f2416 I don't think it's a good idea to show menubar belonging to another app.
svn path=/trunk/kdebase/kwin/; revision=165442
2002-07-07 18:54:20 +00:00
Luboš Luňák 37f217a8ce No, it was QObject-style owned by the Workspace object, not that the delete breaks anything.
BTW, the check in 'if(ptr) delete ptr;' is useless, 'delete NULL;' is a no-op.

svn path=/trunk/kdebase/kwin/; revision=165288
2002-07-06 20:16:36 +00:00
Luboš Luňák df4449b0bf Show at least the desktop's toplevel menubar if the app's one isn't visible yet.
svn path=/trunk/kdebase/kwin/; revision=165078
2002-07-05 20:08:17 +00:00
Luboš Luňák 1fab5c76ce NET::Menu -> NET::TopMenu, and make NET::Menu mean what it is supposed to mean.
+ backward compatibility hack

svn path=/trunk/kdebase/kwin/; revision=165076
2002-07-05 20:05:22 +00:00
Luboš Luňák 6d7f113304 Implemented _NET_WM_MOVERESIZE.
Fixed some minor bugs with resizing.

svn path=/trunk/kdebase/kwin/; revision=165071
2002-07-05 20:00:02 +00:00
Cristian Tibirna 2e99608428 CT: re-place a window when it is moved between desktops.
svn path=/trunk/kdebase/kwin/; revision=164082
2002-07-01 04:22:02 +00:00
Gioele Barabucci 9f0f7accc6 KShellProcess -> KProcess + setUseShell(true)
svn path=/trunk/kdebase/kdm/; revision=163814
2002-06-29 15:05:20 +00:00
Cristian Tibirna 9b03ba50c2 CT: two new non-placement policies. No GUI config.
Edit kwinrc and use either of:

Placement=StupidlyCentered
Placement=StupidlyZeroCornered

and then, at a prompt:

dcop kwin KWinInterface reconfigure

svn path=/trunk/kdebase/kwin/; revision=163755
2002-06-29 06:31:33 +00:00
Luboš Luňák 8366e220bf NETWM says we have to set this property to (0,0) if we don't support it
svn path=/trunk/kdebase/kwin/; revision=163694
2002-06-28 20:28:33 +00:00
Luboš Luňák 5380502347 Toplevel menubar is not sticky.
svn path=/trunk/kdebase/kwin/; revision=163046
2002-06-25 07:42:01 +00:00
Nadeem Hasan b36c644b72 Don't show desktop menu when there is only one desktop configured. Thanks
to aseigo for the original patch.

svn path=/trunk/kdebase/kwin/; revision=160391
2002-06-11 19:49:38 +00:00
Gioele Barabucci 21f19dd604 avoid "&" becoming "_" in desk_popup
svn path=/trunk/kdebase/kwin/; revision=158508
2002-05-29 21:31:32 +00:00
Nadeem Hasan 23902d7580 Use proper icon for "Close"
svn path=/trunk/kdebase/kwin/; revision=158507
2002-05-29 21:28:57 +00:00
Waldo Bastian 1448e53da5 Don't show the desktop menubar when a full-screen app is shown.
svn path=/trunk/kdebase/kwin/; revision=157263
2002-05-23 23:57:47 +00:00
Matthias Ettrich a99e99eacc restore legacy session after notifying ksplash that we are up and running
svn path=/trunk/kdebase/kwin/; revision=149562
2002-04-15 13:06:01 +00:00
Waldo Bastian ca1a4a27fa (BR40234)
Fixes disappearing kdesktop-menubar in combination with "desktop icons disabled"

svn path=/trunk/kdebase/kwin/; revision=148030
2002-04-08 23:43:19 +00:00
Cristian Tibirna 6f14920e91 CT: fix for bug:28599 (by M. Ettrich). Update copyright
svn path=/trunk/kdebase/kwin/; revision=147882
2002-04-08 12:58:27 +00:00
Cristian Tibirna de30273aad CT: fix the desktop cascading (got broken sometime during my 2 years sleep).
Closes bug:5370, the oldest kwin bug (filed as a wish, but really a bug).

svn path=/trunk/kdebase/kwin/; revision=147571
2002-04-07 06:55:48 +00:00
Cristian Tibirna e104c57e6a GUI:
CT: close bug:40009

svn path=/trunk/kdebase/kwin/; revision=147552
2002-04-07 02:22:25 +00:00
Alexander Kellett d343b3a1a3 Recommiting PopupInfo after several thousand cleanups inspired by CT
svn path=/trunk/kdebase/kwin/; revision=147307
2002-04-05 19:54:21 +00:00
Matthias Ettrich 789bb8c535 1. fix the "kill kicker with -9 and loose system tray icons" problem:
// If the system tray gets destroyed, the system tray
	    // icons automatically get unmapped, reparented and mapped
	    // again to the closest non-client ancestor due to
	    // QXEmbed's SaveSet feature. Unfortunatly with kicker
	    // this closest ancestor is not the root window, but our
	    // decoration, so we reparent explicitely back to the root
	    // window.


2. Removed popupinfo feature for now. The feature is a great idea, but the
implementation was too much copy&paste and code duplication with the
tab box. Plus it was buggy (no vertical center alignment) and contained
many unused codelines.

3. Fixed and simplified the session management handling (thanks to
KSessionManaged in libkdecore). This way we actually get a proper
discardCommand generated by KApplication, something that was missing
previously.

svn path=/trunk/kdebase/kwin/; revision=146580
2002-04-02 12:36:24 +00:00
Alexander Kellett 3e43789786 "wmaker-like" popup messages on desktop switch.
svn path=/trunk/kdebase/kwin/; revision=146349
2002-04-01 02:54:00 +00:00
Waldo Bastian a0ca762edd * Do not use config.h in header files.
* Throw out unused Xinerama code.

svn path=/trunk/kdebase/kwin/; revision=143596
2002-03-18 08:30:50 +00:00
Stephan Kulow 1b6bb5f2f2 paranoia mode
-    int boundingShaped, clipShaped;
+    int boundingShaped = 0, clipShaped = 0;

svn path=/trunk/kdebase/kwin/; revision=143391
2002-03-17 13:31:35 +00:00
Karol Szwed e9b984e3f8 - Make KApp's "appearanceChanged()" signal properly reconfigure the window
decoration's colors by calling the reset() cdecl.
- Change the options::reload() slot into a public method, as the slot is no
  longer required.

Reviewed by Matthias Elter

svn path=/trunk/kdebase/kwin/; revision=143232
2002-03-16 09:26:49 +00:00
Karol Szwed 42d7554980 Don't crash when closing a window :-)
-    if (c == popup_client)
+    if (c == popup_client && popup)
        popup->close();

svn path=/trunk/kdebase/kwin/; revision=142399
2002-03-11 13:09:56 +00:00
Cristian Tibirna d36b5b10da CT: 2-line modif. Fixes a bad crash.
svn path=/trunk/kdebase/kwin/; revision=142312
2002-03-11 05:02:50 +00:00
Ilya Konstantinov 305331deca Use the new DCOP signals API.
svn path=/trunk/kdebase/kwin/; revision=141700
2002-03-08 07:14:30 +00:00
Ellis Whitehead 779bac3917 Get Win+Tabbing to work when it's associated with Super instead of Meta.
svn path=/trunk/kdebase/kwin/; revision=140912
2002-03-04 12:37:56 +00:00
Cristian Tibirna 1e3bfadcd2 CT: client menu doesn't appear if client isDesktop()
svn path=/trunk/kdebase/kwin/; revision=140749
2002-03-03 23:28:04 +00:00
Matthias Ettrich e264ffa6bb removed unused signal. We can always add it later if we need it. Avoids
qWarning message

svn path=/trunk/kdebase/kwin/; revision=140746
2002-03-03 23:19:56 +00:00
Cristian Tibirna c125fb612d CT: we _really_ don't want to show an operations menu if the active
client is the desktopWidget. Checked by Lubos Lunak

svn path=/trunk/kdebase/kwin/; revision=140684
2002-03-03 21:13:03 +00:00
Matthias Ettrich 3038d6f96b remove skip_taskbar windows from the focus chain after manage
svn path=/trunk/kdebase/kwin/; revision=140616
2002-03-03 16:56:41 +00:00
Cristian Tibirna be3a8384f3 CT: don't warp mouse if we didn't change the desktop (in electric borders). Reviewed by Matthias Ettrich
svn path=/trunk/kdebase/kwin/; revision=140608
2002-03-03 16:29:29 +00:00
Cristian Tibirna 53c0a8100e CT: place the cursor in the center of the window when moving by mouse
svn path=/trunk/kdebase/kwin/; revision=140566
2002-03-03 13:56:55 +00:00
Cristian Tibirna efb48f70ef CT: fix my fix for Ctrl+ArrowKeys moving. Reviewed by Matthias Ettrich
svn path=/trunk/kdebase/kwin/; revision=140544
2002-03-03 12:39:31 +00:00
Cristian Tibirna e0a42fc063 CT: fix the move with keyboard with Ctrl (smaller steps).
Add the missing signal in KWinInterface (to be used in the redesigned client notification)

svn path=/trunk/kdebase/kwin/; revision=140436
2002-03-03 03:31:52 +00:00
Matthias Ettrich c981ba005c fixed spelling error. QT is quick time video, the beloved toolkit is
spelled Qt (note the lowercase 't')

svn path=/trunk/kdebase/kwin/; revision=140332
2002-03-02 21:05:35 +00:00
Matthias Ettrich 83f58ed248 gracefully handle more than one desktop client application (which
happens triggered by a kdesktop bug on David Faure's machine).

You can now launch additional desktop applications with

     kstart --type Desktop konqueror
or
     kstart --type Desktop konsole

and toggle between them with

    dcop kwin default circulateDesktopApplications

svn path=/trunk/kdebase/kwin/; revision=140330
2002-03-02 21:03:49 +00:00
Cristian Tibirna 05129f3b19 CT: fix for gravitate moving non-NW windows on session restore. Many thanks to Matthias Ettrich for saving my day
svn path=/trunk/kdebase/kwin/; revision=140048
2002-03-02 01:34:31 +00:00
Matthias Ettrich dd29e3723c faster configuration changes. No crashes when reconfiguring kwin
several times with invalid plugin strings (happens when running
today's kpersonalizer)

svn path=/trunk/kdebase/kwin/; revision=139725
2002-03-01 01:34:54 +00:00
Matthias Ettrich e34a6ee283 second half of the "avoid stealing focus if possible" fix
svn path=/trunk/kdebase/kwin/; revision=139642
2002-02-28 22:11:43 +00:00
Cristian Tibirna 51268a6d18 CT: make it possible to stop desktop switching when the edge of the desktops group is reached.
Just add RollOverDesktops=false to your kwinrc/[Windows] config file and restart your kwin.
	Thanks to Carsten Pfeiffer for the suggestion

svn path=/trunk/kdebase/kwin/; revision=139620
2002-02-28 21:04:36 +00:00
Luboš Luňák 883950b506 #15829 and #15741
svn path=/trunk/kdebase/kwin/; revision=139496
2002-02-28 15:39:40 +00:00
George Staikos 1cde570a88 Fix behaviour of windows when changing styles on Xinerama. Now they don't
magically fly to other screens.

svn path=/trunk/kdebase/kwin/; revision=139300
2002-02-28 00:43:23 +00:00
Matthias Ettrich 7686ee5f9a almost flicker-free style switches (behind the curtain, at least ;-)
svn path=/trunk/kdebase/kwin/; revision=139288
2002-02-27 23:02:40 +00:00
Ellis Whitehead ee8cafc0f2 Cleanup: remove some commented-out code.
svn path=/trunk/kdebase/kwin/; revision=139264
2002-02-27 21:59:59 +00:00
Luboš Luňák a05c9193da Fix #22403. Also set change current desktop to the last one existing, if
it would be out of bounds.

svn path=/trunk/kdebase/kwin/; revision=139159
2002-02-27 16:17:45 +00:00
Luboš Luňák 994148efcf Fix #25010.
Revision 1.96 was IMHO not the right fix for what it did,
and it's not needed anymore anyway.

svn path=/trunk/kdebase/kwin/; revision=139130
2002-02-27 15:16:43 +00:00
Luboš Luňák bde9fb3af5 Make 'Window to Desktop X' actions work only for NET::Normal and NET::Dialog
windows ... sending Kicker between desktops is fun, but I guess it's better
without this feature.

svn path=/trunk/kdebase/kwin/; revision=135385
2002-02-08 13:25:09 +00:00
Stephan Kulow f92f6d8b4f including config.h so I have a reason to close #34334 :)
svn path=/trunk/kdebase/kwin/; revision=133662
2002-01-24 21:52:11 +00:00
Ellis Whitehead c798226b77 Clean-up, and fix so that Alt+Tabbing works with NumLock or CapsLock on.
svn path=/trunk/kdebase/kwin/; revision=132462
2002-01-19 04:55:32 +00:00
Ellis Whitehead 0fa8002e0d Updates necessary for changes made in the K*Accel* and KKey* classes.
svn path=/trunk/kdebase/kcontrol/; revision=129003
2001-12-29 04:19:24 +00:00
Ellis Whitehead 72b0d20ccc - Pass QString::null for help string of KAccelAction where necessary
- Remove references to KAccelBase

svn path=/trunk/kdebase/klipper/; revision=126545
2001-12-11 04:47:07 +00:00
Cristian Tibirna 3bae17a9bc CT: focus [strictly] under mouse, current active client sticky
(mouse pointer on it), preserve focus while changing desktops
    Thanks to Volker Schatz <V.Schatz at thphys.uni-heidelberg.de>
      for patch

svn path=/trunk/kdebase/kwin/; revision=126219
2001-12-09 04:17:36 +00:00
Ellis Whitehead 7960d9b776 - Remove obsolete slots
- Add detection of shortcut configuration changes

svn path=/trunk/kdebase/kwin/; revision=124812
2001-11-30 08:04:17 +00:00
Waldo Bastian 8c5a34d322 Take into account a wide range of pager-layouts, the pager can set the
required layout via DCOP. Used for desktop left/right/up/down.

svn path=/trunk/kdebase/kwin/; revision=124773
2001-11-29 23:59:54 +00:00
Luboš Luňák eb3d34ed2b I guess my last commit actually broke the placement.
svn path=/trunk/kdebase/kwin/; revision=123264
2001-11-19 22:34:20 +00:00
Luboš Luňák e5b822cc9b This seems to fix the problem with reseting maximized windows during KWin
reset.

svn path=/trunk/kdebase/kwin/; revision=123201
2001-11-19 15:35:26 +00:00
Luboš Luňák 3d0378be0e Fix placement when placing windows on desktop that's not current.
svn path=/trunk/kdebase/kwin/; revision=123194
2001-11-19 14:48:54 +00:00
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