Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Widgetset
»
GTK
»
[Solved] GetWindowManager value is wrong
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
WIKI Timeout issues
Please read here if you have trouble connecting to the wiki
Recent
InstallAware 2025 Sources...
by
n7800
[
Today
at 10:44:56 pm]
Free Pascal ncurses TUI
by
cdbc
[
Today
at 10:07:27 pm]
WinInet compiling errors.
by
440bx
[
Today
at 10:07:14 pm]
Lazarus Release 4.0
by
JuhaManninen
[
Today
at 09:35:05 pm]
How to fix "Warning: Enco...
by
ecm
[
Today
at 09:20:42 pm]
BGRA Controls
by
alan1076
[
Today
at 09:06:37 pm]
Classes vs Objects
by
TBMan
[
Today
at 08:23:08 pm]
[SOLVED] RecordCount not ...
by
1HuntnMan
[
Today
at 07:57:58 pm]
How to read shortstring f...
by
Thaddy
[
Today
at 07:32:43 pm]
Strange result (to me) fr...
by
jamie
[
Today
at 07:28:38 pm]
What WinAPI functions can...
by
Tikani93
[
Today
at 07:19:20 pm]
Fast Canvas Library V1.0
by
Gigatron
[
Today
at 07:07:54 pm]
Opencv version 4.6 C++ AP...
by
gidesa
[
Today
at 06:55:53 pm]
Hints for method name mis...
by
JuhaManninen
[
Today
at 05:36:46 pm]
SnapModbus
by
Thaddy
[
Today
at 05:00:03 pm]
Debugger fails to read da...
by
Martin_fr
[
Today
at 04:48:12 pm]
Error: Identifier not fou...
by
Thaddy
[
Today
at 04:30:14 pm]
X11Libre, finally and for...
by
Fred vS
[
Today
at 04:07:05 pm]
Strict Aliasing Rule
by
nixbody
[
Today
at 03:20:29 pm]
opinion on outlining text...
by
jamie
[
Today
at 03:17:00 pm]
TBitBtn no longer shows g...
by
jamie
[
Today
at 03:05:19 pm]
problem with the lps
by
n7800
[
Today
at 01:52:07 pm]
Exceptions en FPCUnit
by
ASerge
[
Today
at 12:54:33 pm]
Output folder?
by
gues1
[
Today
at 11:59:01 am]
I created a Hello World p...
by
LV
[
Today
at 11:50:16 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] GetWindowManager value is wrong (Read 2424 times)
AlexTP
Hero Member
Posts: 2574
[Solved] GetWindowManager value is wrong
«
on:
August 23, 2023, 11:36:25 am »
I made small demo to see GetWindowManager result string. It gives string of 6-7 Chinese symbols here in the demo! Why? I use latin Ubuntu 20.04 x64 with Gnome.
Code: Pascal
[Select]
[+]
[-]
implementation
uses
gtk2int
;
{$R *.lfm}
{ TForm1 }
procedure
TForm1
.
FormCreate
(
Sender
:
TObject
)
;
begin
caption
:
=
'wm: '
+
GTK2WidgetSet
.
GetWindowManager
;
end
;
Lazarus 3.99 (rev main_3_99-33-gcb65d62758) FPC 3.2.3 x86_64-linux-gtk2
«
Last Edit: August 24, 2023, 09:32:10 am by AlexTP
»
Logged
CudaText editor
-
ATSynEdit
-
More from me
zeljko
Hero Member
Posts: 1764
Re: GTK2WidgetSet.GetWindowManager value is wrong
«
Reply #1 on:
August 23, 2023, 03:03:11 pm »
I've maded change of wm name yesterday in trunk, changed PWideChar to PChar ... can you check inside GetWindowManager if PWideChar need to be returned back ?
Logged
zeljko
Hero Member
Posts: 1764
Re: GTK2WidgetSet.GetWindowManager value is wrong
«
Reply #2 on:
August 23, 2023, 03:10:21 pm »
Juha created bug with
https://gitlab.com/freepascal.org/lazarus/lazarus/-/commit/db2bca39494aed99664abf76990a26a635e8beb4
, 3 months ago, I've fixed it yesterday, also added to merge list for 3.0RC2.
Logged
AlexTP
Hero Member
Posts: 2574
Re: GTK2WidgetSet.GetWindowManager value is wrong
«
Reply #3 on:
August 23, 2023, 04:14:53 pm »
I used not last Lazarus! If I change PWideChar() to PChar(), then I get OK name 'gnome shell'.
Must be in .GetWindowManager:
Code:
[Select]
if (typeReturned = WMAtom) and (formatReturned = 8) then
Result := LowerCase(StrPas(PChar(Data)));
Logged
CudaText editor
-
ATSynEdit
-
More from me
zeljko
Hero Member
Posts: 1764
Re: GTK2WidgetSet.GetWindowManager value is wrong
«
Reply #4 on:
August 23, 2023, 06:17:22 pm »
As I sad it's fixed yesterday and merged to fixes_3_0
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Widgetset
»
GTK
»
[Solved] GetWindowManager value is wrong
TinyPortal
© 2005-2018