Luboš Luňák
22e7409160
Revert r2.51. Tk is either too stupid to see a difference between normal
...
and synthetic configure events, or it's too paranoid to trust the normal
ones.
CCMAIL: 75167-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=287782
22 years ago
Luboš Luňák
0a283ed773
Oops, I broke cancelling fullscreen from Alt+F3.
...
svn path=/trunk/kdebase/kwin/; revision=286754
22 years ago
Luboš Luňák
714d3fcd6c
If e.g. the titlebar is already outside of the workarea, there's no point in performing
...
a restricted move/resize, because then e.g. resize would also move the window (#74555 ).
svn path=/trunk/kdebase/kwin/; revision=286537
22 years ago
Luboš Luňák
b525af029e
Avoid sending synthetic configure notify events with user moving/resizing
...
when a real one will be sent.
svn path=/trunk/kdebase/kwin/; revision=284785
22 years ago
Luboš Luňák
10405ee978
Optimize MotionNotify discarding while moving/resizing.
...
svn path=/trunk/kdebase/kwin/; revision=284784
22 years ago
Luboš Luňák
8d00434917
Don't disallow fullscreening for windows that have maximum size set,
...
way too many apps apparently think setting a maximum or fixed size
and then requesting fullscreen is ok.
CCMAIL: 73509-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=284486
22 years ago
Luboš Luňák
e5d6fb447d
Fix non-NETWM fullscreen applications.
...
CCMAIL:71825-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=281054
22 years ago
Luboš Luňák
24cae23c66
Fix Xinerama placement. Thanks to Malte S. Stretz for help with debugging
...
and testing.
svn path=/trunk/kdebase/kwin/; revision=278437
23 years ago
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
23 years ago
Luboš Luňák
59fa15a185
Read correctly original size when doing partial unmaximalization.
...
CCMAIL: 68106-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=278167
23 years ago
Luboš Luňák
3969e69d23
Oops. Once again, now it compiles.
...
svn path=/trunk/kdebase/kwin/; revision=274323
23 years ago
Anne-Marie Mahfouf
11b288081c
I guess someone had to try to fix it so here am I
...
hope I did right
svn path=/trunk/kdebase/kwin/; revision=274083
23 years ago
Luboš Luňák
45f26c3985
Apparently one needs to be clever when dealing with stupid things (part of #70623 ).
...
svn path=/trunk/kdebase/kwin/; revision=273901
23 years ago
Luboš Luňák
569224d117
Replace the temporary MousePosition enum naming with something that
...
doesn't look so silly and doesn't conflict with Qt.
svn path=/trunk/kdebase/kwin/; revision=273144
23 years ago
Luboš Luňák
9326a7f008
Fix #69787 - off-by-one error when checking top position.
...
CCMAIL: 69787-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=271907
23 years ago
Luboš Luňák
c151780247
Fix #69721 . Also, set the move cursor before input grabs, so the grab
...
uses the new cursor.
svn path=/trunk/kdebase/kwin/; revision=271904
23 years ago
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
23 years ago
Luboš Luňák
0cf7454675
And eventually user moving/resizing seems to work, even with aspect ratios.
...
When moving/resizing, first do the operation unconstrained, then snap
(now it should be even simple to implement snapping while resizing),
then check workarea bounds and finally check constrains, while keeping
the respective fixed order for the resize operation at the same position.
Also geometry() -> initialMoveResizeGeometry, as geometry() may change
with opaque move/resize.
svn path=/trunk/kdebase/kwin/; revision=269301
23 years ago
Luboš Luňák
fde7aedf9c
Removed duplication of code.
...
svn path=/trunk/kdebase/kwin/; revision=269300
23 years ago
Luboš Luňák
3768a7f31f
I apparently didn't comprehend the user move/resize code, otherwise
...
I wouldn't have added something that was there already.
svn path=/trunk/kdebase/kwin/; revision=269299
23 years ago
Luboš Luňák
4cc6229be3
*sigh*, how can somebody name variables for topleft and bottomright corners pp and p?
...
This code is not easy to understand even without meaningless names.
svn path=/trunk/kdebase/kwin/; revision=269298
23 years ago
Luboš Luňák
2c3f9c4069
Some attempts to fix aspect ratios breaking resizing.
...
When resizing windows manually (Client::handleMoveResize()) still doesn't work.
svn path=/trunk/kdebase/kwin/; revision=269296
23 years ago
Luboš Luňák
2553476f53
Don't require both mouse and keyboard grab for move/resize,
...
one of them is enough. Allows resising of the configure shortcut
dialog.
svn path=/trunk/kdebase/kwin/; revision=269294
23 years ago
Luboš Luňák
162c76cf46
Reset Client::buttonDown if startMoveResize() failed
...
due to not being able to grab input. Visible with
resizing the shortcut configure dialog, which has grab.
svn path=/trunk/kdebase/kwin/; revision=269293
23 years ago
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
23 years ago
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
23 years ago
Luboš Luňák
07b08d5d99
Don't use struts if KWin itself restricts workarea size by topmenus.
...
svn path=/trunk/kdebase/kwin/; revision=266150
23 years ago
Sandro Giessl
2ebc2443fc
Call decoration->borders() etc. in resetMaximize() too. -- Fixes some more
...
problems for the Keramik decoration.
svn path=/trunk/kdebase/kwin/; revision=264345
23 years ago
Luboš Luňák
ea011dda6a
Borrowed code for aspect ratios from elsewhere, this time from FVWM.
...
Hopefully this one works better.
svn path=/trunk/kdebase/kwin/; revision=262941
23 years ago
Luboš Luňák
1709cb0e44
Make KDecoration::minimumSize() mean the whole decoration size, not
...
the inner window size.
svn path=/trunk/kdebase/kwin/; revision=262463
23 years ago
Luboš Luňák
43c71a8c72
No delayed deleting of decorations. They'll have to check themselves
...
instead, using KDecorationFactory::exists(). Fixes #66205 , and it wasn't
really that good idea anyway.
svn path=/trunk/kdebase/kwin/; revision=260988
23 years ago
Luboš Luňák
20ffdc2263
Send synthetic configure notify event when manually moving/resizing.
...
svn path=/trunk/kdebase/kwin/; revision=258903
23 years ago
Luboš Luňák
1751ac0880
Fix #31484 - snapping to workarea edges is already done by snapping
...
to windows, snap also to screen edges.
CCMAIL: 31484-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=257737
23 years ago
Luboš Luňák
984c76f0c1
More shade related changes.
...
svn path=/trunk/kdebase/kwin/; revision=257727
23 years ago
Luboš Luňák
34fa4a4399
Cleanup of Xinerama handling. I don't claim I actually fixed something,
...
but at least now the code doesn't look like uncommented random something.
And who knows, maybe I even fixed it ;).
CCMAIL: staikos@kde.org
What the hell does "Show unmanaged windows on:" mean in the kcm dialog?
svn path=/trunk/kdebase/kwin/; revision=257723
23 years ago
Luboš Luňák
e8da27f399
Fix #65462 .
...
svn path=/trunk/kdebase/kwin/; revision=257720
23 years ago
Luboš Luňák
128085b3d7
Don't try to fit a window inside workarea if it's larger.
...
CCMAIL: 65633-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=257662
23 years ago
Luboš Luňák
566d2ec180
Unshade before going fullscreen.
...
svn path=/trunk/kdebase/kwin/; revision=256710
23 years ago
Luboš Luňák
08bb12efcf
If a windows tries to grow larger than the workarea, don't allow it to
...
do so, if size constraints allow it.
If resizing a window would make it get partially out of workarea,
move it so that it stays in workarea.
svn path=/trunk/kdebase/kwin/; revision=255616
23 years ago
Luboš Luňák
121c613228
Gravitation fixes, visible with repeated kwin --replace.
...
svn path=/trunk/kdebase/kwin/; revision=255615
23 years ago
Luboš Luňák
7c751219d0
Check "unshading" by unwanted geometry change during resizing too.
...
svn path=/trunk/kdebase/kwin/; revision=255419
23 years ago
Luboš Luňák
bd4789e32b
Looks like I got window gravities working correctly also for configure requests.
...
CCMAIL: 64981-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=255356
23 years ago
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
23 years ago
Luboš Luňák
ce37c50587
Small cleanups.
...
svn path=/trunk/kdebase/kwin/; revision=255049
23 years ago
Luboš Luňák
4cd961af56
When the original request causing removal of a decoration comes
...
from the decoration, use delayed delete.
svn path=/trunk/kdebase/kwin/; revision=254813
23 years ago
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
23 years ago
Luboš Luňák
3081abc4b8
Sorry, this is not right. For RTL, gravities should be used.
...
svn path=/trunk/kdebase/kwin/; revision=253608
23 years ago
Luboš Luňák
2fdf81d4c6
Don't resize frame to the full size when shaded.
...
svn path=/trunk/kdebase/kwin/; revision=253542
23 years ago
Luboš Luňák
9e49d37f82
Fix workarea restrictions when moving/resizing windows.
...
CCMAIL: 64672-done@bugs.kde.org
svn path=/trunk/kdebase/kwin/; revision=253540
23 years ago
Luboš Luňák
592a92f00b
Move code related to mouse window resizing to geometry.cpp .
...
svn path=/trunk/kdebase/kwin/; revision=253538
23 years ago