Feed Advanced Search

Jan 24 2019

graesslin added a comment to D18494: [wayland] Discard Force Temporarily rules for shell clients.

Hmm... I would say we need to figure out the intention behind force temporarily and whether this concept can be mapped to Wayland.

Jan 24 2019, 5:33 PM · KWin
graesslin added inline comments to D18464: [autotests] Rewrite testShellClientRules.
Jan 24 2019, 2:17 PM · KWin
graesslin added a comment to D18496: [wayland] Make clients with forced minimize state unminimizeable.

Could you please add a test case

Jan 24 2019, 2:09 PM · KWin
graesslin added a comment to D18494: [wayland] Discard Force Temporarily rules for shell clients.

Could you please add this to the test case. IIRC we have already a few tests for force temporary.

Jan 24 2019, 2:08 PM · KWin
graesslin accepted D18488: Apply -Wno-inconsistent-missing-override for all compilers.
Jan 24 2019, 7:26 AM · KWin

Jan 23 2019

graesslin added a comment to D18453: Reload Shm texture when buffer size changes.

Could this be our firefox issue?

That would be nice, but I'm afraid not. It's nothing in the rendering code, we can see they just stop sending us frames.

Jan 23 2019, 5:15 PM · KWin
graesslin added a comment to D18460: Make sure we check for any GL errors generated from glGetIntegerv.

Keep in mind that the Nvidia driver triggered endless loops in checkglerror.

Jan 23 2019, 4:52 PM · KWin

Jan 22 2019

graesslin accepted D18366: Fix flickering with Qt 5.12.
Jan 22 2019, 5:36 PM · KWin
graesslin added a comment to D18453: Reload Shm texture when buffer size changes.

Could this be our firefox issue?

Jan 22 2019, 5:34 PM · KWin
graesslin accepted D18453: Reload Shm texture when buffer size changes.
Jan 22 2019, 5:33 PM · KWin
graesslin added a comment to D18452: [autotests] Sub-surface resize test.

Cool stuff! I assume you want to push together with a patch fixing this?

Jan 22 2019, 5:31 PM · KWin
graesslin added a comment to D18436: [platform/virtual] Swap buffers in EGL GBM backend.

Do the tests pass without the change?

Jan 22 2019, 5:28 PM · KWin
graesslin added a comment to D18410: Implement PlasmaShellSurface::popupBehavior in kwin.

That's an evil twist. Idea: make the windows panels with windows go below?

Jan 22 2019, 5:25 PM · KWin
graesslin added a comment to D18167: Move -Wsuggest-override -Wlogical-op to regular compiler settings.

The human error exists as long as clang-tidy is not used. What I fear is that someone does a hand porting - we have seen several attempts to do that in KWin from various developers. If devs don't know and now fix the warnings, they can bring in human error.

Jan 22 2019, 4:13 PM · Build System, Frameworks
graesslin added a comment to D18410: Implement PlasmaShellSurface::popupBehavior in kwin.

Stays on top is wrong. The window needs to be in the dock layer, not in the above layer. With keep above other keep above windows can still go on top of it.

Jan 22 2019, 5:09 AM · KWin

Jan 21 2019

graesslin added a comment to D18410: Implement PlasmaShellSurface::popupBehavior in kwin.

Stupid question: the popups are transient to the panel? If yes we can fix in layer. A panel transient should be in panel layer and thus above the windows without any client side tricks.

Jan 21 2019, 4:49 PM · KWin
graesslin added a comment to D18366: Fix flickering with Qt 5.12.

Suggestion: we take this for stable branches and switch to doing it ourselves in master.

Jan 21 2019, 4:45 PM · KWin
graesslin added a comment to D18410: Implement PlasmaShellSurface::popupBehavior in kwin.

I'm not totally happy with calling it popup behavior. In X speak this is not a popup.

Jan 21 2019, 5:30 AM · KWin
graesslin added a comment to D18167: Move -Wsuggest-override -Wlogical-op to regular compiler settings.

For done code this warning is pointless and negative. I invite you to work with a code base like KWin where it is more important to have a working git blame than protection for theoretical problems. Nobody will be able to guarantee that a 500+ change to add override won't break. Human errors happen, nobody will be able to review something like that. Addressing this warning by adding override all over our legacy code base has a serious risk.

Jan 21 2019, 5:28 AM · Build System, Frameworks

