question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NW2 (and NW1 since 0.43.3): (Linux) Transparency and resize handling in frameless windows not working as intended

See original GitHub issue

NWJS Version : 0.43.6 Operating System : Linux (Tested on KDE Plasma and gnome-shell)

Expected behavior

On Linux, a frameless (frame: false in manifest) nw.js window should be transparent (transparent: true in manifest) and you should be able to resize this window (resizable: true in manifest) when you put the mouse pointer on its corners

#7230

Actual behavior

On Linux, in the latest versions even if you disable the new nw2 mode (–disable-features=nw2) the problem persists. I found that the last version that worked fine at least disabling the nw2 mode was 0.43.2, after this version the transparency is completely broken in both modes. The resize handling instead is broken only in 0.43.2 with nw2 enabled, afterwards It seems to work fine.

How to reproduce

Just open a nw window on linux with this manifest :

{
	"name": "nw-demo",
	"version": "0.0.1",
	"main": "index.html",
	"window": {
		"width": 600,
		"height": 600,
		"frame": false,
		"transparent": true,
		"position": "center",
		"resizable": true
	},
	"chromium-args": ""
}

SCREENSHOTS :

NW JS VERSION : 0.43.6 , nw1 MODE TRANSPARENCY : IT DOESNT WORK! RESIZE HANDLING : IT WORKS!

43-6nw1

NW JS VERSION : 0.43.6 , nw2 MODE TRANSPARENCY : IT DOESNT WORK! RESIZE HANDLING : IT WORKS!

43-6nw2


LAST FULLY WORKING VERSION (PARTIALLY, RESIZE HANDLING IT DOESNT EXIST IN NW2 MODE)

NW JS VERSION : 0.43.2 , nw1 MODE TRANSPARENCY : IT WORKS! RESIZE HANDLING : IT WORKS!

43-2nw1


NW JS VERSION : 0.43.2 , nw2 MODE TRANSPARENCY : IT WORKS! RESIZE HANDLING : IT DOESNT WORK!

43-2nw2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
rogerwangcommented, Jan 23, 2020

This is fixed in git and will be available in the next nightly build.

1reaction
jtg-ggcommented, Jan 24, 2020

thx @rogerwang for handling the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Edit Item window will not resize - QuickBooks - Intuit
Yes, that type of window (I think all of the list edit windows) can't be resized. It can be maximized, but not resized....
Read more >
python 3.x - How to resize a window from the edges after ...
This function creates and returns an empty status bar if the status bar does not exist. Otherwise, you can manually add grips, and...
Read more >
window_manager | Flutter Package - Pub.dev
This plugin allows Flutter desktop apps to resizing and repositioning the window.
Read more >
WindowDescriptor in bevy::prelude - Rust - Docs.rs
Describes the information needed for creating a window. ... Sets minimum and maximum resize limits. ... Linux (Wayland): Not working as expected.
Read more >
Painting/resizing issues with windows made frameless by ...
In the example, the window is made frameless by handling WM_NCCALCSIZE to return 0 margins in conjunction with style=WS_THICKFRAME (additionally ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found