Commit graph

13908 commits

Author SHA1 Message Date
Martin Gräßlin
3434358acd [aurorae] Handle client palette changes
When the client's palette changes we need to update the internal colors
and emit a colorChanged, so that the decoration can repaint.

BUG: 357311
FIXED-IN: 5.5.5
REVIEW: 126891
2016-02-25 08:04:09 +01:00
l10n daemon script
11514079ea SVN_SILENT made messages (.desktop file) 2016-02-20 12:46:35 +00:00
l10n daemon script
5e1a8c6b63 SVN_SILENT made messages (.desktop file) 2016-02-08 16:14:11 +00:00
David Edmundson
90112ef0cd Use new Qt flag to disable high DPI scaling on X
This flag was set for main_wayland but not X.

BUG: 357896
REVIEW: 126810
2016-01-26 17:01:41 +00:00
Jonathan Riddell
9d57ecf23d Update version number for 5.5.4
GIT_SILENT
2016-01-26 10:30:28 +00:00
l10n daemon script
e202ad46a1 SVN_SILENT made messages (.desktop file) 2016-01-20 15:37:46 +00:00
Thomas Lübking
e641022bf9 skip SWAP_BEHAVIOR_PRESERVED for supportsBufferAge
pointless and unsupported on latter MESA/DRI3
http://lists.freedesktop.org/archives/mesa-dev/2015-November/100869.html

Thanks to Uriy Zhuravlev for reporting and investigation

BUG: 356992
FIXED-IN: 5.5.4
2016-01-18 11:02:26 +01:00
l10n daemon script
808e003481 SVN_SILENT made messages (.desktop file) 2016-01-17 13:26:59 +00:00
l10n daemon script
2528ca4660 SVN_SILENT made messages (.desktop file) 2016-01-12 14:42:43 +00:00
Martin Gräßlin
a18177cc24 [backends/drm] Set mode when changing from/to a gbm buffer
Tiling configurations of DRM and GBM buffers differ, so we need to
explicitly set the mode when it changes.

BUG: 357543
FIXED-IN: 5.5.4
2016-01-11 12:53:14 +01:00
l10n daemon script
096b61ee44 SVN_SILENT made messages (.desktop file) 2016-01-10 14:47:34 +00:00
Jonathan Riddell
0c5bed27de Update version number for 5.5.3
GIT_SILENT
2016-01-06 11:29:25 +00:00
l10n daemon script
e616d7e143 SVN_SILENT made messages (.desktop file) 2015-12-30 12:19:00 +00:00
l10n daemon script
87ccc5010a SVN_SILENT made messages (.desktop file) 2015-12-29 13:53:25 +00:00
l10n daemon script
9356fb52fb SVN_SILENT made messages (.desktop file) 2015-12-26 11:41:27 +00:00
Jonathan Riddell
03c198e31e Update version number for 5.5.2
GIT_SILENT
2015-12-22 10:11:20 +00:00
Jan Kundrát
05c542ad60 Fix build with Qt 5.6
A recent change [1] led to Qt5PlatformSupport.pc not being installed
anymore. Pkg-config was only used for finding the paths, and the actual
include flags and library names were hardcoded in KWin's
FindQt5PlatformSupport.cmake anyway, so let's just focus on finding
Qt5Gui, the module which provides this Qt5PlatformSupport library, and
work from there.

Thanks to Hrvoje Senjan (shumski) for pointing me towards the upstream
Gerrit change.

[1] https://codereview.qt-project.org/140954/

REVIEW: 126234
2015-12-20 07:45:56 -06:00
Nerdopolis Turfwalker
3247382752 [backends/fbdev] Support framebuffers with different color depths
Support more framebuffer color depths

REVIEW: 126262
BUG: 355569
FIXED-IN: 5.5.1
2015-12-15 13:05:00 +01:00
Martin Gräßlin
14b9046ad2 Unblock signals in child processes
We need to unblock the signals blocked with pthread_sigmask.
This caused kdeinit to block, because it relies on SIGUSR1.

