Git Product home page Git Product logo

Comments (27)

gijsbers avatar gijsbers commented on August 28, 2024

Give versions of your java, icewm. Do DBeaver and krdc need to be connected or can i just start them and repeat your problem?

from icewm.

gensenio avatar gensenio commented on August 28, 2024

Version of Icewm is: IceWM 3.4.4, Copyright 1997-2012 Marko Macek, 2001 Mathias Hasselmann.)

Im running on Gentoo linux x86-64 with kernel 6.1.57-gento and Nvidia Quandro T2000 with proprietary drivers.

Intellij IDEA use and embedded version of java:
IMPLEMENTOR="JetBrains s.r.o."
IMPLEMENTOR_VERSION="JBR-17.0.9+7-1000.46-jcef"
JAVA_VERSION="17.0.9"
JAVA_RUNTIME_VERSION="17.0.9+7-b1000.46"
LIBC="gnu"
OS_ARCH="x86_64"
OS_NAME="Linux"

The version of intellij is: IntelliJ IDEA 2023.2.5 (Ultimate Edition).

DBeaver also use an embedded jre: JAVA_VERSION="17.0.6"

For DBeaver maybe it's enough to open a SQL editor without a connection to reproduce the issue.

For KRDC i experiment the issue when i'm connected to a windows server using rpc.
In this case the issue is very strange: I usually keep open a terminal on the remote server and, when i switch to the KRDC window i cannot focus anymore on it. instead if i click a window context menu opens like if some mod key is pressed.

But to be honest i didn't understood the steps to reproduce this behavior.... it happens after some time. The next time it happens again maybe i can try to record the screen.

Thanks again for the quick reply.

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

Are these all icesh -a focusmodel: Globally?
Does it help to open and close a terminal?

from icewm.

gensenio avatar gensenio commented on August 28, 2024

