Commit graph

1652 commits

Author SHA1 Message Date
Luboš Luňák
8261663d5d Use kdebug area, and make the messages less cryptic.
svn path=/trunk/kdebase/kwin/; revision=253819
2003-09-25 10:42:11 +00:00
Luboš Luňák
81c3ff262b This can actually happen with moving/resizing started from keyboard,
buttonDown is then set manually.

svn path=/trunk/kdebase/kwin/; revision=253817
2003-09-25 10:37:27 +00:00
Luboš Luňák
0be0f139fa This shouldn't happen at all anymore, so make it fatal.
svn path=/trunk/kdebase/kwin/; revision=253815
2003-09-25 10:36:31 +00:00
Luboš Luňák
8e367689cd Rework restricted move/resize to be readable, and as a side effect make
it finally work correctly.

svn path=/trunk/kdebase/kwin/; revision=253801
2003-09-25 09:29:18 +00:00
Luboš Luňák
b1fe242be0 Use the right parts of XEvent with MotionNotify.
svn path=/trunk/kdebase/kwin/; revision=253800
2003-09-25 09:28:56 +00:00
Gunnar Schmidt
556c95ec32 added the borderSizes() method to the Plastik decoration and corrected the parameters of the borderSizes() method in the KStep decoration
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=253697
2003-09-24 20:02:35 +00:00
Luboš Luňák
67e894e1c6 Update for recent API change.
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=253675
2003-09-24 18:59:07 +00:00
Luboš Luňák
124dd73f49 This should fix #64869 - make sure the user timestamp is valid at the end
of manage().
CCMAIL: 64869-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=253667
2003-09-24 18:31:30 +00:00
Luboš Luňák
8a11c2ff74 Fix transiency loop with WM_TRANSIENT_FOR poiting to itself (e.g. with
ssh-askpass), and put the Only True assert() (TM) back.

svn path=/trunk/kdebase/kwin/; revision=253636
2003-09-24 16:56:49 +00:00
Luboš Luňák
3081abc4b8 Sorry, this is not right. For RTL, gravities should be used.
svn path=/trunk/kdebase/kwin/; revision=253608
2003-09-24 14:53:45 +00:00
Luciano Montanaro
866fc75200 'static' and 'const' added to local variables and pixmap data.
svn path=/trunk/kdebase/kwin/; revision=253599
2003-09-24 14:35:18 +00:00
Luboš Luňák
cefae8f1e4 Allows the decorations to specify which border sizes they support.
Also added GUI for the border size, not perfect, but it's there.

svn path=/trunk/kdebase/kwin/; revision=253572
2003-09-24 12:41:56 +00:00
Luboš Luňák
bfcadaa3de Let's have something more useful in KWin's README than a statement
that it's KWin. For example an explanation how to handle problems
with focus stealing prevention, and hopefully more to come later.