Jan 20 2019

graesslin added a comment to D18167: Move -Wsuggest-override -Wlogical-op to regular compiler settings.

This causes in KWin 500+ new warnings. Do you really think it's a good idea to spam all of KDE with new compiler warnings. KDE has an old code base. We cannot enable warnings for the way you developed C++ for 20 years.

Jan 20 2019, 5:09 PM · Build System, Frameworks
graesslin added a comment to D18406: Silence warnings in TabBoxHandler.
In D18406#396909, @zzag wrote:

I don't see any warnings. Could you please provide the warning message?

Jan 20 2019, 4:38 PM · KWin
Restricted Application added a project to D18405: Switch ThumbnailItem to internal uuid instead of WId: KWin.
Jan 20 2019, 1:18 PM · KWin
graesslin requested review of D18406: Silence warnings in TabBoxHandler.
Jan 20 2019, 1:12 PM · KWin
graesslin added a dependency for D18405: Switch ThumbnailItem to internal uuid instead of WId: D18228: Add windowsystem plugin for KWin's qpa.
Jan 20 2019, 1:11 PM · KWin
graesslin added a dependent revision for D18228: Add windowsystem plugin for KWin's qpa: D18405: Switch ThumbnailItem to internal uuid instead of WId.
Jan 20 2019, 1:11 PM · KWin
graesslin requested review of D18405: Switch ThumbnailItem to internal uuid instead of WId.
Jan 20 2019, 1:11 PM · KWin
graesslin accepted D18383: [autotests] Use unloadAllEffects.

I guess the idea of the old code was to get a possibility to see which one fails to unload.

Jan 20 2019, 8:46 AM · KWin
graesslin accepted D18393: [libkwineffects] Port AnimationEffect to new connect syntax.
Jan 20 2019, 8:45 AM · KWin
graesslin accepted D18292: [autotests] Update tests to use stable version of xdg-shell.
Jan 20 2019, 8:43 AM · KWin
graesslin added a comment to D18368: [effects] Port to new connect syntax.

Given that it compiles, it looks fine to me

Jan 20 2019, 8:40 AM · KWin
graesslin added a comment to D18366: Fix flickering with Qt 5.12.

Maybe we shouldn't rely on Qt doing that for us, but just do it ourselves.

Jan 20 2019, 8:38 AM · KWin

Jan 17 2019

graesslin added a comment to D18307: Call frameRendered for undamaged Wayland surfaces.

This does not take into account: A server should avoid signaling the frame callbacks if the surface is not visible in any way, e.g. the surface is off-screen, or completely obscured by other opaque surfaces.

Jan 17 2019, 4:01 PM · KWin

Jan 16 2019

graesslin added a comment to D18293: Set rows in virtualdesktop protocol.

Can't we simplify by connecting once to rowsChanged signal?

Jan 16 2019, 5:02 PM · KWin
graesslin updated the diff for D18228: Add windowsystem plugin for KWin's qpa.

make findWindow(QWindow*) also work for X11 by looking through Unmanaged

Jan 16 2019, 4:44 PM · KWin

Jan 14 2019

graesslin added a comment to D18228: Add windowsystem plugin for KWin's qpa.
In D18228#393160, @zzag wrote:

Generally speaking, it would be great to have protocol-agnostic internal clients, but tbh I haven't thought too much about this.

Jan 14 2019, 7:36 PM · KWin
graesslin planned changes to D13459: [RFC] Implement new window tab API in DecoratedClientImpl.
Jan 14 2019, 5:50 PM · KWin
graesslin updated the diff for D18228: Add windowsystem plugin for KWin's qpa.
  • Add EffectsHandler::findWindow(QWindow*) -> EffectWindow*
  • Fix coding style
Jan 14 2019, 5:46 PM · KWin

Jan 13 2019

graesslin requested review of D18228: Add windowsystem plugin for KWin's qpa.
Jan 13 2019, 5:05 PM · KWin
graesslin added a comment to D18226: Port Scene away from foreach.