BUG: 356580
FIXED-IN: 5.5.1
REVIEW: 126361
2015-12-15 13:03:30 +01:00
Jonathan Riddell
2f1731222a Update version number for 5.5.1
GIT_SILENT
2015-12-15 10:04:24 +00:00
Martin Gräßlin
2d6fe2cb05 [wayland] Forward error channel of launched processes
This ensures that the redirection to xwayland-errors works properly
for a complete session.
2015-12-15 10:08:36 +01:00
l10n daemon script
b2f053893e SVN_SILENT made messages (.desktop file) 2015-12-14 13:05:42 +00:00
Thomas Lübking
86f2a71b9a ensure to cancel animation on p-re-invocation
BUG: 356381
FIXED-IN: 5.5.1
REVIEW: 126277
2015-12-08 20:32:56 +01:00
Thomas Lübking
fab806df92 avoid pointless kbd grab on moveresize
This makes (Qt5?) clients believe they lost input, ie. are no longer
active and change their visual representation.

REVIEW: 126266
2015-12-08 20:32:32 +01:00
Jonathan Riddell
ca7bf7dbe4 Update version number for 5.5.0
GIT_SILENT
2015-12-03 11:27:16 +00:00
Jonathan Riddell
7940a0d16d Update version number for 5.5.90
GIT_SILENT
2015-12-03 11:16:43 +00:00
Martin Gräßlin
d89777bcac Make Wayland::EGL optional again
This is needed to make KWin build-able on non-Linux, but is actually
only a workaround. The dependency should also be available on non-Linux.

This disables the EGL integration in the Wayland backend (QPainter still
available) and the EGL fallback in the qpa plugin (preferred context
sharing still available, but requires a working OpenGL Scene).

REVIEW: 126202
2015-12-01 07:58:47 +01:00
Martin Gräßlin
a055e2de82 Only compile VirtualTerminal if libinput is found
The implementation of VirtualTerminal is too linux specific and doesn't
compile on e.g. freebsd. Currently the most usage is in combination with
libinput. Only usage is:
* libinput related functionality in InputRedirection
* backends without custom input handling

Thus binding the feature to whether libinput is available is currently
the least invasive approach to get it compile on non-Linux.

In the long run this needs a different solution. The functionality
provided by VirtualTerminal is required and without the backends don't
work. It's needed to get notified about VT switches, when KWin needs to
stop rendering. So a solution for non-Linux needs to be found if
non-Linux wants to provide Wayland in future.

REVIEW: 126182
2015-12-01 07:57:39 +01:00
l10n daemon script
c8e0a4b975 SVN_SILENT made messages (.desktop file) 2015-11-30 13:09:41 +00:00
l10n daemon script
f17e9c2e68 SVN_SILENT made messages (.desktop file) 2015-11-29 11:40:15 +00:00
l10n daemon script
acfef30207 SVN_SILENT made messages (.desktop file) 2015-11-26 18:12:55 +00:00
Martin Gräßlin
38cde38edf Ensure Scene doesn't render non lock screen windows while screen is locked
The last stage for window rendering is triggered by
Scene::finalDrawWindow. Adding a security check there if screen is locked
no non-lock screen window should be rendered.

Unfortunately this method is virtual so the check needs to be done in the
base and all implementing child methods (currently only OpenGL).

REVIEW: 126144
2015-11-26 08:30:57 +01:00
Martin Gräßlin
3e007b5198 [effects] Disable more effects while screen is locked
Most of those effects didn't need special screen locking handling on
X11 as they prevented screen locking. On Wayland though, we don't
want the lock screen shown on a cube.

REVIEW: 126122
2015-11-26 08:30:29 +01:00
l10n daemon script
c69c46d8ca SVN_SILENT made messages (.desktop file) 2015-11-25 18:20:33 +00:00
Thomas Lübking
3525d1ce02 explicitly update the stack track on unminimization
the stackingOrderChanged() signal came before the window turned an effect window
usually this is no problem as the change shall not be caught anyway, but
the window may have changed its stack position

BUG: 353745
FIXED-IN: 5.5
REVIEW: 126134
2015-11-24 22:38:49 +01:00
Thomas Lübking
e2632f3816 correctly scale and position logout window
window wasn't correctly represented in
zoom, present windows and desktop grid effects

on the fly code streamlining:
- logout and above windows were handled equally in different code paths
- windows were painted on 0 opacity instead of just aborting the paint

local semi-paintdata because PaintData isn't assignable
(const dptr, I think) and we're post freeze.