svn path=/trunk/kdebase/kwin/; revision=253547
2003-09-24 11:07:56 +00:00
Luciano Montanaro
89cd9ee65b Made bitmap data constant etc.
svn path=/trunk/kdebase/kwin/; revision=253545
2003-09-24 11:06:08 +00:00
Luboš Luňák
2fdf81d4c6 Don't resize frame to the full size when shaded.
svn path=/trunk/kdebase/kwin/; revision=253542
2003-09-24 11:01:14 +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
9e49d37f82 Fix workarea restrictions when moving/resizing windows.
CCMAIL: 64672-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=253540
2003-09-24 11:00:40 +00:00
Luboš Luňák
592a92f00b Move code related to mouse window resizing to geometry.cpp .
svn path=/trunk/kdebase/kwin/; revision=253538
2003-09-24 10:55:54 +00:00
Luboš Luňák
22979730ee Don't use the already installed headers.
svn path=/trunk/kdebase/kwin/; revision=253537
2003-09-24 10:54:13 +00:00
David Faure
d9066553de KWin crashing on every KDE startup isn't fun.... Some info:
kdeinit: kwin -session 110a000002000106431633100000023760005_1064355176_942460: /mnt/devel/kde/kdecvs/kdebase/kwin/group.cpp:537: void KWinInternal::Cli
ent::addTransient(KWinInternal::Client*): Assertion `cl != this' failed.
(the debug output before that includes a backtrace to _ZN12KWinInternal9Workspace21allowClientActivationEPKNS_6ClientEmbb

#7  0x4141c745 in __assert_fail ()
#8  0x4157fdea in KWinInternal::Client::addTransient(KWinInternal::Client*) ()
#9  0x4157f211 in KWinInternal::Client::setTransient(unsigned long) ()
#10 0x4157feda in KWinInternal::Client::checkTransient(unsigned long) ()
#11 0x4157e7dd in KWinInternal::Workspace::checkTransients(unsigned long) ()
#12 0x415538f2 in KWinInternal::Workspace::addClient(KWinInternal::Client*, KWinInternal::allowed_t) ()
#13 0x415536e4 in KWinInternal::Workspace::createClient(unsigned long, bool) ()
#14 0x415721f5 in KWinInternal::Workspace::workspaceEvent(_XEvent*) ()

svn path=/trunk/kdebase/kwin/; revision=253509
2003-09-24 08:23:39 +00:00
Sandro Giessl
b8c3c6667b Removed pieces of Knifty which I forgot to remove earlier...
Has caused plugin loading problems for some people.

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=253453
2003-09-23 21:16:46 +00:00
Sandro Giessl
863057e660 - The decoration should be useable in reverse layout mode now.
- Readding the possibility to close windows by double clicking the menu
  button on request, setting disabled by default.

svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=253432
2003-09-23 20:39:13 +00:00
Gunnar Schmidt
89601d5312 Changed the KStep and Plastik window decorations to respect the two new (extra wide) border sizes
svn path=/trunk/kdeartwork/kwin-styles/plastik/; revision=253351
2003-09-23 14:45:56 +00:00
Gunnar Schmidt
1f560dbba0 Changed the Web window decoration to respect the two new (extra wide) border sizes
svn path=/trunk/kdebase/kwin/; revision=253349
2003-09-23 14:40:18 +00:00
Gunnar Schmidt
2e416ecfd5 Added two extra huge border sizes (BorderVeryHuge and BorderOversized) that are needed for accessibility reasons.
Together with these two sizes it is possible to provide both average sized borders (e.g., 4, 8 or 12 pixels) and wide borders (e.g., 18, 27, 40 pixels) without gaps in between.

svn path=/trunk/kdebase/kwin/; revision=253347
2003-09-23 14:31:11 +00:00
Matthias Kretz
d5fb3625b1 heh, there are always ways to make it break - I never thought of KCModules
in KCModules:
fix changed state handling

svn path=/trunk/kdebase/kwin/; revision=253186
2003-09-22 20:46:26 +00:00
Script Kiddy
837263f963 CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=253017
2003-09-22 05:22:57 +00:00
Luciano Montanaro
adf7e8bad8 Override default drawbounds().
Now when "Display contents of moving/resizing" windows is disabled, a polygon
approximating the window shape is shown instead of the normal rectangle.

svn path=/trunk/kdebase/kwin/; revision=252937
2003-09-21 20:43:44 +00:00
Luciano Montanaro
ef476127f8 Found the correct method to send mousepresses to kwin. I still miss the
mouserelease, though.

svn path=/trunk/kdebase/kwin/; revision=252930
2003-09-21 20:14:26 +00:00
Kevin Puetz
3b502ae558 b2 needs to check in the right include path also
svn path=/trunk/kdebase/kwin/; revision=252759
2003-09-21 03:42:11 +00:00
Luciano Montanaro
b3792f72bb Enabled the compilation of b2
svn path=/trunk/kdebase/kwin/; revision=252656
2003-09-20 17:46:38 +00:00
Luciano Montanaro
bfd4eccd49 CCMAIL: kwin@kde.org
Ported b2 to the new api.  Well, some stuff does not yet work, but I'll work on
that later, and I'll need some assistance for the Automatic titlebar movement.

There is also a bug when shading the window, but on the bright side,
the client more or less works.

svn path=/trunk/kdebase/kwin/; revision=252655
2003-09-20 17:44:49 +00:00
Diego Iastrubni
380280cf76 fix resizing windows in RTL mode
now the left border is moved instead of the right one, as it should be :)

to test the patch simply run kwin -reverse, and then open konqui and the config
windows, press each one of the categories and you will see.

svn path=/trunk/kdebase/kwin/; revision=252546
2003-09-20 10:37:04 +00:00
Script Kiddy
9ca67c1618 CVS_SILENT made messages
svn path=/trunk/kdebase/kwin/; revision=252519
2003-09-20 05:19:34 +00:00
Luboš Luňák
1e61c406f9 Temporary fix for #64516.
svn path=/trunk/kdebase/kwin/; revision=252394
2003-09-19 14:53:39 +00:00
Luboš Luňák
735ffb369b Oops, looks like I forgot this.
svn path=/trunk/kdebase/kwin/; revision=252387
2003-09-19 14:16:24 +00:00
Luboš Luňák
84dc01a473 Since Workspace::workspaceEvent() now checks also for windowwrapper
and frame events, it's not necessary to handle them specially
there. Also move DestroyNotify handling to windowEvent().

svn path=/trunk/kdebase/kwin/; revision=252355
2003-09-19 11:16:57 +00:00
Luboš Luňák
c433d78a51 Don't use the iconic name when shaded.
svn path=/trunk/kdebase/kwin/; revision=252354
2003-09-19 11:16:40 +00:00
Luboš Luňák
e102cc772b The headers didn't state the licence.
svn path=/trunk/kdebase/kwin/; revision=252352
2003-09-19 11:14:41 +00:00
Luboš Luňák
d8406cf439 Cleanup of Motif hints. Ignore hints forbidding minimize/maximize.
Fix using isResizable()/isMovable() instead of only checking the Motif hint.

svn path=/trunk/kdebase/kwin/; revision=252351
2003-09-19 11:14:16 +00:00
Luboš Luňák
d5dd99ba82 Ensure that KDecoration::width() etc. and KDecoration::widget()->width are
in sync.

svn path=/trunk/kdebase/kwin/; revision=252350
2003-09-19 11:13:24 +00:00
Luboš Luňák
a8b5c7365c Keep workarea edge distance when turning on/off decoration.
Reduce the maximum distance for keeping it at the edge to 1/10 of workarea size.
Update edge distance when changing geometry.

svn path=/trunk/kdebase/kwin/; revision=252349
2003-09-19 11:13:04 +00:00
Luboš Luňák
12ec2718cd Remove hack for splashscreens and focus stealing. This will have to be
done differently.

svn path=/trunk/kdebase/kwin/; revision=252348
2003-09-19 11:12:41 +00:00
Luboš Luňák
1451910bc6 Allow resizing of a window back to its original geometry.
svn path=/trunk/kdebase/kwin/; revision=252347
2003-09-19 11:12:06 +00:00
Luboš Luňák
9fac9d2a43 Fixes for mousePosition().
Since Qt propagates mouse events up the widget hierarchy, it's better
to filter out Qt events rather than X events for the decoration.

svn path=/trunk/kdebase/kwin/; revision=252346
2003-09-19 11:11:07 +00:00
Luboš Luňák
5f4b9de17c Small cleanup of mouse events handling.
svn path=/trunk/kdebase/kwin/; revision=252345
2003-09-19 11:08:37 +00:00
Luboš Luňák
9db6939eca Save windows state in phase2. The XSMP spec allows apps to change
their state in phase1 :(.

svn path=/trunk/kdebase/kwin/; revision=252344
2003-09-19 11:07:46 +00:00
Stephan Kulow
0391b7bfaf need this to compile the clients
svn path=/trunk/kdebase/kwin/; revision=252298
2003-09-19 05:25:18 +00:00
Fredrik Höglund
c6390bdf4c - Use KDecorationFactory::resetDecorations() instead of a custom signal/slot.
- Fixed the crashes reported on the kwin mailing list.
- Various cleanups.

svn path=/trunk/kdebase/kwin/; revision=252169
2003-09-18 17:07:49 +00:00
Sandro Giessl
5f6bd80480 activate Quartz
svn path=/trunk/kdebase/kwin/; revision=252150
2003-09-18 15:27:39 +00:00