I wouldn't start porting away from foreach before Qt 6 has it removed. Quite simply I don't think it will be removed. foreach and extended for behave differently as the qAsConst things show. Using extended for on Qt container is extremely expensive (let's ignore the fact that we know that stuff, think of the average developer with hardly any Qt background).

Jan 13 2019, 4:20 PM · KWin

Jan 12 2019

graesslin committed R108:33c7edaaf479: Use reserve on QVector<Phase2Data> (authored by graesslin).
Use reserve on QVector<Phase2Data>
Jan 12 2019, 2:16 PM
graesslin closed D18208: Use reserve on QVector<Phase2Data>.
Jan 12 2019, 2:16 PM · KWin
graesslin committed R133:dfd02160746b: Fix fallback to built-in ui (authored by graesslin).
Fix fallback to built-in ui
Jan 12 2019, 2:14 PM
graesslin closed D16945: Fix fallback to built-in ui.
Jan 12 2019, 2:14 PM · Plasma
graesslin committed R133:552932c8baab: Disable kcrash in greeter in same way as in KWin (authored by graesslin).
Disable kcrash in greeter in same way as in KWin
Jan 12 2019, 2:14 PM
graesslin closed D16943: Disable kcrash in greeter in same way as in KWin.
Jan 12 2019, 2:14 PM · Plasma
graesslin added a comment to D17884: [effects] Enable touchpoints by default.

I used this for a week, and tried to poke my laptop screen more.

It didn't bother me, but I can't say I really gained anything as my finger was always in the way of the small circle.

Jan 12 2019, 2:09 PM · KWin
graesslin accepted D18207: Drop Phase2Data constructors.
Jan 12 2019, 2:06 PM · KWin
graesslin requested review of D18208: Use reserve on QVector<Phase2Data>.
Jan 12 2019, 1:40 PM · KWin
graesslin added a comment to D18198: Use QVector in paintGenericScreen.

That's due to change in Qt6.

Oh, I wasn't aware of that. Where do you have that information from? I'd love to read up about it.

Jan 12 2019, 10:02 AM · KWin
graesslin committed R108:825aa4ac3886: [platform/virtual] Drop support for vgem and rendernode (authored by graesslin).
[platform/virtual] Drop support for vgem and rendernode
Jan 12 2019, 7:39 AM
graesslin committed R108:c2c92fab518b: Ensure the Compositor does not start during termination (authored by graesslin).
Ensure the Compositor does not start during termination
Jan 12 2019, 7:39 AM
graesslin closed D18160: [platform/virtual] Drop support for vgem and rendernode.
Jan 12 2019, 7:39 AM · KWin
graesslin closed D18015: Ensure the Compositor does not start during termination.
Jan 12 2019, 7:39 AM · KWin
graesslin committed R108:99df3c82f363: [autotests] Don't check whether there is a /dev/dri/card0 (authored by graesslin).
[autotests] Don't check whether there is a /dev/dri/card0
Jan 12 2019, 7:39 AM
graesslin committed R108:b1d753d7a640: Cast to AbstractClient instead of Client in Toplevel::setReadyForPainting (authored by graesslin).
Cast to AbstractClient instead of Client in Toplevel::setReadyForPainting
Jan 12 2019, 7:39 AM
graesslin closed D18014: [autotests] Don't check whether there is a /dev/dri/card0.
Jan 12 2019, 7:39 AM · KWin
graesslin closed D17898: Cast to AbstractClient instead of Client in Toplevel::setReadyForPainting.
Jan 12 2019, 7:39 AM · KWin
graesslin committed R108:2799f69533ec: Move groupTransient and group from Client to AbstractClient as virtual (authored by graesslin).
Move groupTransient and group from Client to AbstractClient as virtual
Jan 12 2019, 7:39 AM
graesslin closed D17890: Move groupTransient and group from Client to AbstractClient as virtual.
Jan 12 2019, 7:39 AM · KWin
graesslin added inline comments to D18009: Add Findepoll.cmake to find epoll/epoll-shim and add initial FreeBSD support.
Jan 12 2019, 6:53 AM · KWin
graesslin added a comment to D18009: Add Findepoll.cmake to find epoll/epoll-shim and add initial FreeBSD support.

For the Udev case I would prefer if FreeBSD would provide a shim udev KWin can link against and which provides the hack deviceFromSyspath("/dev/dri/card0");

Jan 12 2019, 6:48 AM · KWin
graesslin added a comment to D18128: Split up fullscreen able check into AbstractClient subclasses.

Looks good to me

Jan 12 2019, 6:44 AM · KWin
graesslin added a comment to D18153: Correct code style of Client fullscreen control.

Well I always kept such old code as it was. I faced this problem a lot during the port to Wayland and introducing the AbstractClient. In the end I decided to not change anything that's in Client or Toplevel, but AbstractClient introduces the more "modern" approach.

Jan 12 2019, 6:42 AM · KWin
graesslin added a comment to D18185: Rework Client fullscreen control.

Personal opinion: this is X11, let's not risk breaking it.

Jan 12 2019, 6:39 AM · KWin
graesslin accepted D18042: Add high DPI support to internal KWin windows.

Maybe also add the AA_UseHighDpiPixmaps to the integration test app?

Jan 12 2019, 6:33 AM · KWin
graesslin added a comment to D18198: Use QVector in paintGenericScreen.

Actually if we want to improve this I would go for:

  • std::vector
  • reserve
  • emplace_back
Jan 12 2019, 6:30 AM · KWin
graesslin added a comment to D18157: Remove Client fullscreen hack.

For safety I suggest to push after 5.15 has been branched off. That gives us more time to test that nobody still has that key around. Though it's unlikely.

Thanks for the feedback. If you also think this hack can be removed, then I'm not so worried about removing used functionality.

Jan 12 2019, 6:26 AM · KWin

Jan 10 2019

graesslin requested review of D18160: [platform/virtual] Drop support for vgem and rendernode.
Jan 10 2019, 5:20 PM · KWin
graesslin added a comment to D18157: Remove Client fullscreen hack.

For safety I suggest to push after 5.15 has been branched off. That gives us more time to test that nobody still has that key around. Though it's unlikely.

Jan 10 2019, 5:14 PM · KWin
graesslin added a comment to D17265: Fix changing the number of rows via the dbus protocol.

@mart this change broke a unit test: https://build.kde.org/job/Plasma/job/kwin/job/kf5-qt5%20SUSEQt5.11/288/testReport/projectroot/autotests/kwin_testScreenEdges/

Jan 10 2019, 5:02 PM · KWin

Jan 9 2019

graesslin updated the diff for D18015: Ensure the Compositor does not start during termination.

Fix condig style (uups) and add comment

Jan 9 2019, 6:03 PM · KWin
graesslin accepted D18127: [scripting] Make DBus invokable run method return result after execution.
Jan 9 2019, 5:26 PM · KWin
graesslin accepted D18126: [scripting] Avoid threading issues when loading from a file.
Jan 9 2019, 5:24 PM · KWin
graesslin added a comment to D17659: Set parent window for dialogs.
Jan 9 2019, 5:22 PM · Plasma
graesslin added inline comments to D17706: Fix lock screen focus.
Jan 9 2019, 5:21 PM · Plasma
graesslin added a comment to D18114: FakeInput: add support for pointer move with absolute coordinates.

I'm the author of this interface and I consider it nowadays as a mistake to have added it. If I would restart I would do the whole thing differently: input events need to be injected through a kernel module in a dedicated input device. It would need a user space component which processes can talk to and that would need to be secured though e.g. polkit. Thus we could properly authenticate. This protocol does not support it and KWin does not even try to authenticate. Overall from security perspective this is a mess.

Jan 9 2019, 5:12 PM · Frameworks
graesslin added inline comments to D18115: Add support for fake pointer move with absolute coordinates.
Jan 9 2019, 5:10 PM · KWin
graesslin added a comment to D18114: FakeInput: add support for pointer move with absolute coordinates.

I don't want to have key press/release in it. It has a reason that I didn't add key press/release from the start. The problem is the mismatch of key events and keysyms. Especially the kdeconnect use case for which this interface was developed has this problem. Android composes text, not key codes. Thus it would not be possible to inject key events.

Jan 9 2019, 5:09 PM · Frameworks
graesslin added a comment to D17884: [effects] Enable touchpoints by default.

If there are no objections I would push it, so that we have it in the upcoming beta.

Jan 9 2019, 5:05 PM · KWin
graesslin added a comment to D17900: Introduce a dynamic enabled mode in virtual keyboard.
In D17900#389925, @mart wrote:

+1 for the idea,
shouldn't dynamic rather be default? any drawback?

Jan 9 2019, 5:05 PM · KWin
graesslin requested changes to D18114: FakeInput: add support for pointer move with absolute coordinates.
Jan 9 2019, 5:28 AM · Frameworks

Jan 8 2019

graesslin accepted D17265: Fix changing the number of rows via the dbus protocol.
Jan 8 2019, 5:29 PM · KWin
graesslin accepted D18086: [platforms/virtual] Add API to set scale in virtual backend.
Jan 8 2019, 5:14 AM · KWin
graesslin accepted D18085: [plugins/qpa] Commit wl_surface when flipping FBOs.
Jan 8 2019, 5:13 AM · KWin

Jan 7 2019

graesslin added a comment to D18009: Add Findepoll.cmake to find epoll/epoll-shim and add initial FreeBSD support.

I'm not sure whether KWin should carry this patch. No developer will be able to test it or ensure it works. It makes changes more difficult, it basically turns this into a don't touch me area.

Jan 7 2019, 4:26 PM · KWin
graesslin added a comment to D17985: [platforms/drm] Mark outputs as disabled if we don't have any outputs.

But all Wayland-native clients crash on disconnect of the display including Plasmashell.

Jan 7 2019, 4:21 PM · KWin
graesslin added a comment to D17247: Cleanup virutal desktops in deleted.

Hmmm, difficult. I think it would be wrong to delete the Deleted just because a desktop is destroyed. I don't see a problem with the deleted ending up on all desktops. No effect would start an animation and those animating the window will continue to do so.

Jan 7 2019, 4:17 PM · KWin

Jan 6 2019

graesslin added a comment to T10245: KWin tests requiring opengl are failing.

@bcooksley I think we can remove vgem now from the CI system

Jan 6 2019, 8:02 PM · build.kde.org
graesslin requested review of D18015: Ensure the Compositor does not start during termination.
Jan 6 2019, 4:12 PM · KWin
graesslin requested review of D18014: [autotests] Don't check whether there is a /dev/dri/card0.
Jan 6 2019, 3:36 PM · KWin
graesslin added a comment to T10245: KWin tests requiring opengl are failing.

Thanks everyone for the help

Jan 6 2019, 8:08 AM · build.kde.org

Jan 5 2019

graesslin added a comment to T10245: KWin tests requiring opengl are failing.

The spec file: https://build.opensuse.org/package/view_file/X11:XOrg/Mesa/Mesa.spec?expand=1 - no surfacless

Jan 5 2019, 8:02 PM · build.kde.org
graesslin added a comment to T10245: KWin tests requiring opengl are failing.

Some further hint: https://build.opensuse.org/public/build/X11:XOrg/openSUSE_Tumbleweed/x86_64/Mesa/_log shows --with-platforms=x11,drm,wayland while on https://sources.debian.org/src/mesa/18.2.8-2/debian/rules/ and https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/mesa we see additional surfaceless enabled. This explains why the change for sufaceless did not work. Looks like an openSUSE packaging issue to me.

Jan 5 2019, 7:58 PM · build.kde.org
graesslin added a comment to T10245: KWin tests requiring opengl are failing.

I don't think that removing vgem will help. The next code path is then using default platform and that will certainly fail. What I would like to see is strace of a failing test.

Jan 5 2019, 7:31 PM · build.kde.org
graesslin added a comment to T10245: KWin tests requiring opengl are failing.

More results from playing with strace and reading mesa code: @bcooksley please add LIBGL_ALWAYS_SOFTWARE=true to the environment variables for running the test. With that env variable set I got the test to use the kms_swrast device instead of the intel device

Jan 5 2019, 5:18 PM · build.kde.org
graesslin added a comment to T10245: KWin tests requiring opengl are failing.

I played a little bit with strace to see what is used.

Jan 5 2019, 5:00 PM · build.kde.org
graesslin committed R120:c2cf24733251: Merge branch 'Plasma/5.1' (authored by graesslin).
Merge branch 'Plasma/5.1'
Jan 5 2019, 4:09 PM
graesslin committed R120:29a995e3a575: Merge branch 'Plasma/5.0' (authored by graesslin).
Merge branch 'Plasma/5.0'
Jan 5 2019, 4:09 PM
graesslin added a comment to T10245: KWin tests requiring opengl are failing.

Unfortunately this didn't work - we now have: Failed to create surfaceless platform, trying with vgem device

Jan 5 2019, 1:20 PM · build.kde.org
graesslin committed R108:6b3e55d6f515: Implement isPopupWindow for internal windows (authored by graesslin).
Implement isPopupWindow for internal windows
Jan 5 2019, 12:46 PM