how to disable mouse cursor displaying in maaxboard( NXP i.MX 8M)yocto zeus wayland desktop?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to disable mouse cursor displaying in maaxboard( NXP i.MX 8M)yocto zeus wayland desktop?

8,687 次查看
gonewithwind-peter
Senior Contributor I

hi  all,

how to disable mouse cursor displaying in maaxboard yocto zeus wayland desktop?

we use touchscreen, do not use the mouse to operate the menu, but there is a  black arrow mouse   cursor  displaying on the desktop(our app is base on chrome webpage)

how to disable it?

Does anybody have any help?

Thank you.

0 项奖励
回复
11 回复数

8,674 次查看
gonewithwind-peter
Senior Contributor I

@Zhiming_Liu 

thanks

0 项奖励
回复

8,679 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

@gonewithwind-peter clients\window.c

 

    //create_cursors(d);

   // d->theme = theme_create();
0 项奖励
回复

8,655 次查看
gonewithwind-peter
Senior Contributor I

@Zhiming_Liu 

 

do you know where is the cursor  file location,  we can use a transparent  cursor file to replace the  black left arrow icon.

please read here:

https://github.com/celly/transparent-xcursor

 

but I  cann not find where the icon is !

 

read here ,I posted a issue: https://github.com/celly/transparent-xcursor/issues

Thanks

0 项奖励
回复

8,647 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

@gonewithwind-peter 

 

The weston didn't use cursor icon in default.

You can config cursor-theme like:cursor-theme=Adwaita in weston.ini

 

0 项奖励
回复

8,613 次查看
gonewithwind-peter
Senior Contributor I

hi @Zhiming_Liu 

as you said ,I add cursor-theme=Adwaita in weston.ini

and create a subfolder cursors in /usr/share/icons/Adwaita/cursors, 

and copy a transparent cursor file from here https://github.com/celly/transparent-xcursor.  to  /usr/share/icons/Adwaita/cursors/ , for example: left_ptr file /usr/share/icons/Adwaita/cursors/left_ptr

Actually , the mouse cursor (black arrow) disappears in weston desktop! work! , so I change Adwaita to redglass (I copy from ubuntun desktop), actually the black arrow become RED arrow. so I make sure the solution is OK.

but our app is base on chromium(chromium-ozone-wayland )webpage. after chromium start up, the black arrow cursor comes again!

 

so I want to know where is the cursor icon's location displaying on  chromium?

I only create one file(left_ptr) in folder /usr/share/icons/Adwaita/cursors, where are the others? where the icons from on the chromium?

if I know the location,I can replace it with transparent files to make it disappear!

 

when I use  redglass Icons, it's red on weston destop,but it become black arrow again on chromium, so i thinks the icons are form different locations(files) 

Thank you very much.

 

Does anyone know?

 

 

 

0 项奖励
回复

8,599 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

It seems that chrouim is different with weston about cursor display.I have no research about chrouim.

The change about removing top screen display is tested, but thr cursor i didn't test before.

0 项奖励
回复

8,591 次查看
gonewithwind-peter
Senior Contributor I

@Zhiming_Liu 

Thank you for your reply so soon.

I use   the following userspace code to move the cursor to left-lower corner to solve this problem. almsot is OK

https://unix.stackexchange.com/questions/422698/how-to-set-absolute-mouse-cursor-position-in-wayland...

标记 (1)
0 项奖励
回复

8,663 次查看
gonewithwind-peter
Senior Contributor I

Hi

@Zhiming_Liu 

I followed your guide to comments the tow lines in clients/windows.c

but weston   desktop totally  disappear,

my weston-chrome can not run and not display 

 

any help?

 

the following is my weston.ini file config:

 

[core]
gbm-format=argb8888
idle-time=0
#use-g2d=1
#xwayland=true
#enable-overlay-view=1

[shell]
size=1920x1080

panel-location=""
panel-position=none
background-color=0x00000000
background-image=/home/myuser/flash.png

[libinput]
touchscreen_calibrator=true

#[output]
#name=HDMI-A-1
#mode=1920x1080@60
#transform=90

0 项奖励
回复

8,643 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

You can add a script that can boot chrome when system start.

0 项奖励
回复

8,625 次查看
gonewithwind-peter
Senior Contributor I

hi @Zhiming_Liu 

it seems I change the file clients\window.c , damage the whole weston, so can not rum wayland-chromium,

is it right?

did you test that before to modify the file clients\window.c?

 

thanks

0 项奖励
回复

8,629 次查看
gonewithwind-peter
Senior Contributor I

yes, I used a script (chromium.service in systemd) to boot chrome. but  after comment the cursor source code, weston desktop windows disappear, nothing to display.

let me try cursor-theme=Adwaita

0 项奖励
回复