From 5a49a411dd1010958d0085f94dc5d4496b333c3b Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 3 Jun 2001 09:30:19 +0000 Subject: [PATCH] whoops, restoring binary compatibility in case we want it (SC was given) svn path=/trunk/kdebase/kwin/; revision=100140 --- Makefile.am | 2 +- workspace.cpp | 15 ++++++++++----- workspace.h | 5 ++++- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Makefile.am b/Makefile.am index 84f6b24440..a77a23431a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,7 +18,7 @@ kwinincludedir = $(includedir)/kwin kwininclude_HEADERS = options.h client.h workspace.h kwin_SOURCES = kwin_main.cpp -kwin_LDADD = kwin.la $(LIBXINERAMA) +kwin_LDADD = kwin.la kwin_LDFLAGS = $(all_libraries) $(KDE_RPATH) KDE_ICON = kwin diff --git a/workspace.cpp b/workspace.cpp index 369fd75820..60ce4d8402 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -2885,10 +2885,10 @@ QPoint Workspace::adjustClientPosition( Client* c, QPoint pos ) for (l = clients.begin();l != clients.end();++l ) { if ((*l)->isOnDesktop(currentDesktop()) && (*l) != desktop_client && - !(*l)->isIconified() -#if 0 - && (*l)->transientFor() == None -#endif + !(*l)->isIconified() +#if 0 + && (*l)->transientFor() == None +#endif && (*l) != c ) { lx = (*l)->x(); @@ -3643,6 +3643,11 @@ QRect Workspace::clientArea(clientAreaOption opt) return area.intersect(rect); } +// ### KDE3: remove me! +QRect Workspace::clientArea() +{ + return clientArea( MaximizeArea ); +} void Workspace::loadDesktopSettings() { @@ -3730,5 +3735,5 @@ void Workspace::checkStartOnDesktop( WId w ) if( info.desktop() == 0 ) info.setDesktop( data.desktop()); } - + #include "workspace.moc" diff --git a/workspace.h b/workspace.h index 2fe8d2db42..e8b1030f76 100644 --- a/workspace.h +++ b/workspace.h @@ -115,7 +115,10 @@ public: enum clientAreaOption { PlacementArea, MovementArea, MaximizeArea }; - QRect clientArea(clientAreaOption opt = MaximizeArea); + + // default is MaximizeArea + QRect clientArea(); // ### KDE3: remove me! + QRect clientArea(clientAreaOption); void removeClient( Client* );