BUG: 355539
FIXED-IN: 5.5
REVIEW: 126133
2015-11-24 22:38:01 +01:00
Martin Gräßlin
3361373445 [backends/hwcomposer] Announce support for DPMS
Hooked up to toggle blank output dependent on state.

REVIEW: 126095
2015-11-23 11:48:39 +01:00
Jonathan Riddell
d7398c4f50 Update version number for 5.4.95
GIT_SILENT
2015-11-19 11:39:24 +00:00
Martin Gräßlin
416d8060cf Don't query for GL_CONTEXT_FLAGS if not at least OpenGL 3.0
Patch by Thomas Lübking.

BUG: 355522
2015-11-19 11:20:33 +01:00
Martin Gräßlin
23784d2038 [wayland] Introduce an additional --exit-with-session command line arg
This is similar to the applications to start. That is the value of the
command line argument is interpreted as a command to start.
The difference is that when this application exits, KWin will also quit.
The argument is so to say interpreted as a session.

Reviewed-By: Bhushan Shah
2015-11-19 09:28:51 +01:00
Martin Gräßlin
eabddf939b Add path to kwin_wayland binary to KWin's installed CMakeConfig
The absolute path is needed by e.g. startplasmacompositor.

REVIEW: 126106
2015-11-19 09:28:16 +01:00
Yuri Chornoivan
7a57e8c20a Fix minor typo 2015-11-18 19:07:09 +02:00
Martin Gräßlin
681113e4a6 [wayland] Reset internalWindow if the QWindow gets destroyed
Prevents use after free usages.

Reviewed-By: Bhushan Shah
2015-11-18 15:43:54 +01:00
Martin Gräßlin
4d883a9cda Ensure pointer position is updated before screen locker enforcement
We need to update the pointer position, also if the screen is locked.
Otherwise the pointer doesn't move on the locked screen with libinput.

In addition we need to use the m_globalPointer for finding the correct
lock screen window as updatePointerWindow also does sanity checking on
the coordinates.

Also we need to introduce security checks where we use the signal.

REVIEW: 126103
2015-11-18 14:42:23 +01:00
Martin Gräßlin
3be016fba4 [wayland] Destroy all ClientConnections on tear down
Ensures that all Wayland objects are destroyed and the cleanup handling
is performed before tearing down the Compositor. This fixes for example
a crash if a Surface with a Shadow is still around at tear down.
2015-11-18 10:29:10 +01:00
Thomas Lübking
12b63e2aa7 remove deleted windows from motionmanagers
Eg. if a window is closed while "timeline.currentValue() == 0",
slotWindowClosed() will shortcut exit and not be removed from the
managers, thus dangle around forever.

Maybe there're other ways for a window to be deleted w/o
the closed slot being entered.

CCBUG: 339970
REVIEW: 126034
2015-11-17 21:30:43 +01:00
Thomas Lübking
a4791e629d Add rule to protect the focus on a window
This allows to pin the focus on certain window as well
as to more easily give it away on others (typically launchers)

BUG: 185060
CCBUG: 337798
FIXED-IN: 5.5
REVIEW: 126059
2015-11-17 21:30:05 +01:00
Thomas Lübking
37a64dcf5f catch lost FOCUS_POINTER_ROOT FOCUS_IN events
it seems we can "loose" focus reversions when the closing client hold a grab
(eg. the screenlocker or some games) thus we catch the typical pattern
(though we don't want the focus on the root anyway)

BUG: 348935
FIXED-IN: 5.5
REVIEW: 126033
2015-11-17 21:29:45 +01:00
Martin Gräßlin
01451eea36 Revert "Handle conflicts between epoxy and manually resolved function pointers"
This reverts commit ac1dbac8b1.
2015-11-17 14:58:59 +01:00
Martin Gräßlin
e71a230213 [hwcomposer] Add support for backlight through light_device_t
We use the hw module's backlight and set the color to either 0
or FF depending on whetehr we want to have the screen on or off.
This turns the backlight off properly. It is bound to the toggleBlank
functionality so that we always turn on/off the backlight depending
on whether our compositor is on or off.

In addition we listen to key release events on the power button to
toggle the state.

REVIEW: 126083
2015-11-17 14:45:34 +01:00