if i run the comman now (that i have several windows onpen (and one is DBeaver and another is Intellij) i get this:
0x2e0001b focusmodel Passive
0x2e0001c focusmodel Passive
0x44000f5 focusmodel Globally
0x3e00006 focusmodel Locally
0x600004f focusmodel Locally
0x2e00059 focusmodel Passive
0x580000e focusmodel Locally
0x4200006 focusmodel Locally
0x2e00067 focusmodel Passive
0x6200007 focusmodel Locally

When shoud i run the comman exactly?

from icewm.

gensenio avatar gensenio commented on August 28, 2024

Does it help to open and close a terminal?
I will try when the issue happens again.

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

When it happens, run just icesh focusmodel and click on the window which doesn't focus.
Or run icesh -a list focusmodel and keep only the ones that are of interest.
Otherwise it is unclear which applies to what.

from icewm.

gensenio avatar gensenio commented on August 28, 2024

Every 2,0s: icesh -a list focusmodel linux-giovanni: Wed Nov 22 15:52:16 2023

0x44128e9 0 5112 "vsm-portal-git โ€“ PortalRole.java [vsm-portal-dom": (jetbrains-idea.jetbrains-idea) 2560x1397+1920+17
0x2e00007 0 9452 "Mine" : (konsole.konsole) 937x1101+263+17
0x3000003 0 10432 "Strange window activation problem. ยท Issue #755 ": (google-chrome.Google-chrome) 1920x1135+2271+60
0x3000014 0 10432 "web.whatsapp.com" : (web.whatsapp.com.Google-chrome) 1265x1394+1931+20
0x420004f 0 11662 "DBeaver 23.2.5 - postgres 4 ": (DBeaver.DBeaver) 2560x1397+1920+17
0x300001a 0 10432 "Re: [bbidulock/icewm] Strange window activation pr": (google-chrome.Google-chrome) 1920x1183+0+17
0x5800006 0 12063 "" : (krdc.krdc) 1206x661+2593+269
0x2e0002b 0 9452 "Mine" : (konsole.konsole) 937x1101+3098+223
0x44128e9 focusmodel Globally
0x2e00007 focusmodel Locally
0x3000003 focusmodel Passive
0x3000014 focusmodel Passive
0x420004f focusmodel Locally
0x300001a focusmodel Passive
0x5800006 focusmodel Locally
0x2e0002b focusmodel Locally

Intellij (the first one) is using focusmode Globally DBeaver and krdc Locally

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

When those application windows are active and functional, by what exact control event do you get away from them?

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

The IntelliJ problem was reported before elsewhere:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360001411659-Lose-Focus-after-Switching-Workspace-in-i3wm
You list it as 0x44128e9 focusmodel Globally and for that kind of applications the focus is managed not by the window manager, but by the application.

from icewm.

gensenio avatar gensenio commented on August 28, 2024

When those application windows are active and functional, by what exact control event do you get away from them?

usually i use the taskbar or quickswitch and when i go back to idea sometime i dont get the window activated.

from icewm.

gensenio avatar gensenio commented on August 28, 2024

i tried also to use other wm : mutter kwin or sawfish or openbox and they don't seem to have this problem. But i really like IceWM and i want to stick with it.

from icewm.

gensenio avatar gensenio commented on August 28, 2024

https://youtrack.jetbrains.com/issue/IDEA-194124?_ga=2.179285030.302672660.1700677436-1805309740.1700677436#focus=streamItem-27-3088912-0-0

i will try to use the workaround propsed in this issue. CopyQ is also mentioned here and i use it.

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

When you switch away from dbeaver or krdc, do you use the keyboard or the mouse? Do you go to another workspace or not?

The fact that other WMs this problem doesn't occur doesn't prove anything. Using the same logic, we could say that thousands of users using thousands of applications don't experience this problem. In fact, I used krbc to try to repeat your problem but couldn't.

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

What icewm focus setting do you use?

from icewm.

gensenio avatar gensenio commented on August 28, 2024

What icewm focus setting do you use?
Click to Focus

from icewm.

gensenio avatar gensenio commented on August 28, 2024

When you switch away from dbeaver or krdc, do you use the keyboard or the mouse? Do you go to another workspace or not?

The fact that other WMs this problem doesn't occur doesn't prove anything. Using the same logic, we could say that thousands of users using thousands of applications don't experience this problem. In fact, I used krbc to try to repeat your problem but couldn't.

normally i switch alt-tabbing with the keyboard and i don't use workspaces

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

Second attempt at reproducing it with krdc using Click-to-Focus also failed. I'll try dbeaver. Quote DBeaver needs Java to run. [Open JDK 17] is included in all DBeaver distributions. Do you use OpenJDK or the Solaris one?

from icewm.

gensenio avatar gensenio commented on August 28, 2024

openjdk

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

Also with dbeaver 23.2.5 I can't reproduce the problem. All works fine, even with the default settings. Sorry.

from icewm.

gensenio avatar gensenio commented on August 28, 2024

thanks anyway for the effort. i will try to reproduce it and do a video.

from icewm.

gensenio avatar gensenio commented on August 28, 2024
record-2023-12-23_16.33.47.mp4

i recorded this video to show the problem: if you open a database table and in the filter bar you start typing and then you hit
tab to autocomplete you cannot focus anymore the filter bar. To get focus again you have to click the titlebar.
I tried other wm like openbox and xfwm4 and this is not happening.

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

I set ClickToFocus like you and can now repeat your movie and see you are right, but if I analyze the events that occur in dbeaver and icewm then I see nothing wrong with icewm. According to this analysis, all the time the focus remains with dbeaver. So it must be a bug in either dbeaver or in java.

from icewm.

gensenio avatar gensenio commented on August 28, 2024

But if i try openbox or other window managers it's not happening. I have attached a video demonstrating it with Openbox.
I only happens with icewm.
https://github.com/bbidulock/icewm/assets/3276068/4b0098a7-dd61-4b48-b640-2e942b0a8211

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

But if I use xterm or firefox or whatever, then it is also not happening. See my comment of November 23.
I have analysed the internal events and cannot see anything wrong with icewm.

from icewm.

gensenio avatar gensenio commented on August 28, 2024

ok now i changed from ClickToFocus to Custom and it works as expected. What exactly is doing Custom? i cannot find any reference in the handbook

from icewm.

gijsbers avatar gijsbers commented on August 28, 2024

https://ice-wm.org/man/icewm

from icewm.

Code7R avatar Code7R commented on August 28, 2024

I am also observing strange activation problems, but it is hard to reproduce. When it starts happening, the situation is:
you have two Firefox windows on two different monitors. You press Alt-Tab and the focus switches (seemingly) to the other Firefox window. But when you start typing, the key-presses go into another (seemingly inactive) window.

from icewm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.