SnosMe / awakened-poe-trade

:heavy_dollar_sign: :hammer: Path of Exile trading app for price checking
https://snosme.github.io/awakened-poe-trade/download
MIT License
2.08k stars 449 forks source link

Screen all black #185

Closed feydreva closed 3 years ago

feydreva commented 4 years ago

Hello,

I run POE / Awakened trade on linux. I have 2 screen. 1 for POE, and the other one. When running awakened trade, it tales the second screen, but takes the all screen with a black page. I have the interface when doind crtl-D, but the background covering the entire screen in black is still there.. and stay after..

Could it be possible to have in a windows instead of the whole screen you can find a screen shot here : https://imgur.com/a/TosI5TP

thank you

Murdoc84 commented 4 years ago

I have 2 screen and no problem, do you run poe on main screen or second? I use main screen :)

Storm-Engineer commented 4 years ago

That happened to me when I tried it the first time, but then it went away.

However, APT will always open on my secondary screen instead of the primary where the game runs. The secondary is left of the Primary.

Odzinic commented 4 years ago

I'm having this issue on Manjaro KDE. Non-primary monitor is all black.

weidtn commented 4 years ago

I'm pretty sure that black window is the overlay. It is overlaying my game. I use xmonad and I am able to move the black overlay to my other screen with hotkeys.

I'm using Steam Proton-5.9-GE-6-ST and Vulkan (but it also happens with DirectX).

Marcuss2 commented 4 years ago

I have a similar issue with a single monitor setup on KDE Plasma. I noticed compositing is disabled when I run Path of Exile.

I managed to bypass this issue by switching to Wayland, compositing is not disabled in this case and Awakened Poe Trade seems to work.

EDIT: But that breaks interaction with objects in PoE.

SnosMe commented 3 years ago

Enable window composition, because APT window needs transparency and spans entire size of PoE window.

weidtn commented 3 years ago

I enabled transparency in picom with opacity-rule = ["10:name *?= 'Awakened PoE Trade'"] it is still black. Not sure if that fixes the problem. The "Settings" window is transparent now btw.

weidtn commented 3 years ago

So this still is not fixed. Neither composition, nor disabling hardware acceleration do fix this. It does just show a black overlay both in KDE and Xmonad. The settings menu is visible and its possible to change transparency of it with the compositor

botagar commented 3 years ago

I faced this and what worked for me was switching the compositor renderer from OpenGL to XRender. Don't know if this helps too many people but it's worth a try.

DarkOverlord69 commented 3 years ago

Hello, not sure if this is helpful, but I had this same black-screen issue too. I unchecked in System Settings -> Display and Monitor -> Compositor -> "Allow applications to block compositing". This works for me with both, OpenGL 2.0 and XRender. I'm on Manjaro Linux too with KDE Plasma. if more_information_is_needed == True: return givingMoreInfo() cheers

NINNiT commented 3 years ago

Did anyone manage to get it running using picom? I'm experiencing the same problems (black box) using both xrender and glx. It seems that it can be fixed using the KDE compositor and allowing composition blocking, but is there a picom/compton equivalent to this setting?

Thanks and keep farming :)

Dark32 commented 3 years ago

Try running with flags --enable-transparent-visuals --disable-gpu and with compton/picom

My compton config file:

backend = "glx"
mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = false;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "none";
dbe = false;
paint-on-overlay = true;
unredir-if-possible = true;
focus-exclude = [ "class_g = 'Cairo-clock'" ];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];

but I don't know what is options are strictly needed

NINNiT commented 3 years ago

Thanks! I can confirm that starting awakened-poe-trade with the --disable-gpu flag did fix the problem for me using picom with glx backend.

For anyone running a picom fork with background blurring on transparent windows enabled, note that you might need to disable blurring for awakened-poe-trade:

blur-background-exclude = [
  "class_g = 'awakened-poe-trade'",
   ...
];
warcayac commented 2 years ago

Hello, not sure if this is helpful, but I had this same black-screen issue too. I unchecked in System Settings -> Display and Monitor -> Compositor -> "Allow applications to block compositing". This works for me with both, OpenGL 2.0 and XRender. I'm on Manjaro Linux too with KDE Plasma. if more_information_is_needed == True: return givingMoreInfo() cheers

This worked for me but when the popup window (prices window) tries to auto-hide itself, it does disappear but the focus is not returned to the game, I have to switch windows to return the game. Any ideas?

bruno-fs commented 2 years ago

This worked for me but when the popup window (prices window) tries to auto-hide itself, it does disappear but the focus is not returned to the game, I have to switch windows to return the game. Any ideas?

I'm having the same issue and I think this is the same described in the second item of this. It seems there's a solution for it on discord. I'm digging there without luck :/

UlverUA commented 2 years ago

This worked for me but when the popup window (prices window) tries to auto-hide itself, it does disappear but the focus is not returned to the game, I have to switch windows to return the game. Any ideas?

The same for me. Using Manjaro KDE. Anyone find the solution?

flightlessmango commented 2 years ago

This worked for me but when the popup window (prices window) tries to auto-hide itself, it does disappear but the focus is not returned to the game, I have to switch windows to return the game. Any ideas?

The same for me. Using Manjaro KDE. Anyone find the solution?

I ran into this issue as well with kde plasma and i3. I wrote a little hack to address it.

const { exec } = require('child_process');
exec('wmctrl -ia `wmctrl -l | grep "Path of Exile" | grep -v "Trade" | head -n1 | awk {"print $1"}`')

add this inside the focusPoE function in overlay-window.ts and make sure you have wmctrl

nullagit commented 1 year ago

Thank you to everyone in this thread, I managed to get Awakened POE Trade working with Devuan stable (Chimera) and DWM v6.3. Here are the steps I took.

apt-get install picom Create a config file (~/.config/picom.conf) with Dark32's settings Add NINNiT's blur-background-exclude section at the bottom Start picom Open POE (I use steam w/Proton Experimental + Vulcan) Open APT ($ ./Awakened-PoE-Trade-3.20.10003.AppImage --disable-gpu)

Works in DWM tiling mode. I have APT on my 2nd monitor and price checking works which is all I wanted.

nullagit commented 1 year ago

add this inside the focusPoE function in overlay-window.ts and make sure you have wmctrl

Where is the overlay-window.ts file? I found an OverlayWindow.ts file in main/src/windowing/ but there's no focusPoE function in that file.

SnosMe commented 1 year ago

called assertGameActive now